mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(core): Improve the error returned to users on SSL issues (#6494)
This commit is contained in:
committed by
GitHub
parent
7a95e08bfd
commit
1b084bc56b
@@ -77,6 +77,7 @@ import {
|
||||
fileTypeFromMimeType,
|
||||
ExpressionError,
|
||||
validateFieldType,
|
||||
NodeSSLError,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import pick from 'lodash/pick';
|
||||
@@ -727,6 +728,9 @@ export async function proxyRequestToAxios(
|
||||
response: pick(response, ['headers', 'status', 'statusText']),
|
||||
});
|
||||
} else {
|
||||
if (error instanceof Error && error.message.includes('SSL routines'))
|
||||
throw new NodeSSLError(error);
|
||||
|
||||
throw Object.assign(error, {
|
||||
options: pick(config ?? {}, ['url', 'method', 'data', 'headers']),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user