Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-14452

Improve GCP connection error message when no property is provided

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1.0
    • Component/s: Data Prep
    • Labels:
      None
    • Rank:
      1|i00id3:

      Description

      Running locally on laptop with sandbox, when I test connection with no projectId or service account keyfile, I get the error:

      Anonymous caller does not have storage.buckets.list access to project <--redacted number-->. 

       

      BigQuery is returning

      Login Required 

       

      Spanner is returning

      UNAUTHENTICATED: io.grpc.StatusRuntimeException: UNAUTHENTICATED: Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project. 

       

      In all these cases, it should give a better error indicator with information that project or credentials could not be detected in the environment.

        Attachments

          Activity

            People

            • Assignee:
              ashau Albert Shau
              Reporter:
              edwin Edwin Elia
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: