From a01c3fbc19d66cf8b1dac3e34e0999dd36d81e7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Wed, 23 Aug 2023 17:29:43 +0200 Subject: [PATCH] fix(core): Throw `NodeSSLError` only for nodes that allow ignoring SSL issues (#6928) --- packages/core/src/NodeExecuteFunctions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/NodeExecuteFunctions.ts b/packages/core/src/NodeExecuteFunctions.ts index 7de0fe5f01..11c1844a71 100644 --- a/packages/core/src/NodeExecuteFunctions.ts +++ b/packages/core/src/NodeExecuteFunctions.ts @@ -720,7 +720,7 @@ export async function proxyRequestToAxios( error: responseData, response: pick(response, ['headers', 'status', 'statusText']), }); - } else if (error instanceof Error && error.message.includes('SSL routines')) { + } else if ('rejectUnauthorized' in configObject && error.code?.includes('CERT')) { throw new NodeSSLError(error); } }