n8n-io / n8n

Free and source-available fair-code licensed workflow automation tool. Easily automate tasks across different services.
https://n8n.io
Other
47.89k stars 7.33k forks source link

Too Generic Error Message "Validation Failed" #10074

Open sprankhub opened 3 months ago

sprankhub commented 3 months ago

Bug Description

I have a workflow, which includes some GitHub "On Pull Request Review" triggers, merged them and executes some actions afterwards. Since I added one more repository, I cannot enable the workflow any more. As soon as I enable it, it shows the generic error message "Validation Failed":

Workflow could not be activated:
Validation Failed

In the console, I can see that the request to activate the workflow results in a 400 Bad Request error. The payload is pretty simple, so I don't get the generic error message, though:

image

To Reproduce

  1. Create some workflow (I currently don't know what specific workflow configuration leads to this).
  2. Activate it.

Expected behavior

A more detailed error message is shown, so that I can fix the workflow. Currently, I have no idea what is wrong with the workflow. Actually, I think the workflow is completely valid.

Operating System

Cloud

n8n Version

1.50.1

Node.js Version

Cloud

Database

SQLite (default)

Execution mode

main (default)

Joffcom commented 3 months ago

Hey @sprankhub,

Can you share the workflow you are using?

sprankhub commented 3 months ago

Not here as it contains "sensitive" data, but I could send it to a support mail address if that helps...?

Joffcom commented 3 months ago

Hey @sprankhub,

Sure, You can send it to help@n8n.io and I can pick it up from there.

sprankhub commented 3 months ago

Cool, done (ticket number 766619)!

Joffcom commented 3 months ago

Replied to ticket.

Joffcom commented 3 months ago

Update for anyone following along, This is down to duplicating a webhook based trigger node. The ID and URL remains the same which causes issues, We have NODE-1525 created to look into fixing this in the future.

moda20 commented 3 months ago

@Joffcom i have this issue and the fix should be to just create the nodes manually, right ? because after duplicating, even my original nodes can't be activated anymore

sprankhub commented 3 months ago

I wouldn't call this a fix, but rather a workaround.

Having said that, creating the nodes manually works, yes.

Joffcom commented 3 months ago

@moda20 you got it, For now the best option is to add the node again rather than duplicate it.