[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
credentialTest
method.
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:icons
tsc && gulp build:icons && pnpm n8n-generate-metadata
- This added
known
,methods
, andtypes
folders to thedist
output, but thecredentialTest
method 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 start
withpnpm dev
launched after apnpm build
in the custom node directory
Would appreciate any insights on why the method isn’t triggered in custom nodes!