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

Internal: Unexpected EOF decoding stream #1199

Closed
danchia opened this issue Dec 16, 2022 · 4 comments
Closed

Internal: Unexpected EOF decoding stream #1199

danchia opened this issue Dec 16, 2022 · 4 comments

Comments

@danchia
Copy link

danchia commented Dec 16, 2022

Bug Report

During routine operation, our service received "Internal: Unexpected EOF decoding stream" while using tonic to stream from an external API. We believe this is coming from tonic here in decode.rs

Version

tonic 0.7.1
tonic 0.8.0

Platform

amazon-eks-node-1.23-v20221112 on x86_64.
kernel: 5.4.219-126.411.amzn2

Description

It looks like the most likely reason this happen is the external API server hung up midway through the stream. In which case, this seems like a routine transport error which is usually reported by tonic as unknown: transport error rather than an internal error. An internal error makes it sound like there's a tonic bug.

Could you please check my understanding of the situation? If this is an error than can be routinely encountered, perhaps we should change the ErrorKind to something other than internal?

@LucioFranco
Copy link
Member

@danchia can you provide the full error and relevant logs you have?

@LucioFranco
Copy link
Member

I wonder if its related to #1183

@danchia
Copy link
Author

danchia commented Dec 19, 2022

Unfortunately, I don't have much more details to provide. The full error message I have available to me is "internal: Unexpected EOF decoding stream." and we don't have trace logging turned on in production.

@LucioFranco
Copy link
Member

Yeah, without more logs its hard to say exactly what is going on. Did you have tls enabled? What tls backend are you using if so? The error messages from the transport are pretty bad tbh so I am not sure if its a bug or its just some weird interaction with a goaway and the tcp connection closing early.

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

2 participants