A page served by a Worker returns "Error 1101: Worker threw an exception".
Uncaught JavaScript exception inside the Worker code path.
npx wrangler tail <worker-name>filter: --format prettytry { JSON.parse(body) } catch (e) { return new Response("bad json", {status: 400}) }Deploy with wrangler tail running; never trust external API shapes without guards.
Full walkthrough: Cloudflare Error 1101: Worker Threw an Exception on the NinjaOps blog.
Spinning up a fresh box to reproduce or escape this error?
Build apps without serversNinjaOps publishes free engineering guides. Some outbound links are affiliate links: they cost you nothing and support the site.
Last reviewed 2026-10-02 · NinjaOps SEO grid · DevOps blog