Skip to content

Commit

Permalink
fix(core): Throw NodeSSLError only for nodes that allow ignoring SS…
Browse files Browse the repository at this point in the history
…L issues (#6928)
  • Loading branch information
netroy authored Aug 23, 2023
1 parent 2f81652 commit a01c3fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/NodeExecuteFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit a01c3fb

Please sign in to comment.