bug: Gotify version
check makes webook initialization unreliable
#215
Labels
bug
Something isn't working
version
check makes webook initialization unreliable
#215
Please check existing knowledge before opening an issue
Describe the Bug
Gotify webhooks are initialized by calling the
/version
endpoint, and the webhook is only used if this call succeeds.This check is never retried, so a transient error with your Gotify instance/your internet connection could mean no webhook notifications until multi-scrobbler is restarted. This could also happen if e.g. Gotify and multi-scrobbler are both running as docker containers on the same host, and multi-scrobbler starts up before gotify is ready.
multi-scrobbler/src/backend/notifier/GotifyWebhookNotifier.ts
Lines 35 to 37 in f308f71
imo webhooks should be set up unconditionally - the only benefit I can see for failing on this version check is to avoid potentially sending out failing requests for the rest of the lifetime of the application, which is unlikely to cause major issues.
Platform
Docker
Versions
Logs
No response
Additional Context
nb: my true motivation for this is actually that I use Pushbits as a notification server which has a Gotify-compatible API but no
/version
endpoint. I filed an issue with them as it's not really compatible if it's missing API methods, but I'm not sure it's receiving active feature developmentThe text was updated successfully, but these errors were encountered: