[GH-ISSUE #1587] google: could not find default credentials #207

Closed
opened 2026-03-03 12:09:09 +03:00 by kerem · 1 comment
Owner

Originally created by @jeesmon on GitHub (May 1, 2024).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/1587

Running go example is giving the following error

go run main.go
2024/05/01 09:10:24 failed to create client: dialing: google: could not find default credentials. See https://cloud.google.com/docs/authentication/external/set-up-adc for more information
exit status 1

Any option to bypass auth in go when working with fake-gcs-server?

Originally created by @jeesmon on GitHub (May 1, 2024). Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/1587 Running go example is giving the following error ``` go run main.go 2024/05/01 09:10:24 failed to create client: dialing: google: could not find default credentials. See https://cloud.google.com/docs/authentication/external/set-up-adc for more information exit status 1 ``` Any option to bypass auth in go when working with `fake-gcs-server`?
kerem closed this issue 2026-03-03 12:09:09 +03:00
Author
Owner

@jeesmon commented on GitHub (May 1, 2024):

Setting export STORAGE_EMULATOR_HOST=http://localhost:8000 worked!

<!-- gh-comment-id:2088577108 --> @jeesmon commented on GitHub (May 1, 2024): Setting `export STORAGE_EMULATOR_HOST=http://localhost:8000` worked!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/fake-gcs-server#207
No description provided.