N8n course level 2 - Discord issue

Thanks for all your help and advice!

Problem Issue

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”

Question

How do I resolve it or get level 2 certified?

1 Like

if that’s the exact message you are sending, remove the quotes ““

Hi Marcos, thanks for your help. Could I seek your advice on this please?

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

2 Likes

Hey @galileanz,

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

Yeah I couldn’t make it work this one either. But you don’t need this to get level 2 badge. Cheers!

I have done everything in the level 2 course but the workflow 3 and i still have not received my badge…

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

How do I check the course status? Didn’t know I could

you get this message in wf2 (email notification) or wf3 (error workflow) ?

Thanks so much everyone. I managed to resolve workflow 2. Workflow 3 am still figuring it out

@galileanz

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:

  1. Build the message in a Set/Function node first:
I sent the file using email with the label ID ${$json.id}. My ID: 23d94a4a4b7e33bbd3f298004088b4c3

  1. Send the resolved string ({{ $json.discordMessage }}) via Discord node.

  2. Check the bot has Send Messages permission in the channel.

  3. Test with plain text first to confirm it works.

  4. Make sure $json.id is defined at runtime.

Tip: Always test in a channel you control before posting in restricted channels.

1 Like

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