n8n custom node errors, explained one message at a time: what n8n-node lint is really asking for, and the fix. Restricted globals, no dependencies, httpRequestWithAuthentication, credential tests, continueOnFail and NodeApiError, and the âAuthorization failedâ message your users see.
Launch your n8n integration - NativeShip.io
In this video:
- Where the errors come from: n8n-node lint and n8nâs community-node rules
- âUse of restricted global âsetTimeoutâ is not allowedâ, and n8nâs sleep helper
- âImport of âaxiosâ is not allowedâ: why community nodes have no dependencies
- Why lint wants httpRequestWithAuthentication instead of getCredentials and httpRequest
- âCredential class must have a test propertyâ, and credential names that donât match
- execute(): continueOnFail, NodeApiError, and itemIndex, in five lines
- âAuthorization failed - please check your credentialsâ: what your users see, and how to make it useful
Chapters
0:00 A wall of red
0:35 Where these come from
1:14 âUse of restricted global âsetTimeoutââ
1:52 âImport of âaxiosâ is not allowedâ
2:22 âUse httpRequestWithAuthentication()â
2:52 âCredential ⌠must have a test propertyâ
3:26 The execute() rules
4:32 âAuthorization failed - please check your credentialsâ
5:24 Recap
Written version, with every fix: [GUIDE URL]
Build a node from an empty folder, a 10-part series: https://www.youtube.com/playlist?list=PLYkThRYZ5f5g
Part 4, credentials: https://youtu.be/F7YKw_WxBfM
Part 5, execute() and errors: https://youtu.be/bly8ZShWMh0
Part 8, verification: https://youtu.be/yi_v34wYjkA
From the n8n docs
Creating nodes: Overview | Connect | n8n Docs
Paired items: Item linking | Connect | n8n Docs