-
Notifications
You must be signed in to change notification settings - Fork 369
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
STORAGE_EMULATOR_HOST not handled correctly #2069
Comments
Hi @mgabeler-lee-6rs , Thanks for following up on this issue. Is there a reason that apiEndpoint doesn't satisfy your use case? EMULATOR_HOST is an experimental variable meant to be used for some internal tests. |
Setting Having an environment variable like this is incredibly handy for developer environments, for the same reason as the From a more abstract point of view, in the current implementation there is no possible value for the |
Also, that environment variable is documented as "publicly" supported by the Go client, and I would hope that parity is desirable: https://pkg.go.dev/cloud.google.com/go/storage#hdr-Creating_a_Client Since my org uses a mix of NodeJS and Go, such parity would certainly benefit us :) |
Thanks for explaining this! I can totally see how the current developer experience is frustrating for your situation. I'm discussing this issue with our internal partners (like Go) to make sure that our implementations are consistent. I'll keep this issue updated. |
@shaffeeullah any updates you can share from those discussions? |
@mgabeler-lee-6rs This looks good! 🎉 There is a code freeze in place until October 11. We will release this change after the freeze ends. |
That sounds great, thank you! |
Since the proposed fix broke something and was insta-reverted, can this be re-opened pending finding a more compatible solution? |
@mgabeler-lee-6rs I created a follow-up issue: #2092 This will be a breaking change and we'll need to coordinate a release with Firebase. |
This is a rehash of #1314, which was somehow "fixed" by adding comments internal to the implementation.
Environment details
@google-cloud/storage
version: 5.8.5Steps to reproduce
As described in #1314, the distinction in the Storage constructor between
apiEndpoint
andbaseUrl
is not handled correctly when this environment variable is used. There is no possible value for this environment variable that results in a fully functioning client.The proposed fix in that issue also seems to work just fine, so will submit a PR
The text was updated successfully, but these errors were encountered: