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

fix(core): Avoid wrapping ExecutionBaseError to prevent misreporting to Sentry (no-changelog) #8262

Merged
merged 2 commits into from
Jan 9, 2024

Conversation

ivov
Copy link
Contributor

@ivov ivov commented Jan 8, 2024

requestWithAuthentication has calls that may throw NodeOperationError but we are wrapping those errors in NodeApiError, which is causing those errors to be reported to Sentry even when they are level warning.

Ref: https://n8nio.sentry.io/issues/4833348705

…g to Sentry (no-changelog)

`requestWithAuthentication` has calls that may throw `NodeOperationError` but we are wrapping those errors in `NodeApiError`, which is causing those errors to be reported to Sentry even when they are level `warning`.

Ref: https://n8nio.sentry.io/issues/4833348705
@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Jan 8, 2024
netroy
netroy previously approved these changes Jan 8, 2024
@@ -1805,6 +1805,8 @@ export async function requestWithAuthentication(
}
throw error;
} catch (error) {
if (error instanceof NodeOperationError) throw error;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we check for ExecutionBaseError instead ?

@ivov ivov changed the title fix(core): Avoid wrapping NodeOperationError to prevent misreporting to Sentry (no-changelog) fix(core): Avoid wrapping ExecutionBaseError to prevent misreporting to Sentry (no-changelog) Jan 9, 2024
Copy link

cypress bot commented Jan 9, 2024

3 flaky tests on run #3657 ↗︎

0 330 5 0 Flakiness 3

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 ivov 🗃️ e2e/*
Project: n8n Commit: c29a4c7f0f
Status: Passed Duration: 07:02 💡
Started: Jan 9, 2024 9:02 AM Ended: Jan 9, 2024 9:09 AM
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 Screenshots Video
Flakiness  29-templates.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Templates > should save template id with the workflow Screenshots Video
Flakiness  27-two-factor-authentication.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Two-factor authentication > Should be able to login with MFA token Screenshots Video

Review all test suite changes for PR #8262 ↗︎

Copy link
Contributor

github-actions bot commented Jan 9, 2024

✅ All Cypress E2E specs passed

@ivov ivov merged commit 055cc78 into master Jan 9, 2024
20 checks passed
@ivov ivov deleted the sentry-4833348705 branch January 9, 2024 09:11
MiloradFilipovic added a commit that referenced this pull request Jan 10, 2024
* master:
  ci: Validate docs urls for langchain nodes as well (no-changelog) (#8271)
  fix: Small ui fixes to workflow cred setup modal (no-changelog) (#8280)
  fix: Fix issue with API key being required for the Qdrant Node (#8237)
  feat(Coda Node): Add User-Agent for requests to Coda (no-changelog) (#7771)
  fix(FTP Node): FTP connection failed due to missing password credential in node (#8131)
  ci: Fix lint setup in `chat` package (no-changelog) (#8275)
  ci: Fix codecov reporting, and include all packages (no-changelog) (#8276)
  fix(core): Fix test webhook deregistration (#8247)
  docs: Update links in deprecated langchain nodes to avoid linting errors (no-changelog) (#8273)
  fix: Fix user reinvites on FE and BE (#8261)
  docs: Update primaryDocumentation urls for nodes updated in #7651 (no-changelog) (#8270)
  feat: Add Chat Trigger node (#7409)
  fix(Github Trigger Node): Enforce SSL validation by default (#8265)
  fix(editor): Tweaking button sizes in execution preview (#8206)
  fix(core): Avoid wrapping `ExecutionBaseError` to prevent misreporting to Sentry (no-changelog) (#8262)
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants