Skip to content

EssentialsXDiscord blocking up server startup when CloudFlare limit is hit #6591

Description

@takatalvi

Type of bug

Other unexpected behaviour

/ess dump all output

https://essentialsx.net/dump?bytebin=sgf5OCwufP

Error log (if applicable)

No response

Bug description

Hello, my host has recently been experiencing issue with hitting the CloudFlare limit, which means the chat/console relay is not working, but that's expected behavior. What's unexpected is that if this issue persists during server startup, the server never starts, because it waits for the retry, which could take hours depending on the situation with CloudFlare. The startup gets stuck on this:

[20:05:26 INFO]: [EssentialsDiscord] Enabling EssentialsDiscord v2.22.1-dev+12-776f709
[20:05:26 INFO]: [EssentialsDiscord] Starting Metrics. Opt-out using the global bStats config.
[20:05:26 INFO]: [EssentialsDiscord] Attempting to login to Discord...
[20:05:27 ERROR]: [net.essentialsx.dep.net.dv8tion.jda.api.requests.RestRateLimiter] Encountered cloudflare rate limit! Retry-After: 586 s

Steps to reproduce

Wait until your host experiences issues with hitting the CloudFlare rate limit (yeah, I know)
Start the server with EssentialsXDiscord installed.

Expected behaviour

The server should continue with the startup, the CloudFlare issue should not hold up the whole server but the retry should run in the background.

Actual behaviour

The startup gets stuck. The only way to get out of this situation is to kill the server process, remove EssentialsXDiscord.jar and restart it without it.

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: unconfirmedPotential bugs that need replicating to verify.

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions