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

Reconnect on non-session-related errors #1

Open
diamondburned opened this issue Nov 10, 2022 · 0 comments
Open

Reconnect on non-session-related errors #1

diamondburned opened this issue Nov 10, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@diamondburned
Copy link
Member

What happened

failed to get gateway endpoint: request failed: Get "https://discord.com/api/v9/gateway": context deadline exceeded

What should've happened

Twidiscord should've detected if the error is to do with a bad token or not, or it should check if the error:

  • is a gateway WS error, and
  • has an exit code that is in the fatal exit codes list.

It would be nice if Arikawa can expose a method to wrap around this.

@diamondburned diamondburned added the bug Something isn't working label Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant