Note: this is an account-scoped Cloudflare backend issue — it reproduces only on affected accounts. On an affected account, ANY Worker with a D1 (or Durable Objects) binding fails at the deployment-creation step; the same Worker with no D1/DO binding deploys fine.
npx wrangler d1 create repro-dband put the returneddatabase_idintowrangler.tomlnpx wrangler deploy
Deploys normally.
Version upload succeeds, then POST /accounts/{account}/workers/scripts/{name}/deployments
returns HTTP 500 with body {"result":null,"success":false,"errors":[{"code":10013,"message":"An unknown error has occurred..."}]}.
Also fails identically via wrangler versions deploy <id>@100% and via the legacy
PUT /workers/scripts/{name} path (tested with wrangler 3.60.0). Removing the d1_databases
block makes existing Workers deploy again (not viable for Workers whose code needs the binding).