Skip to content
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

Merged
merged 10 commits into from
Jun 20, 2024

Conversation

michael-radency
Copy link
Contributor

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

Copy link
Member

@netroy netroy left a 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;
Copy link
Member

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.

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team node/improvement New feature or request labels Jun 3, 2024
@michael-radency michael-radency requested a review from netroy June 4, 2024 07:07
Copy link

cypress bot commented Jun 19, 2024

3 flaky tests on run #5593 ↗︎

0 395 0 0 Flakiness 3

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 michael-radency 🗃️ e2e/*
Project: n8n Commit: ce2a88abed
Status: Passed Duration: 04:36 💡
Started: Jun 19, 2024 6:14 PM Ended: Jun 19, 2024 6:18 PM
Flakiness  5-ndv.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > Stop listening for trigger event from NDV Screenshots Video
Flakiness  20-workflow-executions.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Current Workflow Executions > should auto load more items if there is space and auto scroll Test Replay Screenshots Video
Flakiness  24-ndv-paired-item.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > resolves expression with default item when input node is not parent, while still pairing items Test Replay Screenshots Video

Review all test suite changes for PR #9598 ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@michael-radency michael-radency merged commit b7aea95 into master Jun 20, 2024
26 checks passed
@michael-radency michael-radency deleted the node-1338-tidy-up-internal-node-errors branch June 20, 2024 05:45
adrian-martinez-onestic pushed a commit to onesdata/n8n-fork that referenced this pull request Jun 20, 2024
…9598)

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
adrian-martinez-onestic pushed a commit to onesdata/n8n-fork that referenced this pull request Jun 20, 2024
…9598)

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
@janober
Copy link
Member

janober commented Jun 20, 2024

Got released with n8n@1.47.0

1 similar comment
@janober
Copy link
Member

janober commented Jun 20, 2024

Got released with n8n@1.47.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team node/improvement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants