Open hoangdangtrungvn opened 11 months ago
The json
argument means that it should directly send the template output to the API (which then needs to be correct JSON). What is it you want to accomplish?
I want to display like last message in the image.
Try adding `` around the messages in the watchtower template. You can probably get it to work using the
json` param and a carefully crafted template according to the discord docs, but it seems like a lot of work.
I config Discord service with url:
WATCHTOWER_NOTIFICATION_URL: "discord://${DISCORD_WEBHOOK_TOKEN}@${DISCORD_WEBHOOK_ID}?json=true"
Then I got this error:
level=error msg="Failed to send shoutrrr notification" error="failed to send discord notification: response status code 400 Bad Request" index=0 notify=no service=discord
But if I remove ?json=true from the URL, the notification is successfully sent to the Discord channel.
I tried replacing
json=true
withsplitlines=false
, and it worked fine.It seems that some query parameters are not functioning correctly.