← Back to all articles

Error 1101: Cloudflare Worker Threw Exception Fix

by Unknown Proxies

11 min read

Updated October 17, 2026

If a website shows "Error 1101: Worker threw exception", the site's own code crashed on Cloudflare's servers. The site runs that code as a Cloudflare Worker, and the Worker failed before it could send you a page. Nothing on your device causes it. Reload once, then wait and try later, or send the site owner the Ray ID from the error page.

If you own the Worker, error 1101 means it threw an uncaught JavaScript exception or never returned a Response. The error page hides the real error. Run npx wrangler tail <worker-name> --status error, reload the failing URL, and read the exception it prints.

Diagram showing Cloudflare Error 1101 when a Worker throws an exception

Error 1101 for visitors: what you can do

You cannot fix 1101 from your browser. The site's code failed on Cloudflare's network, so clearing cookies, changing browsers, or switching to a VPN reaches the same broken code.

  1. Reload once. Some exceptions only happen on certain requests or certain links.
  2. Try a different page on the same site. If the homepage loads and one page fails, that page's code path is broken.
  3. Wait and try later. The owner has to fix and redeploy the code.
  4. Report the URL, the time, and the Ray ID from the error page to the site owner.

If many unrelated sites show 1101 at the same moment, the problem is probably on Cloudflare's side. Check Cloudflare's status page. Past incidents, such as one where Cloudflare Snippets returned "Worker threw exception", hit many sites at once and cleared without any action from site owners.

A lot of 1101 searches come from Path of Building users ("pob error 1101", "pobb.in worker threw exception"). pobb.in is a pastebin for Path of Building builds, and its open source code (Paste of Exile) runs on Cloudflare Workers. When its Worker fails, every visitor gets the 1101 page.

It is not your build link, your account, or your copy of Path of Building. While the site is down, ask whoever shared the build to send the raw build code from Path of Building's Import/Export Build tab, or a link from another paste site. Path of Building imports a pasted code directly.

Not a Cloudflare page? Other "error 1101" messages

The number 1101 also appears in tools that have nothing to do with Cloudflare. If your screen does not show a Cloudflare error page with a Ray ID, this guide does not apply.

Error 1101 fix for Worker owners: the short version

  1. Stream live errors with npx wrangler tail <worker-name> --format pretty --status error and reload the failing URL.
  2. Read the exception name, message, and stack trace in the output.
  3. If the error started after a deploy, roll back to the last working version in the dashboard or with npx wrangler rollback.
  4. Fix the code path, then add a try/catch so future failures return a controlled response.

What does "Worker threw exception" mean?

Cloudflare's Workers documentation defines error 1101 as "Worker threw a JavaScript exception." Cloudflare's support page for the error (last updated June 2026) calls it a rendering error. The request path is:

  1. A visitor requests a URL that matches a Worker route.
  2. Cloudflare runs the Worker at the edge.
  3. The Worker throws an error that nothing catches, or its promise rejects.
  4. Cloudflare returns the 1101 page instead of a response from your code.

The same 1101 page also appears when the runtime decides the Worker will never respond. The log message reads "The Workers runtime canceled this request because it detected that your Worker's code had hung and would never generate a response." It happens when all the code for a request has finished, nothing is left in the event loop, and the handler still has not returned a Response. Cloudflare's errors page lists unresolved promises and WebSockets that are never closed as typical causes.

Your origin server is not involved in 1101. The failure is in the Worker code, its configuration, or (rarely) the Workers platform.

How to find the real exception

Use wrangler tail

wrangler tail streams logs from the deployed Worker in real time:

npx wrangler tail <worker-name> --format pretty --status error

Reload the failing URL while the command runs. The output shows the exception message, the stack, and any console.log output from that request. In JSON format (the default), the details are in the exceptions array.

Use --env production if the Worker is deployed to a named Wrangler environment.

Turn on Workers Logs

wrangler tail only shows live traffic. To search past errors, enable Workers Logs in your Wrangler config and redeploy:

