Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 400 - Sending to Discord #86

Open
kmadaras opened this issue Oct 14, 2023 · 3 comments
Open

Error 400 - Sending to Discord #86

kmadaras opened this issue Oct 14, 2023 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@kmadaras
Copy link

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

My config looks like this:

configs:
"@":
urls:
- discord://116282579146/zn0S_c_pMFh1o5U68yT7Msef_8TgXPCXEwpZ3oEf_ZMFJ54b8Uc

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
Copy link
Author

Note, I redacted the server names and email adresses.

@YoRyan YoRyan self-assigned this Oct 15, 2023
@YoRyan YoRyan added the question Further information is requested label Oct 17, 2023
@YoRyan
Copy link
Owner

YoRyan commented Oct 17, 2023

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
Copy link

k5tmt commented Feb 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants