coder / coder/websocket

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

Đang mở
#520 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
5.5k
Fork
372
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
go
Lĩnh vực
networking
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.