Terisback / discord.v

Discord Bot Framework written in V
MIT License
120 stars 12 forks source link

Unstable connection to gateway #3

Open Terisback opened 3 years ago

Terisback commented 3 years ago

Currently it can drop connection randomly (for me) and resume incorrectly, without really connecting to something. (Running ping-pong example)

[discord.v] #0 Gateway closed [code: 1000 (normal_closure), reason: Reconnect]
[INFO  2020-12-25 18:14:41] Quit client listener, server(false)...
[discord.v] #0 Gateway closed [code: 1000 (normal_closure), reason: closed by client]
[INFO  2020-12-25 18:14:41] connecting to host wss://gateway.discord.gg/?v=8&encoding=json
[INFO  2020-12-25 18:14:41] successfully connected to host wss://gateway.discord.gg/?v=8&encoding=json
[discord.v] #0 Successfully connected to gateway
[INFO  2020-12-25 18:14:41] Starting client listener, server(false)...
[discord.v] #0 Gateway closed [code: 1000 (normal_closure), reason: Reconnect]
[INFO  2020-12-25 19:03:30] Quit client listener, server(false)...
[discord.v] #0 Gateway closed [code: 1000 (normal_closure), reason: closed by client]
[INFO  2020-12-25 19:03:30] connecting to host wss://gateway.discord.gg/?v=8&encoding=json
[INFO  2020-12-25 19:03:31] successfully connected to host wss://gateway.discord.gg/?v=8&encoding=json
[discord.v] #0 Successfully connected to gateway
[INFO  2020-12-25 19:03:31] Starting client listener, server(false)...
Androz2091 commented 3 years ago

Indeed, I'm also encountering this issue

Terisback commented 3 years ago

@Androz2091 I have no idea how to debug or fix this yet Do you have any ideas?

Androz2091 commented 3 years ago

I will try to debug that bug this evening, I will send messages here if I find something

Terisback commented 3 years ago

@Androz2091 I tried to debug, but I didn't really try hard, how are you doing?