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
{{ message }}
Repository navigation
Storage: empty readHost when STORAGE_EMULATOR_HOST is set to host:port #4444
Fatal with error: http: no Host in request URL,
URL: http:///bucket/object
Additional context
I believe this happens after this call. since WithEndpoint and WithDefaultEndpoint have different behaviour inside this function. There might be a modification there.
However, I have linked a PR that will allow your code to work - the emulator will be set as the default endpoint for you. I added a test case for this as well. Please reopen if you continue having this issue once that is merged.
Activity
BrennaEpp commentedon Aug 13, 2021
Hi @0xc0d, to use an emulator with the Go Storage Client you must set
STORAGE_EMULATOR_HOSTand manually supply the endpoint to the client as such:However, I have linked a PR that will allow your code to work - the emulator will be set as the default endpoint for you. I added a test case for this as well. Please reopen if you continue having this issue once that is merged.