Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

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

@alexanderczigler

Description

@alexanderczigler

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.

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