Skip to content

Help debug: invalid_argument: protocol error: incomplete envelope: unexpected EOF #757

Answered by sudorandom
D4ryl00 asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah, reference this documentation: https://connectrpc.com/docs/faq#stream-error

The error, strangely, doesn't match what you're seeing but it appears to be caused by the same thing. Maybe they need to update this documentation.

However, here's the issue: When you configure http.Server with a ReadTimeout or WriteTimeout it will terminate the HTTP connection after the configured amount of time, regardless if there's regular messages being passed. This doesn't work well with long running streaming calls since the connection will just be terminated like you're seeing.

Is it good practice to set these values to zero? Eh, it's a bit hard to say. I think there's two lines of thinking:

  • Publicly…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
3 replies
@D4ryl00
Comment options

@emcfarlane
Comment options

@D4ryl00
Comment options

Comment options

You must be logged in to vote
6 replies
@D4ryl00
Comment options

@D4ryl00
Comment options

@D4ryl00
Comment options

@sudorandom
Comment options

Answer selected by D4ryl00
@D4ryl00
Comment options

@emcfarlane
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants