Skip to content

investigate listen routine shutdown #81

Closed
@switchupcb

Description

@switchupcb

Problem

Session listen routine shutdown at a random point, which causes the bot to go offline.

This issue is related, but not a followup to #79.

Information

Here is a log showing an error from the listen routine.

This error occurs 11 hours after the bot was started and after 2 successful reconnects. The listen routine shutdown ~4 hours after reconnecting.

{"level":"info","time":"2025-02-25T07:39:51.243316838Z","session":"0bf54ed815cb64492b3b442af76aecee","message":"reconnecting session due to Opcode 7 Reconnect"}
{"level":"info","time":"2025-02-25T07:39:52.571111584Z","session":"19a66158dd23faa53df0a0cce17ea441","message":"received Ready event"}

{"level":"info","time":"2025-02-25T11:15:50.047799401Z","session":"19a66158dd23faa53df0a0cce17ea441","message":"closed listen routine"}
{"level":"info","time":"2025-02-25T11:15:50.047882793Z","session":"19a66158dd23faa53df0a0cce17ea441","client":"948649712649662524","message":"received signal: <-s.Context.Done with state \"connected\""}
{"level":"info","time":"2025-02-25T11:15:50.063901311Z","session":"19a66158dd23faa53df0a0cce17ea441","message":"closed pulse routine"}
{"level":"info","time":"2025-02-25T11:15:50.064162719Z","session":"19a66158dd23faa53df0a0cce17ea441","message":"closed heartbeat routine"}
{"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"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or requestwrapper

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions