jellyfin / jellyfin-plugin-webhook

GNU General Public License v3.0
151 stars 49 forks source link

Webhook spamming gotify with UserDataSaved during playback, no Authentication failure/success messages #206

Open d03j opened 1 year ago

d03j commented 1 year ago

Hi there,

I can't seem to get any notifications when I authenticate or fail to authenticate to jelllyfin. On the other hand, I get countless UserDataSaved notification during playback.

This is the template I am using to test the webhook plugin:

{
    "extras":{
        "client::display": {
            "contentType": "text/markdown"
        }
    },
    "priority": {{Priority}},
    "title": "Jellyfin {{NotificationType}}",
    "message": "message"
}

My logs show countless iterations of these lines during playback:

[2023-11-29 20:46:20.330 +11:00] [WRN] [35] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://<my server ip>:8096/Sessions/Playing/Progress" to "<my client ip>" in 0:00:00.6430942 with Status Code 204
[2023-11-29 20:46:23.521 +11:00] [DBG] [35] Jellyfin.Plugin.Webhook.Destinations.Gotify.GotifyClient: SendAsync Body: "{
    \"extras\":{
        \"client::display\": {
            \"contentType\": \"text/markdown\"
        }
    },
    \"priority\": 0,
    \"title\": \"Jellyfin UserDataSaved\",
    \"message\": \"message\"
}"

No Jellyfin.Plugin.Webhook... messages around authentication events despite having ticked all authentication, plugin and user notification types.

any sugestions on how I might debug/fix it?

kel-mo commented 10 months ago

Ditto. In addition, ticking Send All Properties (ignores template) prevents all webhook activity.

pm3003 commented 9 months ago

(sorry for the little hijacking) @d03j could you maybe post a screenshot your plugin config? I can't the plugin working with gotify no matter what I try. I don't see anything useful in my logs.

d03j commented 9 months ago

@pm3003 : sorry, as I couldn't fix it, I gave up on it. Tried to make it work from memory now but couldn't either. If you get it to work, I'd love to hear about it.