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

Doesn't work with grpc-gateway/v2/runtime #27

Open
flymedllva opened this issue May 20, 2021 · 3 comments
Open

Doesn't work with grpc-gateway/v2/runtime #27

flymedllva opened this issue May 20, 2021 · 3 comments

Comments

@flymedllva
Copy link

flymedllva commented May 20, 2021

Doesn't work with grpc-gateway/v2/runtime

I was unable to start with v2. Is there an example of the work?

The connection attempt ends

{
   "code": 12,
   "message": "Method Not Allowed",
   "details": []
}	
@tmc
Copy link
Owner

tmc commented Jan 1, 2022

@flymedllva You must override the underlying http method for the proxied request with something like method=POST.

For example:ws://localhost:50001/fooservice.v1.GameServerService/SyncState?method=POST

@tmc
Copy link
Owner

tmc commented Jan 2, 2022

Arguably this library should do that automatically because I believe all streaming grpc-gateway endpoints only accept POST.

@hxtk
Copy link

hxtk commented Jun 5, 2024

Arguably this library should do that automatically because I believe all streaming grpc-gateway endpoints only accept POST.

https://github.com/googleapis/googleapis/blob/46bc6f2d612c42644f061b4c22eedd762cd72909/google/watcher/v1/watch.proto#L168

Google's published gRPC APIs contain at least one example of a streaming endpoint being mapped to GET.

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