YoRyan / mailrise

An SMTP gateway for Apprise notifications.
https://mailrise.xyz
MIT License
872 stars 35 forks source link

Error 400 - Sending to Discord #86

Open kmadaras opened 1 year ago

kmadaras commented 1 year ago

I am running the latest release for docker, and it just stopped working for Discord.

My config looks like this:

configs: "@": urls:

This is the same config I've been using for quite some time with no issues, yet now all the emails are getting rejected. The logs say:

2023-10-14T19:05:15.430152683Z [2023-10-14 12:05:15] WARNING:mailrise.skeleton:Notification failed: Postmaster Copy: Undelivered Mail ➤ postmaster@ 2023-10-14T19:05:15.544137022Z [2023-10-14 12:05:15] WARNING:mailrise.skeleton:Notification failed: Undelivered Mail Returned to Sender ➤ webmin@ 2023-10-14T19:05:26.990883518Z [2023-10-14 12:05:26] WARNING:mailrise.skeleton:Notification failed: Undelivered Mail Returned to Sender ➤ root@ 2023-10-14T19:05:28.231093925Z [2023-10-14 12:05:28] WARNING:apprise:Failed to send to Discord notification: Bad Request - Unsupported Parameters., error=400. 2023-10-14T19:05:28.232503392Z [2023-10-14 12:05:28] WARNING:mailrise.skeleton:Notification failed: Cron root@pve2 test -x /usr/sbin/anacron || { cd / && run-parts --report /etc/cron.daily; } ➤ root@ 2023-10-14T19:10:27.620136150Z [2023-10-14 12:10:27] WARNING:apprise:Failed to send to Discord notification: Bad Request - Unsupported Parameters., error=400. 2023-10-14T19:10:27.622009431Z [2023-10-14 12:10:27] WARNING:mailrise.skeleton:Notification failed: vzdump backup status (pve2.cotb.local.lan) : backup failed ➤ 2023-10-14T19:10:33.244988612Z [2023-10-14 12:10:33] WARNING:mailrise.skeleton:Notification failed: Undelivered Mail Returned to Sender ➤

I've tried a new webhook, just to be sure there's no problem there, same issue.

Any ideas? Perhaps we need an update to the Discord library?

Thanks!

kmadaras commented 1 year ago

Note, I redacted the server names and email adresses.

YoRyan commented 1 year ago

Could you get another log with the latest image? I've added some additional logging that will tell us more about the contents of your messages.

From what I've seen, if there's a problem with Discord, it tends to be that the emails produce messages that are too large for the service. Did you recently stop using Nitro?

k5tmt commented 8 months ago

I am facing the same issue. Is there a way to split or truncate messages that exceed Discord's 2000 character message limit?

AlBundy33 commented 3 months ago

afaik "@" needs to be: "*@*" splitting is supported with newer apprise-version and url-parameter ?overflow=split

Estradamis commented 1 month ago

Joining here as I also get issues with proxmox to discord