Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
CrimsonFez opened this issue Apr 7, 2023 · 1 comment
Labels
🪲 bug Something isn't working

Comments

@CrimsonFez
Copy link

🐞 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

@CrimsonFez CrimsonFez added the 🪲 bug Something isn't working label Apr 7, 2023
@wunter8
Copy link
Contributor

wunter8 commented Apr 7, 2023

I was able to reproduce this. I will try to work on a fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants