[GH-ISSUE #243] Redis URL is not working as documented #60

Open
opened 2026-03-02 05:18:29 +03:00 by kerem · 0 comments
Owner

Originally created by @NobodysNightmare on GitHub (May 13, 2022).
Original GitHub issue: https://github.com/hibiken/asynqmon/issues/243

Hey there,

I just noticed today that parsing the REDIS_URL environment variable does not work as documented.

Environment

  • Running in Kubernetes
  • Using the docker image hibiken/asynqmon:0.7.1 directly

Expected behaviour

Asynqmon works correctly when passing an environment variable like REDIS_URL=redis://example.com. I take this from the docs linked for possible URL formats, specifically:

redis://[:password@]host[:port][/dbnumber]

I am interpreting the brackets ([]) to denote optional parts, thus expecting the port to be optional.

Actual behaviour

It is necessary to indicate the port in the URL, like so REDIS_URL=redis://example.com:6379. Using the URL from the expected behaviour causes an error, which through the browser inspector can be read as:

dial tcp: address redis.asynq.arh-staging.de: missing port in address
Originally created by @NobodysNightmare on GitHub (May 13, 2022). Original GitHub issue: https://github.com/hibiken/asynqmon/issues/243 Hey there, I just noticed today that parsing the `REDIS_URL` environment variable does not work as documented. ### Environment * Running in Kubernetes * Using the docker image `hibiken/asynqmon:0.7.1` directly ### Expected behaviour Asynqmon works correctly when passing an environment variable like `REDIS_URL=redis://example.com`. I take this from the [docs linked for possible URL formats](https://pkg.go.dev/github.com/hibiken/asynq#ParseRedisURI), specifically: ``` redis://[:password@]host[:port][/dbnumber] ``` I am interpreting the brackets (`[]`) to denote optional parts, thus expecting the port to be optional. ### Actual behaviour It is necessary to indicate the port in the URL, like so `REDIS_URL=redis://example.com:6379`. Using the URL from the expected behaviour causes an error, which through the browser inspector can be read as: dial tcp: address redis.asynq.arh-staging.de: missing port in address
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynqmon#60
No description provided.