File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 77 INodeProperties ,
88 INodeType ,
99 INodeTypeDescription ,
10+ NodeApiError ,
1011} from 'n8n-workflow' ;
1112
1213import { airbnbFields , airbnbOperations } from './descriptions/AirbnbDescription' ;
@@ -276,6 +277,9 @@ export class HasData implements INodeType {
276277 qs,
277278 body : method === 'POST' ? body : undefined ,
278279 json : true ,
280+ headers : {
281+ 'x-request-source' : 'n8n' ,
282+ } ,
279283 } ,
280284 ) ;
281285
@@ -290,7 +294,7 @@ export class HasData implements INodeType {
290294 returnData . push ( { json : { error : error . message } } ) ;
291295 continue ;
292296 }
293- throw error ;
297+ throw new NodeApiError ( this . getNode ( ) , error as any ) ;
294298 }
295299 }
296300
Original file line number Diff line number Diff line change 44 "access" : " public" ,
55 "registry" : " https://registry.npmjs.org/"
66 },
7- "version" : " 1.0.0 " ,
7+ "version" : " 1.0.1 " ,
88 "description" : " n8n node for HasData APIs" ,
99 "license" : " MIT" ,
1010 "homepage" : " https://hasdata.com" ,
5555 "peerDependencies" : {
5656 "n8n-workflow" : " *"
5757 }
58- }
58+ }
You can’t perform that action at this time.
0 commit comments