Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this.auth.getUniverseDomain is not a function #1884

Closed
RoopeHakulinen opened this issue Feb 7, 2024 · 3 comments · Fixed by #1888
Closed

this.auth.getUniverseDomain is not a function #1884

RoopeHakulinen opened this issue Feb 7, 2024 · 3 comments · Fixed by #1888
Labels
api: pubsub Issues related to the googleapis/nodejs-pubsub API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@RoopeHakulinen
Copy link

  1. Is this a client library issue or a product issue?
    Product

  2. Did someone already solve this?
    Not that I know of.

  3. Do you have a support contract?
    No

Environment details

  • OS: Ubuntu, Windows, Mac
  • Node.js version: 20.10.0
  • npm version: 10.2.5
  • @google-cloud/pubsub version: 4.3.0

Steps to reproduce

After upgrading to 4.3.0, there's an error without proper stacktrace due to asynchronous usage that seems to be coming out of the createSubscription method invocation:

TypeError: this.auth.getUniverseDomain is not a function
    at GrpcClient.createStub (/usr/engineering/backend/node_modules/google-gax/src/grpc.ts:418:48)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Everything works when reverting to 4.2.0.

@RoopeHakulinen RoopeHakulinen added priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Feb 7, 2024
@product-auto-label product-auto-label bot added the api: pubsub Issues related to the googleapis/nodejs-pubsub API. label Feb 7, 2024
@IchordeDionysos
Copy link

@RoopeHakulinen this helped for me:
googleapis/google-auth-library-nodejs#1702 (comment)

@feywind
Copy link
Collaborator

feywind commented Feb 8, 2024

@RoopeHakulinen Thanks for the issue. This is a known thing now, just some minimum versions that need to be coordinated. The npm upgrade fix will probably work, though it will force any package versions to newest. A more proper fix is coming.

@IchordeDionysos Also thank you for the cross-link :)

@feywind
Copy link
Collaborator

feywind commented Feb 13, 2024

tl;dr for the other issue, still seems to be a problem on 4.3.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the googleapis/nodejs-pubsub API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants