[READ-ONLY] Mirror of https://github.com/andrioid/n8n-nodes-atproto. atproto node for n8n
0

Configure Feed

Select the types of activity you want to include in your feed.

fix(atproto): pass default to getNodeParameter('collection') for blob ops

The collection resourceLocator field is hidden via displayOptions for
the blob operations (uploadBlob / getBlob / listBlobs). Reading it
unconditionally at the top of the execute loop triggered `Could not get
parameter` on n8n 2.23+ where hidden parameters without stored values
throw instead of returning a default.

Pass an empty resourceLocator (`{ mode: 'list', value: '' }`) as the
fallback so the call always resolves; the value is ignored by the blob
switch cases.

Caught while testing List Blobs against a live PDS on the dev server.

+5 -1
+5 -1
nodes/Atproto/Atproto.node.ts
··· 687 687 for (let i = 0; i < items.length; i++) { 688 688 try { 689 689 const operation = this.getNodeParameter('operation', i) as string; 690 + // `collection` is hidden via displayOptions for blob operations 691 + // (uploadBlob / getBlob / listBlobs). Pass an empty resourceLocator 692 + // default so getNodeParameter doesn't throw "Could not get parameter" 693 + // — blob ops never use the value anyway. 690 694 const collection = extractCollectionNsid( 691 - this.getNodeParameter('collection', i), 695 + this.getNodeParameter('collection', i, { mode: 'list', value: '' }), 692 696 ); 693 697 694 698 let result: IDataObject;