Skip to content

fix: Cryptic error while trying to activate a workflow with Linear trigger#2101

Draft
everettbu wants to merge 1 commit intomasterfrom
claude/task-22328436214-1
Draft

fix: Cryptic error while trying to activate a workflow with Linear trigger#2101
everettbu wants to merge 1 commit intomasterfrom
claude/task-22328436214-1

Conversation

@everettbu
Copy link
Copy Markdown

Mirror of n8n-io/n8n#26159
Original author: app/github-actions


Summary

Fixes NODE-4466: Cryptic error while trying to activate a workflow with Linear trigger

When activating a workflow with a Linear trigger using credentials that lack admin permissions, the error message was confusing and didn't indicate that the issue was related to Linear's webhook creation requirements. Users were misinterpreting it as an n8n access control problem.

Changes

  • Modified GenericFunctions.ts to prepend "Linear API error:" to error messages from the Linear API
  • Added logic to preserve and pass through Linear's userPresentableMessage field in error descriptions
  • Added check to prevent re-wrapping already formatted NodeApiError instances
  • Created regression test to ensure error messages clearly identify Linear as the source

Test Plan

  • Regression test passes (LinearTrigger.node.test.ts)
  • Existing tests pass (GenericFunctions.test.ts)
  • Typecheck passes
  • Lint passes

Related Issues


🤖 Generated by Flaky (automated bug reproduction + fix)

…igger (NODE-4466)

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant