mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 20:00:02 +00:00
fix(core): Improve axios error handling in nodes (#5891)
This commit is contained in:
committed by
कारतोफ्फेलस्क्रिप्ट™
parent
6d5c35d17f
commit
f0a51a0b76
@@ -707,7 +707,7 @@ async function proxyRequestToAxios(
|
||||
|
||||
const message = `${response.status as number} - ${JSON.stringify(responseData)}`;
|
||||
throw Object.assign(new Error(message, { cause: error }), {
|
||||
status: response.status,
|
||||
statusCode: response.status,
|
||||
options: pick(config ?? {}, ['url', 'method', 'data', 'headers']),
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user