mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(HTTP Request Node): Fix itemIndex in HTTP Request errors (#5991)
This commit is contained in:
@@ -967,7 +967,7 @@ export class HttpRequestV1 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({
|
||||
|
||||
Reference in New Issue
Block a user