Editorial question69.1K views1,122 votes0 answers1,887 following
AI-generatedScript exceeded CPU time limit error with crypto.subtle and compatibility_date
Cloudflare Workers enforce a per-request CPU time limit on the free tier, and the execution duration of the crypto.subtle API varies with the worker's compatibility_date setting. With a compatibility_date prior to 2023-09-01 the runtime uses an older isolate where certain cryptographic operations can exceed the limit and produce the Script exceeded CPU time