From 3734c168a94654f1e87537cf0f985ac9ae20e919 Mon Sep 17 00:00:00 2001 From: Oliver Baer <75138893+mrwind-up-bird@users.noreply.github.com> Date: Thu, 26 Feb 2026 15:18:39 +0100 Subject: [PATCH] fix(autofix): Silent JSON parsing failures in SSE stream --- dashboard/js/api.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dashboard/js/api.js b/dashboard/js/api.js index 940974b..10d575c 100644 --- a/dashboard/js/api.js +++ b/dashboard/js/api.js @@ -172,8 +172,9 @@ const API = { } catch (err) { onError?.(err.message || 'Network error'); return; - } - + } catch (parseError) { + console.warn('Failed to parse SSE JSON data:', dataStr, parseError); + // Continue processing other events if (resp.status === 401) { this.clearToken(); window.dispatchEvent(new CustomEvent('minirag:unauthorized'));