Electron auto-update stuck at 'Checking for updates' when update server returns HTTP 204 No Content
Environment
Electron 21 app packaged with electron-updater using Squirrel and update server implemented as simple static release endpoint on GitHub Pages/NGINX; clients log 'Checking for updates' indefinitely in production; developer portal shows update package published; curl to URL returns 204 No Content under certain client user-agent conditions.
Symptoms
App UI shows 'Checking for updates' spinner forever and never calls downloaded update handlers. DevTools console shows no errors; debugger reveals request to update-metadata endpoint returned 204 and electron-updater didn't proceed or emit events.
Observations
When testing with curl and the Electron user-agent, endpoint returns 204; when requesting same URL with a different user-agent, server returns 200 and JSON metadata. NGINX config had conditional handling for Accept or User-Agent leading to no body on HEAD/conditional requests past a size threshold. Older electron-updater expects either 200 with JSON manifest or a 404/200 indicating no update; a 204 is not handled gracefully by this client version.
Already attempted
Verified update JSON valid, toggled Content-Type and forced 200 on server, and saw clients start update check successfully. Tried upgrading electron-updater but deferred due to packaging constraints; added server-side rewrite to return 200 with '{}' and clients recovered.
Question
Why do Electron clients hang forever when update endpoint returns 204, and what's the safest fix that doesn't require immediate client update rollout?
Verified community troubleshooting
No answers yet..
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags
- Web Development22% match
NGINX returns 413 for Transfer-Encoding: chunked uploads only when proxying to Node.js over HTTP/2 TLS offload
Solved1 answer - Web Development22% match
NGINX returns 502 only for long-running Node.js API endpoints while short requests succeed
Open0 answers - Web Development20% match
Nginx returns 504 Gateway Timeout only for backend requests over ~45s to my Node API
Open1 answer