TheKevJames / tools

collection of tools too small to deserve their own repo
Other
19 stars 17 forks source link

pubsub emulator: Could not construct ApplicationDefaultCredentials #1016

Open ollosh opened 2 months ago

ollosh commented 2 months ago

Everything was working well before with the emulator until I needed to implement a new topic and a subscriber. I went to test old implementation that I'm positive was working, but the exception is the same. I keep getting: Could not construct ApplicationDefaultCredentials which I find weird because I don't think there's any special authentication needed as confirmed by https://cloud.google.com/pubsub/docs/emulator.

I did a bit of digging and I think some code has changed in https://github.com/googleapis/google-cloud-php-pubsub/commit/7f2f17a62b3d2c558f8346b6ac2cd5c34e847a4a, but wanted to check here first if anyone is experiencing the same issue.

ollosh commented 2 months ago

Seems like this was indeed broke in pubsub v2. Issue that has some more details is https://github.com/googleapis/google-cloud-php/issues/7187, which I'll keep following.

@TheKevJames I assume, this has nothing to do with your docker image so if you want you can close this one :)