You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been talking with @tk3369 about my bot always losing a connection to Discord at some point and I implemented his error handling fix in #32, which alleviated the situation. However it always fails to reconnect at some point.
We discussed the idea of turning on all debug messages to catch what it is doing when it calls
and after 3 days of uptime I managed to capture some results: botdebugoutput.txt
The output is rather verbose, so I should annotate what is going on:
Ignore the beginning errors, those usually pop up because the script does not run fast enough due to precompilation, but the bot works fine despite all of that. (Still, maybe I could be mistaken and perhaps it is somehow affecting this whole issue.)
Ignore most of the Info messages except for the ones with the message Going to reopen and Reopened. Those are @info tags sandwiching the aforementioned open(c; resume=resume) line.
These are all the lines where it reopens and successfully reopens. Perhaps something relevant or of interest is that a tasks_pending list starts to get larger and larger over time.
The last time it reopens and hangs there (bot fails to respond anymore, client object says Discord.Client(shard=1/1, api=6, not logged in) and does not switch to logged in) is at L2642 to the end of the file.
Sorry for the large text file, I would attempt to assist further but I'm really out of my element at the moment. I hope this somehow helps!
The text was updated successfully, but these errors were encountered:
By now, for HoJBot, I have seen 2 crashes before. Today, it did not crash but the bot appears to be offline in Discord and it's not handling messages. I checked the console and this is where it last reported anything:
┌ Info: Reconnecting
│ time = 2021-04-14T20:25:41.918
│ conn = 48
│ resume = true
└ zombie = false
┌ Warning: Unable to close existing connection
│ ex = IOError: stream is closed or unusable
└ @ Discord ~/.julia/packages/Discord/ywMY6/src/gateway/gateway.jl:372
I have been talking with @tk3369 about my bot always losing a connection to Discord at some point and I implemented his error handling fix in #32, which alleviated the situation. However it always fails to reconnect at some point.
We discussed the idea of turning on all debug messages to catch what it is doing when it calls
Discord.jl/src/gateway/gateway.jl
Line 374 in 11767ed
The output is rather verbose, so I should annotate what is going on:
Info
messages except for the ones with the messageGoing to reopen
andReopened
. Those are@info
tags sandwiching the aforementionedopen(c; resume=resume)
line.tasks_pending
list starts to get larger and larger over time.Discord.Client(shard=1/1, api=6, not logged in)
and does not switch tologged in
) is at L2642 to the end of the file.Sorry for the large text file, I would attempt to assist further but I'm really out of my element at the moment. I hope this somehow helps!
The text was updated successfully, but these errors were encountered: