The page reports a NetworkError rejection each time a background fetch fails #219
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The page reported 9 unhandled promise rejections to
/api/clientover 7 days, all from one Firefox on a Mac (rays@sdf1.net), from 2026-10-12 02:33 onwards: 8 wereNetworkError when attempting to fetch resource.and 1, at 2026-10-12 15:08 (the overload), was a whole Cloudflare502: Bad gatewayHTML page used as the error message.srcandlineare empty, so the minified script does not say which call it was.Somewhere a fetch that fails (the network dropping, a laptop waking, Cloudflare answering 502) is not caught, and an error built from a non-JSON response body carries the whole HTML page. Both should be caught and shown as a short message, the way other failed requests are.
A second thing visible in the same reports: three of them (02:35, 11:32 and 11:34 on 2026-10-13) carry the same trace id,
d963583336ccc26ea5c4a9103743ba04, as do the/api/feeds,/api/entries,/api/meand/api/settingsrequests around them. Background requests nine hours apart are filed under one old tap, so the trace says the tap took nine hours.Fixed in
724764c: the live update's list refresh and the first feed load catch a failed fetch, an HTML error page (Cloudflare's 502) gives the status as the message instead of the page, and a trace ends after a minute without a request, so background requests start their own. Deployed in ipx-web.