Skip to content

Library fails with "this.auth.getUniverseDomain is not a function" #223

@Rochet2

Description

@Rochet2
  1. Is this a client library issue or a product issue?
    It is a client library dependency issue. Gax depends on features that exist on newer version than what is installed.

  2. Did someone already solve this?

Did not find any issues by searching with getUniverseDomain.

  1. Do you have a support contract?
    Please create an issue in the support console to ensure a timely response.
    If the support paths suggested above still do not result in a resolution, please provide the following details.

Environment details

  • OS:
  • Node.js version 18.17:
  • npm version: 9.4.0
    "node_modules/google-gax": {
      "version": "4.3.0",
      "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-4.3.0.tgz",
      "integrity": "sha512-SWHX72gbccNfpPoeTkNmZJxmLyKWeLr0+5Ch6qtrf4oAN8KFXnyXe5EixatILnJWufM3L59MRZ4hSJWVJ3IQqw==",
      "dependencies": {
        "@grpc/grpc-js": "~1.9.6",
        "@grpc/proto-loader": "^0.7.0",
        "@types/long": "^4.0.0",
        "abort-controller": "^3.0.0",
        "duplexify": "^4.0.0",
        "google-auth-library": "^9.0.0",
        "node-fetch": "^2.6.1",
        "object-hash": "^3.0.0",
        "proto3-json-serializer": "^2.0.0",
        "protobufjs": "7.2.6",
        "retry-request": "^7.0.0",
        "uuid": "^9.0.1"
      },
      "engines": {
        "node": ">=14"
      }
    },

Steps to reproduce

  1. Install "@google-cloud/pubsub": "4.3.0"
  2. Try using it and it will error with this.auth.getUniverseDomain is not a function
  3. Observe that google-gax depends on "google-auth-library": "^9.0.0", but getUniverseDomain was introduced in v9.3.0 here. We have google-auth-library: "9.0.0" installed.

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