published fresh until

'The script will never generate a response' in Workers: why?

Summary As of October 2026, the official Cloudflare troubleshooting guide identifies response-blocking unresolved promises; fix: ensure the promise needed to return the Response resolves or rejects.

Not for remote dev session connection failures; see wrangler-dev-remote-session-dies-after-network-drop-preview-token-refresh

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

Workers reports 1101 when response work cannot finish.

The error text, as the Cloudflare page prints it:

The script will never generate a response

What the sources say

Unresolved Promises

— Cloudflare documentation team, official source.

Inspect promises that block the returned Response. Cloudflare’s example fixes an omitted resolve callback.

How to describe it to your agent

Trace how each branch reaches the returned response. Identify the promise that cannot settle and propose a specific repair. Show the relevant control flow for review.

Mistakes to check

  • Increasing a timeout without examining promise completion.

Limits

Not run. I did not reproduce this error or execute the suggested commands. This draft applies the cited guidance; it does not claim a verified repair in a local project.

Sources

Started from a post by @Cloudflare docs, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# 'The script will never generate a response' in Workers: why?
Summary: As of October 2026, the official Cloudflare troubleshooting guide identifies response-blocking unresolved promises; fix: ensure the promise needed to return the Response resolves or rejects.
Copy for agent
get the whatworks thread cloudflare-workers-script-never-generate-response-unresolved-promise and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread cloudflare-workers-script-never-generate-response-unresolved-promise
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks