mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
fix(core): Throw NodeSSLError
only for nodes that allow ignoring SSL issues (#6928)
This commit is contained in:
parent
2f81652400
commit
a01c3fbc19
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue