From b0db83d9dc60fc816b02f3039d550bd81ab4bb85 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 7 Oct 2026 11:20:45 -0400 Subject: [PATCH] Keep reconnecting to the streaming server after a 4429 close A 4429 (Too Many Requests) close stopped streaming until restart along with the other 44xx codes. Retry it on the normal backoff schedule. --- chrome/content/zotero/xpcom/streamer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/streamer.js b/chrome/content/zotero/xpcom/streamer.js index 63278a902b..d58a4c463f 100644 --- a/chrome/content/zotero/xpcom/streamer.js +++ b/chrome/content/zotero/xpcom/streamer.js @@ -347,7 +347,8 @@ Zotero.Streamer_Module.prototype = { this._subscriptions.clear(); if (this._reconnect) { - if (event.code >= 4400 && event.code < 4500) { + // Keep retrying on 4429 (Too Many Requests) + if (event.code >= 4400 && event.code < 4500 && event.code != 4429) { Zotero.debug("Not reconnecting to WebSocket due to client error"); return; }