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

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

Closed
alexanderczigler opened this issue Feb 2, 2024 · 1 comment · Fixed by #1748
Closed

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

alexanderczigler opened this issue Feb 2, 2024 · 1 comment · Fixed by #1748
Labels
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

@alexanderczigler
Copy link

Environment details

  • OS: linux
  • Node.js version: 18
  • npm version: 9
  • google-auth-library version: 9.6.1

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.

@alexanderczigler alexanderczigler 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 2, 2024
@danielbankhead
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

2 participants