This pull request addresses a startup race condition in the Discord helper bot, ensuring that the correct LISTENARR_URL is used for outbound requests immediately at boot. The main fix is to synchronously resolve the Listenarr URL before any network calls, preventing authentication failures in containerized production environments. Additionally, the changelog and Dockerfile recommendations have been updated to reflect these improvements.
Bug fix: Discord bot startup race
- The Discord helper bot now awaits
resolveListenarrUrl()during startup, guaranteeing that outbound requests use the environment-providedLISTENARR_URLor.envvalue, which prevents authentication failures (401 errors) caused by defaulting tohttp://localhost:5000in containerized production. [1] [2]
Documentation & Dockerfile updates
- The changelog documents the fix for the Discord helper bot startup race and clarifies Dockerfile recommendations for enabling Docker-aware fallbacks by explicitly setting the
DOCKER_ENVvariable. [1] [2]Ensures the Discord helper bot resolves LISTENARR_URL synchronously before making outbound requests, preventing authentication failures due to defaulting to localhost in containerized production environments.
Automated canary build