Skip to content

[BUG] Relay crashes on startup if Redis password contains # #569

Closed

Description

@tharu-jwd

Describe the bug
If REDIS_URI isn't set, the client builds a Redis URL by string interpolating the env vars. If REDIS_PASSWORD has a # in it, new URL() blows up with TypeError: Invalid URL, and the relay won't start.

To Reproduce

  1. Set REDIS_PASSWORD=p#ssword. Leave REDIS_URI unset
  2. Start nostream
  3. TypeError: Invalid URL

Expected behavior
Relay starts fine regardless of what's in the password.

Screenshots
N/A

System (please complete the following information):

  • OS: Any
  • Platform: docker / standalone
  • Version: latest

Logs
TypeError: Invalid URL
at new URL (node:internal/url:826:25)

Additional context
@ and : work fine. Node's URL parser handles those. # is the problem since it signals a fragment.

Activity

  1. tharu-jwd commented on Apr 22, 2026

    @tharu-jwd
    ContributorAuthor

    Hey @cameri , found this issue in Redis connection while exploring the codebase.
    Did a fix and linked a PR. Please let me know if any changes are required.

  2. cameri commented on Apr 25, 2026

    @cameri
    Owner

    @tharu-jwd theres an open PR solving this

  3. tharu-jwd commented on Apr 26, 2026

    @tharu-jwd
    ContributorAuthor

    @tharu-jwd theres an open PR solving this

    I saw that's broad fix and closed my PR some time ago. Sorry for not mentioning that in the issue thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions