Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Unstable connection to gateway #3

Open
Terisback opened this issue Dec 25, 2020 · 4 comments
Open

Unstable connection to gateway #3

Terisback opened this issue Dec 25, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@Terisback
Copy link
Owner

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)...
@Terisback Terisback added the bug Something isn't working label Dec 25, 2020
@Terisback Terisback added this to the Release to vpm milestone Dec 28, 2020
@Terisback Terisback changed the title Properly handle connection to gateway Unstable connection to gateway Dec 29, 2020
@Androz2091
Copy link
Contributor

Indeed, I'm also encountering this issue

@Terisback
Copy link
Owner Author

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

@Androz2091
Copy link
Contributor

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

@Terisback
Copy link
Owner Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@Terisback @Androz2091 and others