Part 04 of the notebook
DEPLOYDeploy
Deploy and hosting errors, reproduced on a real deploy: what the platform really did. Deploy errors only show up on a real deploy, so every one here was reproduced on a deployed Worker, with the platform's own logs, before it was written up.
press / and paste the error code or message you got.
- No.035
Fix: Script startup exceeded CPU time limit (Workers 10021)
Cloudflare rejects your Worker deploy with Script startup exceeded CPU time limit. How to see which code is slow, and the fix that removes it, measured.
> X [ERROR] Your Worker failed validation because it exceeded startup limits.
DEPLOY2 min - No.034
Fix: The uploaded script has no registered event handlers
Cloudflare rejects your Worker with no registered event handlers (code 10068), or accepts it and serves a 404. Three ways it happens, tested on a deploy.
> X [ERROR] A request to the Cloudflare API (/accounts/.../workers/scripts/nk-repro-cpu) failed.
DEPLOY2 min - No.027
Fix: Error 1101 Worker threw exception (Cloudflare Workers)
Cloudflare's 1101 page hides the real error. See it with one command, plus six causes reproduced on a deployed Worker, each with its exact log message.
> Error 1101
DEPLOY3 min - No.026
Cloudflare 1102: Worker exceeded resource limits / CPU time limit
Cloudflare Workers Error 1102. Why sign-ups with better-auth trip it, why it only fails sometimes, and what fixes it, measured on a deployed Worker.
> Error 1102
DEPLOY4 min
Post card · Newsletter
Get the next fix in your inbox.
One short email when a new entry is published. No spam, never shared, and you can leave any time.
— Nilay