Skip to content

failed to get reader: failed to read frame header: EOF #520

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

Open
switchupcb opened this issue Feb 25, 2025 · 1 comment
Open

failed to get reader: failed to read frame header: EOF #520

switchupcb opened this issue Feb 25, 2025 · 1 comment

Comments

@switchupcb
Copy link

switchupcb commented Feb 25, 2025

What does this error mean?

You can read the context log of this issue at switchupcb/disgo#81.

Here is the code involved.

{"level":"info","time":"2025-02-25T11:15:50.047882793Z","session":"19a66158dd23faa53df0a0cce17ea441","client":"948649712649662524","message":"received signal: <-s.Context.Done with state \"connected\""}

This log is output at https://github.com/switchupcb/disgo/blob/v10/wrapper/session_routine_manager.go#L114

{"level":"info","time":"2025-02-25T11:15:50.064255893Z","session":"19a66158dd23faa53df0a0cce17ea441","client":"948649712649662524","error":"listen: failed to get reader: failed to read frame header: EOF","message":"<-s.Context.Done manager wait error result"}

This log is output at unimplemented in public which contains LogSession(Logger.Info(), s.ID).Str(LogCtxClient, bot.ApplicationID).Err(err).Msgf("<-s.Context.Done manager wait error result")

@swiperthefox
Copy link

It means the connection is closed, by the other end or by a third party.

I got the same error today. In my case, nginx closed the connection after a timeout. My workaround for now is to set a longer timeout for nginx, but a proper fix is to use ping/pong messages to keep the connection alive. I come here to look for information about this.

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