N8n Custom Node Lint Errors Explained (and How to Fix Them)

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

Full guide: n8n Custom Node Lint Errors: What Each One Means and How to Fix It — NativeShip