grpcwebproxy closes stream after a while
See original GitHub issueHello,
I took normal grpc server from this issue #48 (it’s based on the example book server) to test how streams work via grpcwebproxy
and added channel to emulate periodic pushes from server to client.
It works fine, but after a while (after some received updates) I got an error in the browser
POST http://localhost:8080/examplecom.library.BookService/QueryBooks net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK)
And grpcwebproxy
output is
INFO[0014] finished streaming call error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.method=QueryBooks grpc.service=examplecom.library.BookService grpc.start_time="2018-09-16T16:51:12+03:00" grpc.time_ms=10001 span.kind=server system=grpc
I run grpcwebproxy
as grpcwebproxy --backend_addr=localhost:9090 --run_tls_server=false
When I connect directly to the go server from the example, streams work fine without any errors.
Why grpcwebproxy
cancels stream or am I do something wrong? And how can I keep stream open until next update will be send?
If you need any additional info, let me know.
Thanks for help
Issue Analytics
- State:
- Created 5 years ago
- Comments:8
Top Results From Across the Web
improbable-eng/grpc-web Response closed without headers
I have a server in go using gRPC and on the react client I'm using grpc web with grpcwebproxy and ...
Read more >Crash in grpc code while running asynchorous stream for long ...
I am seeing following a crash in grpc code. I have 5 node setup, where all nodes are streaming out data. After few...
Read more >improbable-eng - Bountysource
GRPC stream requests made through React Native do not respond until the stream is closed. What you expected to happen. GRPC stream messages...
Read more >grpcwebproxy - Go Packages
gRPC Web Proxy. This is a small reverse proxy that can front existing gRPC servers and expose their functionality using gRPC-Web protocol, ...
Read more >Troubleshooting - IBM Cloud Docs
Or, after you finish deploying the IBM Blockchain Platform while the Kubernetes user ... but the orderer or the peer user interface does...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Revinand You are having the same issue I was having. This solved it for me https://github.com/improbable-eng/grpc-web/issues/171#issuecomment-392220446
@KShoukry thank you!