mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -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