From 9bf633e9c923a48ff5260f4921c2fe5ab4e0711e Mon Sep 17 00:00:00 2001 From: Marie <51697796+ijreilly@users.noreply.github.com> Date: Tue, 30 Sep 2025 14:04:11 +0200 Subject: [PATCH] Intercept all abortErrors (#14780) Fixes https://github.com/twentyhq/twenty/issues/14569 Some extensions, such as SimilarWeb, are incompatible with twenty: they trigger intempestive "AbortErrors" converted into error snackbar. While twenty remains usable it is very annoying. I did not take time to deeply investigate which requests are problematic. According to ClaudeAI it may be because twenty makes a lot of queries to the same endpoint /graphql, a pattern that SimilarWeb may interpret as tracking which they try to intercept. In this PR, we finish the work started in [this PR](https://github.com/twentyhq/twenty/pull/13080) to silent harmless AbortErrors. --- .../error-handler/components/PromiseRejectionEffect.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/twenty-front/src/modules/error-handler/components/PromiseRejectionEffect.tsx b/packages/twenty-front/src/modules/error-handler/components/PromiseRejectionEffect.tsx index ef0eca92e38..f4d895dd885 100644 --- a/packages/twenty-front/src/modules/error-handler/components/PromiseRejectionEffect.tsx +++ b/packages/twenty-front/src/modules/error-handler/components/PromiseRejectionEffect.tsx @@ -23,7 +23,11 @@ export const PromiseRejectionEffect = () => { return; // already handled by apolloLink } - if (error.networkError?.name !== 'AbortError') { + const isAbortError = + error.networkError?.name === 'AbortError' || + error.name === 'AbortError'; + + if (!isAbortError) { enqueueErrorSnackBar({}); }