Help me with my error workflow. This is from the level 2 course

Hello, I just concluded the level 2 of the n8n course but am having a persistent challenge. The error workflow is passing the data successfully to the discord server yet i keep getting this message “Your message was invalid, Please make sure you are sending the exact text requested.” Can anyone help with this?

“Your message was invalid, Please make sure you are sending the exact text requested.”

welcome @Efe_Odjada1

check out this doc, it will help you for level 2 Dealing with errors in workflows | n8n Docs

Thanks Tammy. Actually it’s not an error in the workflow. It’s related to the last section of the Level 2 course. I had done the exam but I realized that I keep getting an error that says it’s not an error, but a message that says your message was invalid. Please make sure you are sending the exact text requested.

However the output is being outputted to the Discord server so it’s not an anything problem but I think it has to do with the Discord server which acts like an HTTP request node. That’s actually the challenge I’m having.

ah perfect, I get it now @Efe_Odjada1
could you please send the screenshot?

@Efe_Odjada1 Let’s take this step by step…

1- please share your course ID
2- to complete the course you need to pass both the test and the workflow
3- share your JSON (copy and paste your flow here please)

I need to understand visually what’s actually happening.

Another point, do these fields exist in the previous schema?

That “message was invalid, please make sure you are sending the exact text requested” error is not coming from n8n, it is coming from Discord rejecting the payload shape. Your error workflow is firing and reaching Discord, which is the hard part done, so this is just the message format.

Two usual causes. If you are using the Discord node in webhook mode, the content field has a hard limit (2000 characters), and an error workflow that dumps the full error object plus stack trace blows past it, so Discord rejects the whole thing. Trim what you send: just the workflow name, the failed node, and the error message, not the entire execution JSON. Second, if you built the request manually with an HTTP Request node, Discord needs the body as JSON with a content property ({ “content”: “your text” }), and a mismatch there throws exactly this. Check whether you are sending raw text where it expects that JSON shape.

Send the part of your error workflow that builds the Discord message and it is usually obvious which of the two it is.

Thanks dima,

I have tried all i understand i still cant get the course validator to pass the data. see my discord node settings.

Yes they do.

Thanks Akin, Will do that but if i get it right the previous node in this example is the Error Trigger node right?

@Efe_Odjada1, did you consider the answer I gave?

Yes i did. Tamy. See Below details:
Course ID: 294dc8b5a37f8f05e27abed4af0a3d02

{
“name”: “Error Workflow class”,
“nodes”: [
{
“parameters”: {},
“type”: “n8n-nodes-base.errorTrigger”,
“typeVersion”: 1,
“position”: [
-400,
-272
],
“id”: “bb092f03-cf4d-4ebc-b16a-f41de0ab5f38”,
“name”: “Error Trigger”
},
{
“parameters”: {
“authentication”: “webhook”,
“content”: “=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: 294dc8b5a37f8f05e27abed4af0a3d02\n”,
“options”: {}
},
“type”: “n8n-nodes-base.discord”,
“typeVersion”: 2,
“position”: [
-176,
-272
],
“id”: “6ab7a173-39fe-40b7-ac61-e1efb11cf0a9”,
“name”: “Discord1”,
“webhookId”: “10314504-197e-4372-8b6f-4a4bf0e27e59”,
“credentials”: {
“discordWebhookApi”: {
“id”: “Lbq7pZ6uvqoHkyOs”,
“name”: “n8n Discord Channel”
}
}
}
],
“pinData”: {},
“connections”: {
“Error Trigger”: {
“main”: [
[
{
“node”: “Discord1”,
“type”: “main”,
“index”: 0
}
]
]
},
“Discord1”: {
“main”: [

]
}
},
“active”: true,
“settings”: {
“executionOrder”: “v1”,
“binaryMode”: “separate”
},
“versionId”: “d1721dc5-8db0-48f5-9c7f-c5ec256697d6”,
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “e9c31beabcdb75730bd28ced0cf214a1bc9610c6dd95d58689f0b7cada3d4505”
},
“id”: “lc6Bw3bq64ROgpw1”,
“tags”:
}

Did you check for any whitespace, I don’t know if its supposed to be there but I see an ‘\n’ in the Discord message, even a whitespace here and there can give that error.

Sure i did. i tried that and reverted back to text without whitespace

@Efe_Odjada1

you need to send the message to discord.
please check the course documentation and follow the step-by-step instructions to complete the course.
access the n8n discord for your user to be recognized, then run the workflow.
you’ll need to have checkmarks ok in all 3 fields in the image.
let us know afterwards if it worked.

I have tried all i can to fix this but am stock

hello, good morning @Efe_Odjada1
i recommend starting over to understand what’s happening, since it’s a learning flow the ideal is for you to try on your own.

follow this documentation
Notifying the team | n8n Docs