Giter Club home page Giter Club logo

Comments (3)

YoRyan avatar YoRyan commented on May 30, 2024

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.

kaitallaoua avatar kaitallaoua commented on May 30, 2024

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.

YoRyan avatar YoRyan commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.