Skip to content

Adding Discord webhook overrides Username in POST #239

@r3d007

Description

@r3d007

Hi!

When enabling a Discord webhook for NotificationType 'AuthenticationFailure', you get an incorrect Username from the server.
When User: zzz uses an incorrect password, the Username from the Discord Webhook ("Webhook Username") shows up in the POST from the server.

[23:16:47] [WRN] [17] Jellyfin.Plugin.Webhook.Destinations.Generic.GenericClient: Notification failed with POST request to https://api.telegram.org/XXX/sendMessage: {"ServerId":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","ServerName":"vetinari","ServerVersion":"10.9.1","ServerUrl":"https://my.server.com","NotificationType":"AuthenticationFailure","App":"Jellyfin Web","Username":"Jellyfin Bot","UserId":"00000000000000000000000000000000","AppVersion":"10.9.1","DeviceId":".....","DeviceName":"Chrome","MentionType":"","EmbedColor":697804,"AvatarUrl":"xxx","BotUsername":"Jellyfin `Bot","chat_id":"XXX"}

image

Is the NotificationType 'AuthenticationFailure' deactivated in the Discord Webhook, the POST from the server looks like this. (What is correct, username is 'zzz')

[23:17:18] [WRN] [44] Jellyfin.Plugin.Webhook.Destinations.Generic.GenericClient: Notification failed with POST request to https://api.telegram.org/XXX/sendMessage: {"ServerId":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","ServerName":"vetinari","ServerVersion":"10.9.1","ServerUrl":"https://my.server.com","NotificationType":"AuthenticationFailure","App":"Jellyfin Web","Username":"zzz","UserId":"00000000000000000000000000000000","AppVersion":"10.9.1","DeviceId":".....","DeviceName":"Chrome","chat_id":"XXX"}

image

I use a Telegram Webhook for testing, thats why it is in the log.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions