Hi Again,
So I’ve done countless tests since my last post, but I really can’t figure this out. I don’t know if I’m missing something obvious, or if it’s not as simple as it looks; it works without issues with the http request node, but I can’t get it to work with my declarative node.
Here is my full credentials file:
import {
IAuthenticateGeneric,
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class TestWSAPI implements ICredentialType {
name = 'TestWSAPI';
displayName = 'TestWSAPI';
genericAuth = true;
properties: INodeProperties[] = [
{
displayName: 'Digest Auth - User',
name: 'user',
type: 'string',
default: '',
},
{
displayName: 'Digest Auth - Password',
name: 'password',
type: 'string',
typeOptions: {
password: true,
},
default: '',
},
];
authenticate = {
type: 'generic',
properties: {
auth: {
username: '={{$credentials.user}}',
password: '={{$credentials.password}}',
sendImmediately: false,
},
},
} as IAuthenticateGeneric;
}
This builds fine, but throws an error:
NodeApiError: UNKNOWN ERROR - check the detailed error for more information
at RoutingNode.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/RoutingNode.js:112:23)
at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:694:23)
at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:590:53
I’ve tried to analyze and modify a bit Routing.ts but it’s a rabbit hole I’d rather avoid (and it wasn’t going great for me). I’ve also tried to look for other nodes that implement sendImmediately but couldn’t find any (at least declarative).
Anyways I’m open to ideas !
Best,