googleapis / google-auth-library-nodejs

🔑 Google Auth Library for Node.js
Apache License 2.0
1.71k stars 374 forks source link

Version 9.6.1 breaks @google-cloud/pubsub's emulator mode #1747

Closed alexanderczigler closed 7 months ago

alexanderczigler commented 7 months ago

Environment details

Steps to reproduce

  1. Use @google-cloud/pubsub in a project
  2. Run the project with PUBSUB_EMULATOR_HOST set (this tells the pubsub library it is connecting to an emulator, see https://cloud.google.com/pubsub/docs/emulator)
  3. Note that the pubsub library fails with Error publishing to Pub/Sub Error: Could not load the default credentials.
  4. Add "google-auth-library": "<9.6.1" to resolutions in package.json
  5. Note that pusbusb now works together with the emulator as intended

Notes

The changes in 9.6.1 seem to have something to do with this.

danielbankhead commented 7 months ago

Thanks for reporting - I'll get this resolved for you: