Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

TypeError: gpcMetadata.universe is not a function with 9.3.0 after upgrade from 9.2.0 (with google-gax) on cloud run #1702

@mccare

Description

@mccare

Environment details

  • OS: bullseye-slim
  • Node.js version: 20.10.0
  • npm version:
  • google-auth-library version: 9.3.0
  • google-gax 4.0.5

Steps to reproduce

Launching with google-gax 4.0.5 on google cloud run, the upgrade from 9.2.0 to 9.3.0 produces this new exception:

TypeError: gcpMetadata.universe is not a function
    at GoogleAuth._GoogleAuth_getUniverseFromMetadataServer (/usr/src/app/node_modules/.pnpm/google-auth-library@9.3.0/node_modules/google-auth-library/build/src/auth/googleauth.js:777:44)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async GoogleAuth.getUniverseDomain (/usr/src/app/node_modules/.pnpm/google-auth-library@9.3.0/node_modules/google-auth-library/build/src/auth/googleauth.js:186:168)
    at async GoogleAuth.getApplicationDefaultAsync (/usr/src/app/node_modules/.pnpm/google-auth-library@9.3.0/node_modules/google-auth-library/build/src/auth/googleauth.js:252:42)
    at async GoogleAuth.getClient (/usr/src/app/node_modules/.pnpm/google-auth-library@9.3.0/node_modules/google-auth-library/build/src/auth/googleauth.js:674:17)
    at async GrpcClient._getCredentials (/usr/src/app/node_modules/.pnpm/google-gax@4.0.5/node_modules/google-gax/build/src/grpc.js:145:24)
    at async GrpcClient.createStub (/usr/src/app/node_modules/.pnpm/google-gax@4.0.5/node_modules/google-gax/build/src/grpc.js:308:23)

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions