fix(HTTP Request Node): Fix itemIndex in HTTP Request errors (#5991)

This commit is contained in:
Jan Oberhauser
2023-04-18 11:48:38 +02:00
committed by GitHub
parent 9693142985
commit b351c62659
3 changed files with 6 additions and 6 deletions

View File

@@ -1019,7 +1019,7 @@ export class HttpRequestV2 implements INodeType {
if (response!.status !== 'fulfilled') {
if (!this.continueOnFail()) {
// throw error;
throw new NodeApiError(this.getNode(), response as JsonObject);
throw new NodeApiError(this.getNode(), response as JsonObject, { itemIndex });
} else {
// Return the actual reason as error
returnItems.push({