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

Why does it still report: websocket: close 4004: Authentication failed, even though the connection was successful? #1544

Open
linliyuan opened this issue Jul 11, 2024 · 0 comments

Comments

@linliyuan
Copy link

linliyuan commented Jul 11, 2024

I encountered an issue while using the Discord reconnection mechanism. The reconnection seems to be successful, but I keep getting the error 'websocket: close 4004: Authentication failed' when trying to receive messages. This causes the bot to enter an infinite reconnection loop.

The third-party package I am using is github.com/bwmarrin/discordgo v0.27.1.

Here is a screenshot of the specific logs:

image

image

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant