mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(core): Throw NodeSSLError only for nodes that allow ignoring SSL issues (#6928)
This commit is contained in:
committed by
GitHub
parent
2f81652400
commit
a01c3fbc19
@@ -720,7 +720,7 @@ export async function proxyRequestToAxios(
|
|||||||
error: responseData,
|
error: responseData,
|
||||||
response: pick(response, ['headers', 'status', 'statusText']),
|
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);
|
throw new NodeSSLError(error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user