-
-
Notifications
You must be signed in to change notification settings - Fork 433
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
Cannot post to Discord some complex messages #1241
Comments
I notice you're trying to push the content as what happens if you do something like: Does it work then? |
It's not that it isn't working, it's just trying to interpret what you provide it as Markdown. I could change the default to text. A lot of people use Discord, so it may have repercussions. Apprise URLs are usually built once and never change thereafter. If you control the input and 'know' it is text, and yours controlling the Apprise call under the hood, then absolutely tell it you're feeding it text. Use option one above. |
Any update to this or can i close this off? |
Apologies for the delay, I didn't had the time to continue this project. Please allow some days as I should work on this |
So I ended up with a workaround, but it's not really a fix: if I think the problem is in Discord, not Apprise, because other services handle the same conent perfectly fine. You can close this if you want. if [ "$APPRISE" -eq 1 ]; then
for APPRISE_URL_U in "${APPRISE_URL[@]}"; do
if [[ "$APPRISE_URL_U" == *"discord://"* ]]; then
# For Discord, use the URL without format (markdown) parameter
"$APPRISE_BIN" -v -b "$INFO_MESSAGE" "$APPRISE_URL_U"
else
# For all other services, use markdown formatting
APPRISE_URL_FORMAT="${APPRISE_URL_U}?format=markdown"
"$APPRISE_BIN" -v -b "$INFO_MESSAGE" "$APPRISE_URL_FORMAT"
fi
done
fi |
📣 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: