Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to startup - no hello event #5

Open
tobbbles opened this issue Oct 8, 2020 · 1 comment
Open

Failure to startup - no hello event #5

tobbbles opened this issue Oct 8, 2020 · 1 comment
Labels
type: bug Something isn't working

Comments

@tobbbles
Copy link

tobbbles commented Oct 8, 2020

Using a minimal example from the README, the application fails to properly start up.

System Info:
Erlang/OTP 23 [erts-11.1.1] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [hipe]

Mix 1.11.0 (compiled with Erlang/OTP 23)

Log

18:57:29.189 [debug] Starting

18:57:29.194 [info]  Booting, connecting to wss://gateway.discord.gg/?encoding=etf&v=6&compress=zlib-stream

18:57:29.629 [info]  Connected


18:57:49.766 [warn]  Disconnected: Did not receive hello after 20 seconds. Waiting five seconds before reconnecting

18:57:54.998 [info]  Reconnected

This will continue to repeat seemingly indefinitely.

@SpaceEEC SpaceEEC added the type: bug Something isn't working label Oct 10, 2020
@tobbbles
Copy link
Author

tobbbles commented Oct 10, 2020

I notice how the log isn't outputting the [debug] Sending identify from lib/gateway/identify_limiter.ex. If i continually restart the sample application, around 1 in 10 tries it will successfully connect. I wonder if there's a race with the identify limiter, or the calling of it?

EDIT:

Azolo/websockex#84 Related

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

No branches or pull requests

2 participants