googleapis / nodejs-pubsub

Node.js client for Google Cloud Pub/Sub: Ingest event streams from anywhere, at any scale, for simple, reliable, real-time stream analytics.
https://cloud.google.com/pubsub/
Apache License 2.0
516 stars 227 forks source link

this.auth.getUniverseDomain is not a function #1884

Closed RoopeHakulinen closed 5 months ago

RoopeHakulinen commented 5 months ago

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

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.

IchordeDionysos commented 5 months ago

@RoopeHakulinen this helped for me: https://github.com/googleapis/google-auth-library-nodejs/issues/1702#issuecomment-1934514234

feywind commented 5 months ago

@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 commented 5 months ago

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