When attempting to send the message to Discord via the Discord node, I’m encountering an error stating : “Your message was invalid, Please make sure you are sending the exact text requested”. I have tested sending this message to my own personal Discord server and it’s successful, but cannot send it to the course-level-2 channel on the n8n Discord server.
The message am sending:
“I sent the file using email with the label ID {{ $json.id }}.My ID: 23d94a4a4b7e33bbd3f298004088b4c3”
To fix your Discord node for the course webhook, ensure your message matches the exact format:
No quotes or extra quotes.
Use one line only.
Correct spacing, especially after “ID” and before the ID, as well as after periods.
Example for Workflow 2:
I sent the file using email with the label ID {{ $json.id }}. My ID: 23d94a4a4b7e33bbd3f298004088b4c3
Example for Workflow 3:
The workflow {{ $json.workflow.name }} failed, with the error message: {{ $json.execution.error.message }}. Last node executed: {{ $json.execution.lastNodeExecuted }}. Check this workflow execution here: {{ $json.execution.url }} My Unique ID: 23d94a4a4b7e33bbd3f298004088b4c3
Ensure the message is plain text, exactly character-for-character, with proper spaces and no line breaks. Using the Level 2 webhook URL and matching the format will resolve validation issues. Let me know if this helps
weird, wf2 is ok? have you checked the discord channel that your message is there?
I haven’t seen any wf3 message in the channel, reason why there must be an issue with it.
when you check your course statuswith your id, what is the message you get?
it says: Your message was invalid, Please make sure you are sending the exact text requested. i have checked everything possible too. this has been going n for about a month
Problem:
Discord node works in your server but fails in course-level-2 with: Your message was invalid…
Likely because of template expressions, formatting, or permissions.
Solution:
Build the message in a Set/Function node first:
I sent the file using email with the label ID ${$json.id}. My ID: 23d94a4a4b7e33bbd3f298004088b4c3
Send the resolved string ({{ $json.discordMessage }}) via Discord node.
Check the bot has Send Messages permission in the channel.
Test with plain text first to confirm it works.
Make sure $json.id is defined at runtime.
Tip: Always test in a channel you control before posting in restricted channels.