# wrangler.toml
[observability]
enabled = true
// wrangler.jsonc
{
  "observability": { "enabled": true }
}

Then open Workers & Pages, select the Worker, and open its logs. Filter with $workers.outcome = "exception" to list only failed invocations. The Worker's metrics page also splits errors into "Uncaught Exception", "Exceeded CPU Time Limits", and "Exceeded Memory", which tells you whether you have a 1101 or a resource problem.

Reproduce it locally

Run the Worker locally and send the same request:

npx wrangler dev
curl -i "http://localhost:8787/the/failing/path?same=params"

If it works locally but fails in production, the difference is usually configuration: bindings, secrets, or environment-specific settings. npx wrangler dev --remote runs against Cloudflare's network with the deployed bindings, which often reproduces the production error.

Stop one bug from becoming a 1101 page

Catch errors at the top of the handler

A top-level try/catch turns a blank 1101 page into a logged error and a controlled response:

export default {
  async fetch(request, env, ctx) {
    try {
      return await handle(request, env, ctx);
    } catch (err) {
      console.error("Unhandled error", request.url, err && err.stack);
      return new Response("Internal error", { status: 500 });
    }
  },
};

Note the await. Without it, a rejected promise from handle() escapes the try block and still produces 1101.

Send errors to an external logger with ctx.waitUntil

If you report errors to Sentry or your own endpoint, do it with ctx.waitUntil(). The runtime cancels pending work once the response is sent, unless you register it this way:

export default {
  async fetch(request, env, ctx) {
    try {
      return await handle(request, env, ctx);
    } catch (err) {
      ctx.waitUntil(
        fetch(env.ERROR_WEBHOOK_URL, {
          method: "POST",
          headers: { "Content-Type": "application/json" },
          body: JSON.stringify({ url: request.url, stack: String(err && err.stack) }),
        })
      );
      return new Response("Internal error", { status: 500 });
    }
  },
};

Fall back to the origin with passThroughOnException

If the Worker sits in front of an origin server, ctx.passThroughOnException() tells Cloudflare to forward the request to the origin when the Worker throws. Visitors get the origin's page instead of 1101.

export default {
  async fetch(request, env, ctx) {
    ctx.passThroughOnException();
    return handle(request, env, ctx);
  },
};

Cloudflare's docs (October 2026) note two limits. It does not cover errors returned by an origin fetch(), and the request body cannot be replayed if your code already read it. It also hides bugs, so keep logging on.

Common causes of error 1101

Cause Typical message in logs Fix
Missing binding in this environment TypeError: Cannot read properties of undefined (reading 'get') Add the KV, R2, D1, or service binding under the right [env.<name>] section. Wrangler does not copy bindings from the top level into named environments
Missing secret or variable undefined value used as a string or URL Set it with npx wrangler secret put NAME for each environment
Unhandled promise rejection Error from fetch(), JSON parsing, or a storage call with no handler await the call inside try/catch, and handle non-OK responses
Handler returns nothing "would never generate a response" Return a Response from every branch. Do not leave a promise that never resolves
Bad input SyntaxError: Unexpected token from request.json() Check request.method and Content-Type, then parse inside try/catch
Shared state across requests Cannot perform I/O on behalf of a different request Do not store request-bound objects (streams, responses, sockets) in global scope. Cache plain data instead
Module fails at startup ImportError or ReferenceError at module load Every request fails until you fix the import. See the Python note below

Python Workers import errors

Python Workers fail with 1101 on every request if a module throws at import time. One public example is the workers-py issue about importing asgi from March 2026. Deployed Workers threw ImportError: cannot import name 'wait_until' from 'workers', while pywrangler dev worked locally. A maintainer traced it to "a problem with memory snapshots causing version skew", Cloudflare rolled back the platform change, and the issue closed on March 24, 2026.

The lesson: if a Worker that worked yesterday fails on every request with no deploy in between, read the first exception in wrangler tail, check the Cloudflare status page, and search the runtime's issue tracker before rewriting your code.

Rust Workers panics

