Discord Webhook

I’m trying to set up notifications to a Discord Webhook, unfortunately it’s failing, what am I missing? (btw e-mail notification work fine, but I prefer Discord)

Error sending notification: unable to send notification: unable to send notification message: error sending webhook notification: 400 Bad Request

Had the same issue, came to toss my solution over…

The 400 error is because Kopia’s webhook sender just POSTs the raw notification body with Content-Type: text/html or text/plain(depending on --format) — it doesn’t wrap anything in JSON. Discord’s webhook endpoint requires a JSON payload like {"content": "..."}, so it rejects Kopia’s request.

I created a python relay script, which you can run separately: GitHub - jnnsrctr/webhook-relay · GitHub

Thank you, your script seems a good workaround. But it shouldn’t be that hard for Kopia to create an option for Discord too.