You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever I create an instance of PubSubClient and do something with it in my development environment, using the PubSub emulator, I get the following exception:
Google\ApiCore\ValidationException: Could not construct ApplicationDefaultCredentials
Looking into the code it seems the library can't construct credentials to use for PubSub, but it shouldn't even need it, as the emulator doesn't require any credentials.
The v1 version of the library also didn't need any credentials.
Environment details
OS: Ubuntu 22.04
PHP version: 8.3
Package name and version: google/cloud-pubsub, version 2.7.0
Steps to reproduce
Set environment variable PUBSUB_EMULATOR_HOST
Create new PubSubClient
Do something with client
The text was updated successfully, but these errors were encountered:
However, you'll then face another issue: the library generates HTTPS links, while Pub/Sub only supports HTTP. This should be addressed by my merge request, which is currently awaiting approval.
Whenever I create an instance of
PubSubClient
and do something with it in my development environment, using the PubSub emulator, I get the following exception:Looking into the code it seems the library can't construct credentials to use for PubSub, but it shouldn't even need it, as the emulator doesn't require any credentials.
The v1 version of the library also didn't need any credentials.
Environment details
Steps to reproduce
PUBSUB_EMULATOR_HOST
PubSubClient
The text was updated successfully, but these errors were encountered: