mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix: Do not crash the server when Telemetry is blocked via DNS (#4947)
* do not crash the process on unhandled axios errors * postHog.capture does not return a promise
This commit is contained in:
committed by
GitHub
parent
626879b3a2
commit
6127c958f5
@@ -25,11 +25,17 @@ export const initErrorHandling = () => {
|
||||
release,
|
||||
environment,
|
||||
integrations: (integrations) => {
|
||||
integrations = integrations.filter(({ name }) => name !== 'OnUncaughtException');
|
||||
integrations.push(new RewriteFrames({ root: process.cwd() }));
|
||||
return integrations;
|
||||
},
|
||||
});
|
||||
|
||||
process.on('uncaughtException', (error) => {
|
||||
ErrorReporterProxy.error(error);
|
||||
if (error.constructor?.name !== 'AxiosError') throw error;
|
||||
});
|
||||
|
||||
ErrorReporterProxy.init({
|
||||
report: (error, options) => Sentry.captureException(error, options),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user