Discord webhook not working

Issue Summary

  • No notification is sent in Discord despite setting up Discord webhook in Ghost integrations
  • when using a slack webhook, it seems to work

Steps to Reproduce

  1. Create webhook in Discord server
  2. Paste webhook URL in Ghost Integrations > Slack
  3. Send test notification

Setup information

Ghost Version
5.22.9

Node.js Version
v16.15.0

How did you install Ghost?
DigitalOcean Droplet, using instructions in app marketplace

Provide details of your host & operating system
Ubuntu 20.04. LTS

Database type
MySQL 8

Relevant log / error output

{"name":"Log","hostname":"...","pid":769280,"level":50,"err":{"id":"ab54b730-6041-11ed-b991-7998a8a29648","domain":"...","code":null,"name":"InternalServerError","statusCode":500,"level":"critical","message":"The server has encountered an error.","context":"\"The slack service was unable to send a ping request, your site will continue to function.\"","help":"\"If you get this error repeatedly, please seek help on https://ghost.org/docs/.\"","stack":"HTTPError: Response code 400 (Bad Request)\n    at /var/www/ghost/versions/5.22.9/core/server/services/slack.js:147:27\n    at EventEmitter.<anonymous> (/var/www/ghost/versions/5.22.9/node_modules/got/source/as-promise.js:74:19)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)","hideStack":false},"msg":"The server has encountered an error.","time":"2022-11-09T15:17:48.198Z","v":0}

At the end of your webhook URL, try adding /slack.

It’ll then look like this: https://discord.com/api/ .... /slack

2 Likes

Thank you, this worked like a charm :+1:

1 Like

This worked for me as well. tks