Troubleshooting
Start with the exact message in the rule or the module log, then apply the matching fix.
Error messages
| Message | Cause | Fix |
|---|---|---|
| no webhook URL is configured | Both the rule override and the provider webhook are blank. | Add the webhook in the provider or the rule. |
| the webhook URL must be a valid HTTPS URL | An http:// URL, a malformed URL or a placeholder. | Copy the full URL from Discord. |
| is not a Discord webhook host | A custom domain without Allow Custom Host. | Use the Discord URL, or enable the flag for a trusted proxy. |
| a webhook URL must not contain a query string | Extra parameters were appended. | Copy the URL again from Discord. |
| the URL does not look like a webhook URL | A channel link or an OAuth URL. | Use Server Settings → Integrations → Webhooks → Copy Webhook URL. |
| the webhook no longer exists (Discord code 10015) | The webhook was deleted or the channel was removed. | Create a new webhook and update the setting. |
| the webhook token is not valid (Discord code 50027) | The token was reset or copied incompletely. | Copy the URL again. |
| Discord rejected the message payload (HTTP 400) | An invalid field, an empty embed or a bad value. | Check the log; disable Attributes Inline or use Message only. |
| the payload is too large | The message and attributes exceed the embed limit. | Shorten the event text or tick Hide Attributes. |
| Discord is rate limiting this webhook (HTTP 429) | More than about 30 requests per minute to one webhook. | Reduce rule volume or split events across channels. |
| could not resolve the webhook host (cURL 6) | DNS failure on the WHMCS server. | Check DNS and the server resolver. |
| could not connect to the webhook host (cURL 7) | Outbound HTTPS is blocked. | Allow discord.com:443 in the firewall. |
| the request timed out (cURL 28) | Slow network or a very low timeout. | Increase Request Timeout up to 30. |
| the TLS certificate could not be verified | The CA bundle or system clock is wrong. | Update the CA bundle and check the time. |
| Discord returned HTTP 5xx | A temporary Discord failure. | Try again later; no configuration change is needed. |
Reading the module log
- Go to Configuration → System Logs → Module Log.
- Filter by module
Discord. - Open the newest row and check the request URL. It ends in
/[redacted]; the token is never shown. - Check the status, Discord error code and the short response excerpt.
Module logging can be disabled globally. If no rows appear at all, enable logging, trigger the event again and check whether a request is made. No row means WHMCS did not call the provider: the rule is inactive, the event is not covered or a condition did not match.
Nothing arrives
- Confirm the provider card is Active and the webhook saved with a successful test.
- Confirm the rule is Active and covers the event that fired.
- Check conditions; a mismatch prevents the provider call.
- Check the channel still exists and the webhook has View Channel and Send Messages.
- If only embeds are missing, grant Embed Links or switch the rule to Message only.
- For reminder, suspension or renewal events, confirm WHMCS cron is running.
Format problems
- Duplicate titles — the default format shows a linked title and an embed title. Choose Embed only for a single title.
- Fields side by side — tick or untick Attributes Inline on the rule.
- Missing attributes — check Hide Attributes; an empty value is intentionally dropped.
- No link — check Hide View Link and whether WHMCS supplied a URL for the event.
- Wrong colour — use a six-digit hex value; an invalid value falls back to blurple.
Do not paste a webhook URL into a support ticket. Send the redacted log row and the error message instead. If the token was exposed, rotate the webhook first.