(PS-378) Seclore custom n8n node #1
No reviewers
Labels
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: public/n8n-nodes-seclore#1
Loading…
Reference in New Issue
No description provided.
Delete Branch "ticket/PS-378"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -0,0 +11,4 @@displayName: 'Seclore',name: 'secloreProtect',icon: 'file:../../icons/seclore.svg',usableAsTool: true, // TODO: make it false/ don't allow it to be used as a toolResolve this TODO
@ -0,0 +459,4 @@method: 'POST',url: `${this.baseUrl}/seclore/drm/filestorage/1.0/upload`,headers,body: formData,instead of
bodyuseformdatawhich is recommended by n8n for file uploadIHttpRequestOptionsdoes not have any field namedformdatathe
bodydoes accept formdata as inputhttps://github.com/n8n-io/n8n/blob/master/packages/workflow/src/interfaces.ts#L450
@ -0,0 +185,4 @@}// Wait before retry (exponential backoff)await new Promise((resolve) => {Instead of this code block, use:
const delayMs = Math.pow(2, attempt) * 1000;
await new Promise((resolve) => setTimeout(resolve, delayMs));
lint fails if setTmeout is used
@ -0,0 +189,4 @@Logger.debug(who + 'Getting node parameters', { itemIndex: i });const hotfolderId = this.getNodeParameter('hotfolderId', i) as string;const binaryPropertyName = this.getNodeParameter('binaryPropertyName', i) as string;const correlationId = crypto.randomUUID().toString();toString() fxn is redundant here.
@ -0,0 +186,4 @@// Get parameters for this itemLogger.debug(who + 'Getting node parameters', { itemIndex: i });const binaryPropertyName = this.getNodeParameter('binaryPropertyName', i) as string;const correlationId = crypto.randomUUID().toString();toString() fxn is redundant here.
[WIP] (PS-378) Seclore custom n8n nodeto (PS-378) Seclore custom n8n node