Comments (3)
It looks like something to do with Apprise, because the Bad Request log message is coming from that library. All Mailrise really does is forward the title, message text, and YAML configuration to Apprise.
A sample email and the configuration section for Discord might be helpful here.
from mailrise.
I have the same issue, emails coming from proxmox backups to discord are failing. I already sent a test email of just text so it does work.
[2023-07-02 15:54:33] WARNING:apprise:Failed to send to Discord notification: Bad Request - Unsupported Parameters., error=400.
[2023-07-02 15:54:33] WARNING:mailrise.skeleton:Notification failed: vzdump backup status (pve-general-rig.localdomain) : backup successful ➤ [email protected]
I tried text and html and markdown
configs:
pve_general_rig_discord:
mailrise:
body_format: html
urls:
- https://discord.com/api/webhooks/........./............
version: "2.1"
services:
mailrise:
image: yoryan/mailrise:latest
container_name: mailrise
restart: unless-stopped
ports:
- 8025:8025
volumes:
- ./mailrise.conf:/etc/mailrise.conf:ro
I don't have a handy way to get the email, but it should look like the following:
https://www.servethehome.com/wp-content/uploads/2022/12/Proxmox-VE-Backup-Successful-e-mail.jpg
or the other kinds like shown in the blog (the dark mode photos): https://www.servethehome.com/proxmox-ve-e-mail-notifications-are-important/
from mailrise.
These emails contain entire logs. So I think what's happening here is that Discord is rejecting them for exceeding the maximum length. It's like copy-pasting a log file into the Discord app; you're going to get rejected.
You can cut split your messages into multiple notifications using Apprise's overflow options, but beware that they can be defeated by a long subject line, which isn't currently included in the split calculation (caronc/apprise#845).
For future reference, you should be able to retrieve the message by turning on debug logging (-vvv
):
version: "2.1"
services:
mailrise:
image: yoryan/mailrise:latest
container_name: mailrise
restart: unless-stopped
ports:
- 8025:8025
volumes:
- ./mailrise.conf:/etc/mailrise.conf:ro
command: -vvv /etc/mailrise.conf
from mailrise.
Related Issues (20)
- Allow use of variables in urls HOT 2
- Can not get docker to start HOT 17
- ghcr.io image cannot be pulled by version HOT 1
- Unable to get container working HOT 10
- Custom Discord Avatar with Alert
- Individual recipients based on emails usernames? HOT 1
- Container crashes / won't start: "No module named 'mailrise'"
- Feature request: Filtering the text in the body HOT 5
- Mailrise service fails to start HOT 1
- How to use Traefik with TLS + Auth HOT 2
- Specify log level via config
- Notification failed telegram
- Apprise Update to Version 1.4.5 HOT 1
- docker-compose.yml - missing simple example to easy deploy HOT 5
- Dockerfile no longer builds - AttributeError: cython_sources HOT 1
- Error 400 - Sending to Discord HOT 3
- questions: is there plan to provide a HOT 2
- Cannot start mailrise docker container HOT 2
- App issues
- Can't Parse URL with hyphen in domain name.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailrise.