From 2137af619db61bda359718f29d1cb56be7a8ab7f Mon Sep 17 00:00:00 2001 From: sheldon guo Date: Thu, 13 Feb 2025 16:01:03 +0800 Subject: [PATCH] fix: add skipNotify option to handle error notifications in SSE stream --- .../src/client/observables/sse.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/plugins/@nocobase/plugin-notification-in-app-message/src/client/observables/sse.ts b/packages/plugins/@nocobase/plugin-notification-in-app-message/src/client/observables/sse.ts index c718ad6209..0b9f6b706b 100644 --- a/packages/plugins/@nocobase/plugin-notification-in-app-message/src/client/observables/sse.ts +++ b/packages/plugins/@nocobase/plugin-notification-in-app-message/src/client/observables/sse.ts @@ -54,6 +54,7 @@ export const startMsgSSEStreamWithRetry: () => () => void = () => { }, responseType: 'stream', adapter: 'fetch', + skipNotify: (error) => (!error || !error.message ? true : false), }); if (!res?.data) return; const stream = res.data;