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

Research direction

Start with wrapper/session_routine_listener.go at lines 19 and 40, then inspect wrapper/session_routine_manager.go at lines 114 and 120. Use the linked context log to trace the EOF after Context.Done and determine whether it represents an expected disconnect or an unhandled error. Done means the cause and intended handling are documented or agreed on before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.