fix(HTTP Request Node): Show detailed error message in the UI again (#5959)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-04-12 14:58:05 +02:00
committed by GitHub
parent 60d28fc761
commit e79679c023
7 changed files with 141 additions and 38 deletions

View File

@@ -1369,7 +1369,7 @@ export class HttpRequestV3 implements INodeType {
if (autoDetectResponseFormat && response.reason.error instanceof Buffer) {
response.reason.error = Buffer.from(response.reason.error as Buffer).toString();
}
throw new NodeApiError(this.getNode(), response.reason as JsonObject);
throw new NodeApiError(this.getNode(), response as JsonObject);
} else {
// Return the actual reason as error
returnItems.push({