[GH-ISSUE #675] Autentication failed in latest version #495

Closed
opened 2026-05-07 00:24:45 +02:00 by BreizhHardware · 2 comments

Originally created by @skibbipl on GitHub (Mar 19, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/675

🐞 Describe the bug
I'm using ntfy since few days. I've configured few users and topics. Today I upgraded to latest 2.2.0 version and I when I added new user it cannot post topics.

💻 Components impacted
ntfy server

💡 Screenshots and/or logs
In previous version:

ntfy user add olduser
ntfy access olduser test write-only

curl -u olduser:olduser -d "Test" https://my-url/test
{"id":"imdZq5SLPAWT","time":1679241029,"expires":1679284229,"event":"message","topic":"test","message":"Test"}

In current version:

ntfy user add newuser
ntfy access newuser test write-only

curl -u newuser:newuser -d "Test" https://my-url/test
{"code":40101,"http":401,"error":"unauthorized","link":"https://ntfy.sh/docs/publish/#authentication"}

🔮 Additional context
I enabled logs, but nothing is logged. Also users created in previous version are still working fine.

Originally created by @skibbipl on GitHub (Mar 19, 2023). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/675 :lady_beetle: **Describe the bug** I'm using ntfy since few days. I've configured few users and topics. Today I upgraded to latest 2.2.0 version and I when I added new user it cannot post topics. :computer: **Components impacted** ntfy server :bulb: **Screenshots and/or logs** In previous version: ``` ntfy user add olduser ntfy access olduser test write-only curl -u olduser:olduser -d "Test" https://my-url/test {"id":"imdZq5SLPAWT","time":1679241029,"expires":1679284229,"event":"message","topic":"test","message":"Test"} ``` In current version: ``` ntfy user add newuser ntfy access newuser test write-only curl -u newuser:newuser -d "Test" https://my-url/test {"code":40101,"http":401,"error":"unauthorized","link":"https://ntfy.sh/docs/publish/#authentication"} ``` :crystal_ball: **Additional context** I enabled logs, but nothing is logged. Also users created in previous version are still working fine.
BreizhHardware 2026-05-07 00:24:45 +02:00
Author
Owner

@binwiederhier commented on GitHub (Mar 19, 2023):

What did you upgrade from? v1.x?

Can you show the output of the ACL? ntfy access?

Try to enable debugging and see if there are any additional clues? https://docs.ntfy.sh/config/#logging-debugging

<!-- gh-comment-id:1475354148 --> @binwiederhier commented on GitHub (Mar 19, 2023): What did you upgrade from? v1.x? Can you show the output of the ACL? `ntfy access`? Try to enable debugging and see if there are any additional clues? https://docs.ntfy.sh/config/#logging-debugging
Author
Owner

@skibbipl commented on GitHub (Mar 19, 2023):

False alarm, I was pointing to different instance of ntfy server on my reverse proxy 😲

<!-- gh-comment-id:1475416458 --> @skibbipl commented on GitHub (Mar 19, 2023): False alarm, I was pointing to different instance of ntfy server on my reverse proxy 😲
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/ntfy#495
No description provided.