grpc-websocket-proxy icon indicating copy to clipboard operation
grpc-websocket-proxy copied to clipboard

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

Open flymedllva opened this issue 4 years ago • 3 comments

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": []
}	

flymedllva avatar May 20 '21 22:05 flymedllva

@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 avatar Jan 01 '22 23:01 tmc

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

tmc avatar Jan 02 '22 00:01 tmc