microscaling / microbadger

What's inside your Docker containers?
Other
159 stars 17 forks source link

Webhook Status 400 #61

Open tpfleck opened 5 years ago

tpfleck commented 5 years ago

After creating a Discord webhook, I get a status 400:

Timestamp Status Message Response
04 Jun 2019 12:45:39 400 {"text":"Hi, it's MicroBadger, sending you a test notification for linuxserver/plex https://microbadger.com/images/linuxserver/plex","new_tags":[],"image_name":"linuxserver/plex","changed_tags":[],"deleted_tags":[]} {"code": 50006, "message": "Cannot send an empty message"}

Any particular reason?

rossf7 commented 5 years ago

Hey @tpfleck, sorry about the delayed reply.

It looks like the Discord webhook is expecting a content or embeds field in the JSON which we are not passing.

https://birdie0.github.io/discord-webhooks-guide/discord_webhook.html

microbadger is now a side project for us. So it's unlikely we'll be able to change the message format anytime soon. Maybe you can check with Discord if they know of any workarounds?