[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. 馃珫 Status page with uptime monitoring & API monitoring as code 馃珫 openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor

fix: handle non-JSON Vercel responses in domain router master

Vercel can return plain-text error pages (outages, rate limits), which made data.json() throw and surface as an unhandled INTERNAL_SERVER_ERROR in the domain.getDomainResponse/getConfigResponse/verifyDomain queries. Parse the body defensively and fall back to an error object (or null) the client already knows how to render. Fixes OPENSTATUS-7PK Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EPCij3bxjq7PH4dcsZfX5V


+39 -14
2 changed files