diff --git a/packages/nodes-base/nodes/HttpRequest/V1/HttpRequestV1.node.ts b/packages/nodes-base/nodes/HttpRequest/V1/HttpRequestV1.node.ts index 46b3fe61c9..6bf4e0a98f 100644 --- a/packages/nodes-base/nodes/HttpRequest/V1/HttpRequestV1.node.ts +++ b/packages/nodes-base/nodes/HttpRequest/V1/HttpRequestV1.node.ts @@ -994,7 +994,7 @@ export class HttpRequestV1 implements INodeType { } response = response.value; - delete response.request; + if (response?.request?.constructor.name === 'ClientRequest') delete response.request; const options = this.getNodeParameter('options', itemIndex, {}); diff --git a/packages/nodes-base/nodes/HttpRequest/V2/HttpRequestV2.node.ts b/packages/nodes-base/nodes/HttpRequest/V2/HttpRequestV2.node.ts index 82941b01db..2c5d78f206 100644 --- a/packages/nodes-base/nodes/HttpRequest/V2/HttpRequestV2.node.ts +++ b/packages/nodes-base/nodes/HttpRequest/V2/HttpRequestV2.node.ts @@ -1047,7 +1047,7 @@ export class HttpRequestV2 implements INodeType { } response = response.value; - delete response.request; + if (response?.request?.constructor.name === 'ClientRequest') delete response.request; const options = this.getNodeParameter('options', itemIndex, {}); diff --git a/packages/nodes-base/nodes/HttpRequest/V3/HttpRequestV3.node.ts b/packages/nodes-base/nodes/HttpRequest/V3/HttpRequestV3.node.ts index 0f60254037..c6fabfa41e 100644 --- a/packages/nodes-base/nodes/HttpRequest/V3/HttpRequestV3.node.ts +++ b/packages/nodes-base/nodes/HttpRequest/V3/HttpRequestV3.node.ts @@ -1786,7 +1786,8 @@ export class HttpRequestV3 implements INodeType { // eslint-disable-next-line prefer-const for (let [index, response] of Object.entries(responses)) { - delete response.request; + if (response?.request?.constructor.name === 'ClientRequest') delete response.request; + if (this.getMode() === 'manual' && index === '0') { // For manual executions save the first response in the context // so that we can use it in the frontend and so make it easier for