Rust Workers built with workers-rs show 1101 when the code panics. Cloudflare's changelog from September 2025 says older versions left the Worker in an invalid state after a panic, so later requests could fail too. From workers-rs 0.6.5, a panic fails only the in-flight requests and the Worker recovers for the next ones. If a Rust Worker keeps throwing 1101 after one bad request, upgrade workers-rs and redeploy.

Framework apps on Workers

Next.js, Remix, Astro, SvelteKit, and other framework adapters run your server code inside a Worker. A crash in a server route or loader shows up as 1101. The fix is the same: tail the Worker and read the stack trace. The trace points to the framework's bundled file, so enable source maps (upload_source_maps = true in wrangler.toml) to see your original file names.

Error 1101 vs. 1102, 1027, 1042, and 520

Error What happened Where to look
Error 1101 The Worker threw an uncaught exception or never returned a response Worker logs, code, bindings
Error 1102 The Worker exceeded its CPU time limit or its 128 MB memory limit CPU-heavy loops, large JSON parsing, buffering large bodies
Error 1027 The Worker hit the free plan's daily request limit Plan usage, or upgrade to Workers Paid
Error 1042 A Worker fetched another Worker on the same zone without the right flag, or a workers.dev URL has no Worker Compatibility flags, Worker routes
Error 520 The origin server returned an empty or invalid response, with no Worker failure Origin server logs and response headers

The 1101 vs. 1102 difference matters. Exceeding the CPU limit is not an exception in your code, so a try/catch will not stop it. For 1102, reduce work per request: stream large bodies with TransformStream instead of buffering them, cache results, and split large jobs. On the Workers Paid plan you can also raise the CPU limit.

If the hostname uses Cloudflare Tunnel and you see error 1033 instead, the tunnel connector is offline. That is a server problem, not a Worker bug.

Can proxies fix error 1101?

No. Error 1101 is a code failure on the site's side. A new IP, a VPN, or a proxy reaches the same broken Worker.

If a scraper or monitor sees 1101 on a target, log it as a target-side outage, back off, and retry later. Treat it differently from blocks like Cloudflare Error 1020 or Error 1015, where Cloudflare refused your request on purpose.

How to prevent error 1101

Debugging loop for Cloudflare Error 1101 Worker exceptions

FAQ

What is error 1101?

Error 1101 is a Cloudflare error page. It means the site's Cloudflare Worker threw a JavaScript exception, or finished without returning a response, while it handled your request.

Is error 1101 my fault as a visitor?

No. Your request reached Cloudflare, and the site's code failed. Only the site owner can fix it.

Why does pobb.in show error 1101 worker threw exception?

pobb.in runs on Cloudflare Workers, so any crash in its code shows the 1101 page to everyone. Your build and your Path of Building install are fine. Wait for the site to recover, or ask for the raw build code and import that instead.

How long does error 1101 last?

Until the owner fixes the code or the condition that triggers it goes away. A bad deploy that gets rolled back clears in minutes. A bug that only hits some requests can come and go, so a page may load on one try and fail on the next.

Why does my Worker work in wrangler dev but throw 1101 in production?

Usually because production uses a different Wrangler environment with missing bindings or secrets. Runtime differences can also matter, as in the Python Workers import case above. Try npx wrangler dev --remote to run with the deployed configuration.

Is error 1101 the same as error 1102?

No. Error 1101 is an exception or missing response. Error 1102 means the Worker exceeded its CPU time or memory limit.

Final thoughts

If you are a visitor, 1101 is the site's bug. Reload once, check Cloudflare's status page if several sites fail, and send the Ray ID to the owner if it lasts. If you own the Worker, the 1101 page hides the real error, so everything starts with wrangler tail. Fix the exact path in the stack trace, then add a top-level try/catch and Workers Logs so the next failure is easy to find.

Technical references: Cloudflare Workers errors and exceptions, Cloudflare error 1101, Cloudflare error 1102, and panic recovery for Rust Workers.

Need clean IPs for this setup?

Static ISP proxies for steady sessions and rotating residential pools when you need fresh exits, backed by a live site list and support on Discord.

View pricing