mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(HTTP Request Node): Improve error handling for TCP socket errors when Continue On Fail is enabled (#6925)
This commit is contained in:
committed by
GitHub
parent
4e4a3cf7ab
commit
96ff1f847d
@@ -7,6 +7,10 @@ let initialized = false;
|
||||
export const initErrorHandling = async () => {
|
||||
if (initialized) return;
|
||||
|
||||
process.on('uncaughtException', (error) => {
|
||||
ErrorReporterProxy.error(error);
|
||||
});
|
||||
|
||||
const dsn = config.getEnv('diagnostics.config.sentry.dsn');
|
||||
if (!config.getEnv('diagnostics.enabled') || !dsn) {
|
||||
initialized = true;
|
||||
@@ -44,10 +48,6 @@ export const initErrorHandling = async () => {
|
||||
return event;
|
||||
});
|
||||
|
||||
process.on('uncaughtException', (error) => {
|
||||
ErrorReporterProxy.error(error);
|
||||
});
|
||||
|
||||
ErrorReporterProxy.init({
|
||||
report: (error, options) => captureException(error, options),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user