Kord does not recover from UnknownHostException
It seems like Kord doesn't recover from
UnknownHostException
- at least not fully as the Discord bot appears as offline
and does no longer react to application commands until it is restarted. I ran into this issue two times in the past few weeks. The bot is using google dns to resolve hostnames.
Stack trace is attached as screenshot since... discord message character limit...
Also, here's the project in case you want to look something up: https://github.com/DarkAtra/v-rising-discord-bot
2 Replies
Would you like to it to retry after an UnknownHostException? I think it's intended, that it doesn't recover from name resulution issues, as the indicate a persistent problem
Yes, I would expect Kord to attempt to recover in such a case. In my experience, most
UnknownHostException
are temporary and usually recoverable by retrying with backoff.