Error 1102
Last updated Apr 23, 2026
Error 1102: Worker exceeded resource limits
This error indicates that a Cloudflare Worker has exceeded its CPU time limit or memory limit.
Exceeded CPU time
A Cloudflare Worker exceeds a CPU time limit. CPU time is the time spent executing code (for example, loops, parsing JSON, etc). Time spent on network requests (fetching, responding) does not count towards CPU time.
Debugging
To identify CPU-intensive code:
- Use CPU profiling with DevTools locally to identify expensive operations.
- Review Workers Logs - CPU time is surfaced in the invocation log. This can help find if specific routes or requests are consuming high CPU time.
Resolution
Contact the developer of your Workers code to optimize code for a reduction in CPU usage. Common optimization strategies include:
- Reducing the number of iterations in loops
- Optimizing JSON parsing operations
- Caching computed values
- Breaking up large operations into smaller chunks
You can also increase the CPU time limit on the Workers Paid plan up to 5 minutes for CPU-bound tasks.
Exceeded memory
A Cloudflare Worker exceeds the 128 MB memory limit. This is a per-isolate limit, an isolate may be handling multiple requests concurrently.
Debugging
To identify memory issues:
- Use memory profiling with DevTools locally to take memory snapshots and identify leaks.
- Look for patterns like buffering a body which could be large (request or response), large objects stored in global scope or accumulating data in arrays.
Resolution
To avoid exceeding memory limits:
- Avoid buffering large objects or responses in memory
- Use streaming APIs such as
TransformStreamornode:streamto process data without buffering - Avoid storing large objects in global scope
- Be cautious with operations that accumulate data (e.g., appending to strings or arrays repeatedly)
Related errors
- Error 1101 - Workers JavaScript runtime exception
- Error 503 - Service temporarily unavailable (can be caused by Workers CPU or memory limits)
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-1xxx-errors/error-1102/#page","headline":"Error 1102","description":"Troubleshoot Cloudflare 1102 error code.","url":"https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-1xxx-errors/error-1102/","inLanguage":"en","image":"https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-1xxx-errors/error-1102/og.png?v=661339efe58d429c","dateModified":"2026-04-23","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Troubleshoot Cloudflare 1104 error code. title: Error 1104 image: https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-1xxx-errors/error-1104/og.png?v=cdd3be2631568e9a
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/support/llms.txt
Use this file to discover all available pages before exploring further.
Docs