Cloudflare Error 1104: A variation of this script was not found (Worker route to deleted script)

A Worker route points to a script that no longer exists (deleted, renamed or not deployed to that environment).

Seen on: Cloudflare

Meaning

Routes outlive scripts. Deleting/renaming a Worker or deploying to a different environment name leaves orphaned routes.

Common causes

  • Worker deleted or renamed
  • Route bound to another environment’s script
  • Deployment failed

⚡ Quick fix

  1. Redeploy the Worker
  2. Update or delete the route
  3. Check environment names in wrangler.toml

Detailed fix by platform

Shell

  1. bash
    npx wrangler deploy --env production
    npx wrangler deployments list

How to diagnose

  1. Route — Which script name?
  2. Script — Exists in the account?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.