question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

grpcwebproxy closes stream after a while

See original GitHub issue

Hello,

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:closed
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

5reactions
KShoukrycommented, Oct 2, 2018

@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

0reactions
Revinandcommented, Oct 3, 2018

@KShoukry thank you!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found