[BUG] credentialTest Method Not Used in Custom Node
Description
The credentialTest method defined in a custom n8n node is not being used when the node is installed inside ~/.n8n/custom. However, the method works correctly in the official Odoo node.
Steps to Reproduce
- Start from the n8n-node-starter template.
- Copy the Odoo node from the official n8n repo and modify it to create a custom node with its own credential type.
- Install the custom node inside
~/.n8n/custom. - Attempt to use the
credentialTestmethod.
Expected Behavior
The credentialTest method should be executed when testing credentials, just like in the official Odoo node.
Actual Behavior
The credentialTest method is not called when using the custom node installed in ~/.n8n/custom.
Additional Context
- The issue has been reported multiple times:
Attempted Solutions
- Added
"n8n-core"as adevDependency. - Updated the build script from:
to:tsc && gulp build:iconstsc && gulp build:icons && pnpm n8n-generate-metadata - This added
known,methods, andtypesfolders to thedistoutput, but thecredentialTestmethod still isn’t executed.
Environment
- n8n Version: 1.81.4
- Node.js Version: v22.14.0
- Operating System: WSL Ubuntu LTS
- Installation Method: Custom node linked from
~/.n8n/custom, n8n built and executed from source usingpnpm startwithpnpm devlaunched after apnpm buildin the custom node directory
Would appreciate any insights on why the method isn’t triggered in custom nodes!