Skip to content

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

@tharu-jwd

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.

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