Skip to content

stage and prod functions error (default credentials missing) #39

Description

@apilly

Though the stage and prod are working with no issue, functions after latest deployment throws below error:

Error: Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information.
at GoogleAuth.getApplicationDefaultAsync (/workspace/node_modules/google-auth-library/build/src/auth/googleauth.js:160:19)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async GoogleAuth.getClient (/workspace/node_modules/google-auth-library/build/src/auth/googleauth.js:502:17)
at async GrpcClient._getCredentials (/workspace/node_modules/google-gax/build/src/grpc.js:92:24)
at async GrpcClient.createStub (/workspace/node_modules/google-gax/build/src/grpc.js:213:23)

reason could be difference in Firebase version used to deploy the latest change v8.6.5 vs v5.9.0 used in production. We can find more info in this article https://stackoverflow.com/a/58409339. Apparently this needs a code change in the way we are fetching the default creds for newer firebase versions. Jira story request for deployment.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions