Fix “Unexpected token <” when fetch expects JSON
Trace a fetch JSON parse error to an HTML response. Use status, redirect history and content type to distinguish a login page, a missing route and a fallback.
Software Engineering3 min read
Tag
5 articles with this tag.
Trace a fetch JSON parse error to an HTML response. Use status, redirect history and content type to distinguish a login page, a missing route and a fallback.
Software Engineering3 min read
Resolve a repeated local hour with Python zoneinfo. Compare fold values, recover both UTC instants, and detect ambiguous or nonexistent wall-clock inputs.
Software Engineering2 min read
Reproduce a React hydration mismatch with UTC and Kathmandu dates, render a stable first timestamp, and test local formatting at a midnight boundary.
Software Engineering4 min read
Keep customers with no matching orders in a SQL report. See how COUNT(*), COUNT(order_id), and a status filter change the result of a LEFT JOIN.
Software Engineering3 min read
Build a small support-ticket test set, catch a valid JSON response with the wrong label, and run the same prompt evaluation locally and in GitHub Actions.
Artificial Intelligence3 min read