-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Do not show errors not processed by n8n (no-changelog) #9598
feat: Do not show errors not processed by n8n (no-changelog) #9598
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of completely overwriting the original error message, we should wrap the error (passing the original error as a cause
in the outer error), and put the original error either behind a collapsed section on the frontend, or not render it at all. But, we should at all cost avoid modifying error.message
or any other error properties.
@@ -15,6 +17,9 @@ export class NodeOperationError extends NodeError { | |||
) { | |||
if (typeof error === 'string') { | |||
error = new Error(error); | |||
} else if (!(error instanceof ApplicationError)) { | |||
// this error was no processed by n8n, obfuscate error message | |||
error.message = OBFUSCATED_ERROR_MESSAGE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should stop overwriting error properties like this, as that remove context on errors that get reported to Sentry.
…tidy-up-internal-node-errors
…tidy-up-internal-node-errors
…tidy-up-internal-node-errors
…nternal-node-errors
3 flaky tests on run #5593 ↗︎
Details:
5-ndv.cy.ts • 1 flaky test
20-workflow-executions.cy.ts • 1 flaky test
24-ndv-paired-item.cy.ts • 1 flaky test
Review all test suite changes for PR #9598 ↗︎ |
✅ All Cypress E2E specs passed |
…9598) Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
…9598) Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
Got released with |
1 similar comment
Got released with |
Summary
When there is an unhanded exception in n8n's execution code, we currently display the inner workings of n8n too prominently
Related tickets and issues
https://linear.app/n8n/issue/NODE-1338/tidy-up-internal-node-errors