From 80e3120586314bd0c85e2682aa1db40ec3f75057 Mon Sep 17 00:00:00 2001 From: Mathias Ober Date: Wed, 24 Sep 2025 10:23:15 +0200 Subject: [PATCH] update handling of aborted request --- src/stores/plugins/api.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/stores/plugins/api.ts b/src/stores/plugins/api.ts index d2845dd0..646e2e78 100644 --- a/src/stores/plugins/api.ts +++ b/src/stores/plugins/api.ts @@ -87,7 +87,10 @@ export default function api(): PluginApi { if (messages) { showNotifications(messages); - } else { + } else if (error?.code !== 'ECONNABORTED') { + // We don't show a message if the request was aborted (timeout) as this is mostly + // triggered by navigation changes and the user doesn't need to be informed about this. + // If there are no messages in the response we show a generic error message. notificationStoreInstance.showUnknownError(); }