You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🐞 Describe the bug
I'm unable to post some messages to Discord. It seems that it gets crazy when complex text/characters are posted, and Apprise throws Bad Request - Unsupported Parameters., error=400.
I own a shell script that manages SnapRAID operations and I just started integrating it with Apprise.
This issue is present only with a specific output that I'm trying to post to Discord. I'm sure it's something to do with escaping, but I don't know much about this topic.
However, the same exact output can be posted to Telegram with no issues.
I've attacched a very dumb test script to replicate the issue but you need SnapRAID installed.
#!/bin/bashfunctionmain(){functionshow_snapraid_info() {
local command_output=$($1)echo"$2"echo"\`\`\`"echo"$command_output"echo"\`\`\`"
INFO_MESSAGE="$2 - \`\`\`$command_output\`\`\`"
}
APPRISE_URL="discord://<webhook url>"# Run info command
show_snapraid_info "snapraid status""### SnapRAID Status"# Send the message via Apprise to Discord
apprise -vvv -b "Test" -b "$INFO_MESSAGE""$APPRISE_URL"?format=markdown
}
main
I've attached the command ouput because GitHub isn't able to format it properly apprise script output.txt
💡 Screenshots and Logs
The same output successfully posted to Telegram by only chaning the URL
💻 Your System Details:
OS: Debian 11
Python Version: Python 3.11.2
Apprise 1.9.0 installed via pipx
🔮 Additional context
Simpler messages can be posted to Discord, no problem.
The text was updated successfully, but these errors were encountered:
I notice you're trying to push the content as markdown (in the Apprise URL you used) the table as you share it is very broken Markdown, so it makes sense that maybe this is why the Discord server is rejecting your message.
what happens if you do something like: ?format=text instead?
📣 Notification Service(s) Impacted
Discord
🐞 Describe the bug
I'm unable to post
some
messages to Discord. It seems that it gets crazy when complex text/characters are posted, and Apprise throwsBad Request - Unsupported Parameters., error=400.
I own a shell script that manages SnapRAID operations and I just started integrating it with Apprise.
This issue is present only with a specific output that I'm trying to post to Discord. I'm sure it's something to do with escaping, but I don't know much about this topic.
However, the same exact output can be posted to Telegram with no issues.
I've attacched a very dumb test script to replicate the issue but you need SnapRAID installed.
I've attached the command ouput because GitHub isn't able to format it properly
apprise script output.txt
💡 Screenshots and Logs
The same output successfully posted to Telegram by only chaning the URL
💻 Your System Details:
🔮 Additional context
Simpler messages can be posted to Discord, no problem.
The text was updated successfully, but these errors were encountered: