coder / coder/websocket

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

Open
#520 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
5.5k
Forks
372
PR merge metrics
No merged PRs in 30d

Description

**What does this error mean?**

You can read the context log of this issue at https://github.com/switchupcb/disgo/issues/81.

Here is the code involved.

```json
{"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

```json
{"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`](https://github.com/switchupcb/disgo/blob/v10/wrapper/session_routine_manager.go#L120) which contains `LogSession(Logger.Info(), s.ID).Str(LogCtxClient, bot.ApplicationID).Err(err).Msgf("<-s.Context.Done manager wait error result")`
- from `return err` at https://github.com/switchupcb/disgo/blob/v10/wrapper/session_routine_listener.go#L40
- from `socket.Read` at https://github.com/switchupcb/disgo/blob/v10/wrapper/session_routine_listener.go#L19

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.