⚠️ Discord Trigger – “Invalid URL” when activating workflow (works in Test, fails on Activate)

Title:
:warning: Discord Trigger – “Invalid URL” when activating workflow (works in Test, fails on Activate)


Describe the problem/error/question
I’m having issues with a workflow using the Discord Trigger node.
The workflow works fine when I use Test Workflow, but when I try to activate it, I get the following error:

Failed to deactivate trigger of workflow ID "mvrBgSbsb5TaOXza": "Invalid URL"

This blocks the entire workflow because n8n cannot register the webhook properly with Discord.


What is the error message (if any)?

Failed to deactivate trigger of workflow ID "mvrBgSbsb5TaOXza": "Invalid URL"


Please share your workflow
(attached my JIRA.json workflow, relevant part is the Discord Trigger node)


Share the output returned by the last node
When running in test mode, the Jira issue is created successfully and Discord notifications are sent.
The problem only occurs when activating the workflow.


Information on your n8n setup

  • n8n version: 1.107.3 (Self-hosted)

  • Database: default (SQLite)

  • Executions mode: own (default)

  • Running via: Easypanel (Docker-managed container)

  • Hosting provider: DigitalOcean VPS

  • Operating system: Ubuntu 22.04 LTS


Additional notes
From what I’ve investigated, this happens because the WEBHOOK_URL environment variable is not configured, so n8n cannot generate a valid public URL when trying to register the Discord webhook.

It would be great if n8n could throw a clearer error message (e.g. “Missing WEBHOOK_URL config”) instead of just "Invalid URL", since this makes debugging difficult.

There is some issue going one with Discord node or the way discord handles n8n payload.

I am facing issues since yesterday too.

1 Like

It seems , if you modify the message a little bit then it goes through.

could be a restriction to avoid spam

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.