fix: an HTML page from the proxy is a passing outage, a full machine and a proof card in Finalizado are said before the move (DTF-WEB-1Z, 20, 21)
All checks were successful
Build and deploy / Validate source (push) Successful in 6s
Build and deploy / Integration suite on a real stack (push) Successful in 7m42s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 1m20s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-11-27 09:26:48 -03:00
parent ffc7d3153a
commit 5dc4135562
3 changed files with 14 additions and 1 deletions

View File

@@ -246,7 +246,9 @@ async function api(path,body,options={}){
catch(e){e.offline=true;throw e;}
// The network can also drop while the answer arrives (Sentry DTF-WEB-1E).
let d;
try{d=await r.json();}catch(e){if(e instanceof TypeError)e.offline=true;throw e;}
// An HTML page instead of the answer (the proxy while a container restarts,
// Sentry DTF-WEB-1Z) is as passing as no network: warned, reported if it lasts.
try{d=await r.json();}catch(e){if(e instanceof TypeError||e instanceof SyntaxError)e.offline=true;throw e;}
if(!r.ok){
// A validation error is a list: name its first field and what was wrong
// instead of the bare status (Sentry DTF-WEB-E).