mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
fix(HTTP Request Node): Delete response.request
only when it's a valid circular references (#8293)
This commit is contained in:
parent
8c7f39907f
commit
05c43faa2d
|
@ -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, {});
|
||||
|
||||
|
|
|
@ -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, {});
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue