
DiscordSRV stops trying to reconnect after ISP outage
catronomix opened this issue ยท 0 comments
Expected behavior
When internet was dropped, it is expected for the plugin to periodically try to reconnect with Discord, or somehow detect when connection has been restored and then try again.
Actual behavior
After an outage, when using DiscordSRV player authentication, players can't login and the console shows this error:
[hh:mm:ss] [User Authenticator #1/INFO]: Disconnecting username (/ipaddress:port): Currently unavailable to check link status because the server is still connecting to Discord.
Steps to reproduce
- Unplug internet cable for a while
- Wait for console to spam errors and finally say that no DNS server is responding and can't connect to Discord server
- Re-plug internet cable
Server software and version
Purpur version 1.21.1-2329-803bf62 (MC: 1.21.1)
Checks
- I am not using an outdated version of DiscordSRV.
- I asked in DiscordSRV's Discord server to see whether this issue is in fact a bug that needs to be fixed.
Ticket number or message link to where you asked in DiscordSRV's Discord server about this
20244
Anything else
Log: https://pastebin.com/tBCPQSUT
Additional info from ticket:
"The problem is not that the DNS is unavailable - this happens when the ISP has an outage and is expected. The issue is that after internet comes back up, server goes online and players try to log in . But then DiscordSRV throws this kind of error every time someone tries to log in:
[09:47:25] [User Authenticator #1/INFO]: [LuckPerms] Another plugin has cancelled the connection for userid - username. No permissions data will be loaded.
[09:47:25] [User Authenticator #1/INFO]: Disconnecting username(/ip:port): Currently unavailable to check link status because the server is still connecting to Discord.
Try again in a minute.
But I see nothing in the log of DiscordSRV trying to connect to Discord again after the flood of errors during the outage."