mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(HTTP Request Node): Delete response.request only when it's a valid circular references (#8293)
This commit is contained in:
committed by
GitHub
parent
8c7f39907f
commit
05c43faa2d
@@ -994,7 +994,7 @@ export class HttpRequestV1 implements INodeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
response = response.value;
|
response = response.value;
|
||||||
delete response.request;
|
if (response?.request?.constructor.name === 'ClientRequest') delete response.request;
|
||||||
|
|
||||||
const options = this.getNodeParameter('options', itemIndex, {});
|
const options = this.getNodeParameter('options', itemIndex, {});
|
||||||
|
|
||||||
|
|||||||
@@ -1047,7 +1047,7 @@ export class HttpRequestV2 implements INodeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
response = response.value;
|
response = response.value;
|
||||||
delete response.request;
|
if (response?.request?.constructor.name === 'ClientRequest') delete response.request;
|
||||||
|
|
||||||
const options = this.getNodeParameter('options', itemIndex, {});
|
const options = this.getNodeParameter('options', itemIndex, {});
|
||||||
|
|
||||||
|
|||||||
@@ -1786,7 +1786,8 @@ export class HttpRequestV3 implements INodeType {
|
|||||||
|
|
||||||
// eslint-disable-next-line prefer-const
|
// eslint-disable-next-line prefer-const
|
||||||
for (let [index, response] of Object.entries(responses)) {
|
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') {
|
if (this.getMode() === 'manual' && index === '0') {
|
||||||
// For manual executions save the first response in the context
|
// 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
|
// so that we can use it in the frontend and so make it easier for
|
||||||
|
|||||||
Reference in New Issue
Block a user