Casvt / MIND

A simple self hosted reminder application that can send push notifications to your device. Set the reminder and forget about it!
https://casvt.github.io/MIND/
GNU General Public License v3.0
206 stars 10 forks source link

selfhosted ntfy with auth not working ¿? #34

Closed rubenixnagios closed 1 year ago

rubenixnagios commented 1 year ago

Description of the bug selfhosted ntfy with auth not working as expected / working from container

To Reproduce have a selfhosted ntfy with auth but not working when I set up a reminder working if I send the notification from inside the container

heres the command i send from the container that works:

apprise -vv -t "Test Message Title" -b "Test Message Body" \ ntfys://username:"password"@ntfy.mydomain.com/Mytopic

--> Have to escape as theres a special character on password

so, thats what I set on the Notification Services: ntfys://username:"password"@ntfy.mydomain.com/Mytopic

nothing sent when I press on test or I set up a reminder.

Expected behaviour get the notification

Screenshots NA

Version info

Additional context Can somebody reproduce this? Something bad on my sintax in the Notification Services section?

thanks so much for this nice piece of work!

Casvt commented 1 year ago

Probably has to do with the escaping. I'll check it out. In the mean time: does it work when the string is the following?

ntfys://username:\"password\"@ntfy.mydomain.com/Mytopic

Instead of:

ntfys://username:"password"@ntfy.mydomain.com/Mytopic
rubenixnagios commented 1 year ago

not working: ntfys://username:\"password\"@ntfy.mydomain.com/Mytopic nor ntfys://username:\"password"\@ntfy.mydomain.com/Mytopic get this: >

rubenixnagios commented 1 year ago

message sent to ntfy.sh instead if that helps

Casvt commented 1 year ago

In the Noted web-ui, when you go to the "Notification services" tab and edit the ntfy service you've setup, can you escape the quotes in the url? Escaping being " -> \".

Then save, and use the test button when adding a reminder to see if it works or not.

rubenixnagios commented 1 year ago

test it right now, notification not sent to my selfhosted ntfy but it sends to ntfy.sh instead... my ntfy service works, it has to be something with the escaping, Im pretty sure

rubenixnagios commented 1 year ago

from inside container does not work either with the escaping you suggested: !\"@ntfy.mydomain.com/MyTopic : event not found

rubenixnagios commented 1 year ago

just an update here: tried also with single quotes and makes no difference...

also tried tro escape it like '\ or \' same result (notification sent to ntfy.sh and not to my selhosted ntfy

Casvt commented 1 year ago

The quotes aren't needed. Edit the notification service in the UI and remove the quotes from the url. It should work just fine without them.

rubenixnagios commented 1 year ago

sorry for the delay here, been away; indeed it works. dunno what happened here but I tough I tried with no quotes as my first attempt... Thanks for your time mate, time to add reminders!!