Skip to content
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

Does it work with current SDK versions? #242

Open
galvesribeiro opened this issue Jun 4, 2023 · 2 comments
Open

Does it work with current SDK versions? #242

galvesribeiro opened this issue Jun 4, 2023 · 2 comments

Comments

@galvesribeiro
Copy link

Hello! Thanks for being the only one around who cared to make an emulator for GCP Storage!

So, I've tried to use it with Docker and run the simple hello world from Google in .Net, and I'm getting "NotImplemented" response with this in the container logs:

2023-06-03 23:02:26 Starting server at 0.0.0.0:9594
2023-06-03 23:02:26 [SERVER] All services started
2023-06-03 23:02:38 Method not implemented: POST - /b
2023-06-03 23:02:38 "POST /b?project=orleans-test HTTP/1.1" 501 -

This is happening with the call to create a bucket.

I'm setting the STORAGE_EMULATOR_HOST.

Also tried building the client explicitly with this:

var client = new StorageClientBuilder()
        {
            BaseUri = this.StorageEndpoint,
            UnauthenticatedAccess = true
        }.Build();

Same problem...

Any idea what may be wrong?

Thank you! I appreciate any help!

@MarcDanjou
Copy link

MarcDanjou commented Mar 7, 2024

I had the same issue, this can be resolved by providing the full enpoint (in your case with PORT=9594)

STORAGE_EMULATOR_HOST=http://localhost:9594/storage/v1

Works flawlessly on nodejs 20

@pataquets
Copy link

Issue gardening.
@galvesribeiro Did it worked for you? Can the issue be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants