Skip to content

Authorization Headers not being sent when running ntfy sub when using default-user/password or default-token #698

Closed
@CrimsonFez

Description

@CrimsonFez

🐞 Describe the bug

When setting the default-user and default-password or default-token in ~/.config/ntfy/client.yml and trying to use ntfy sub/subscribe, the Authorization Headers are not sent. This is not the case with ntfy pub/publish

💻 Components impacted

💡 Screenshots and/or logs

❯ ntfy sub --trace test 'notify-send "$m"'
2023/04/07 11:22:19 DEBUG ntfy.domain.net/test Subscribing to topic
2023/04/07 11:22:19 DEBUG ntfy.domain.net/test Listening to https://ntfy.domain.net/test/json
2023/04/07 11:22:19 WARN ntfy.domain.net/test Connection failed: {"code":40301,"http":403,"error":"forbidden","link":"https://ntfy.sh/docs/publish/#authentication"}
2023/04/07 11:22:29 DEBUG ntfy.domain.net/test Listening to https://ntfy.domain.net/test/json
2023/04/07 11:22:29 WARN ntfy.domain.net/test Connection failed: {"code":40301,"http":403,"error":"forbidden","link":"https://ntfy.sh/docs/publish/#authentication"}

🔮 Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    🪲 bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions