Skip to content

assets-upload-session endpoint returning 500 during static asset upload #11153

@rmsy

Description

@rmsy

What versions & operating system are you using?

Please note that this also occurs from the Cloudflare Builds environment.

  System:
    OS: macOS 26.0.1
    CPU: (12) arm64 Apple M2 Max
    Memory: 228.92 MB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.8.0 - /Users/isaac/.asdf/installs/nodejs/22.8.0/bin/node
    Yarn: 1.22.19 - /Users/isaac/.yarn/bin/yarn
    npm: 10.8.2 - /Users/isaac/.asdf/plugins/nodejs/shims/npm
    pnpm: 10.4.0 - /Users/isaac/.asdf/installs/nodejs/22.8.0/bin/pnpm
    bun: 1.2.2 - /Users/isaac/.asdf/shims/bun
    Watchman: 2025.09.15.00 - /opt/homebrew/bin/watchman
  npmPackages:
    @cloudflare/vitest-pool-workers: ^0.9.9 => 0.9.9
    @cloudflare/workers-types: ^4.20251001.0 => 4.20251014.0
    wrangler: ^4.45.3 => 4.45.3

Please provide a link to a minimal reproduction

I cannot reproduce this outside of this specific project. I'd be glad to provide my account ID / worker name upon request, since this feels like maybe some bad state on the Cloudflare side?

Describe the Bug

When deploying, if my worker is configured with a static asset binding, the assets-upload-session endpoint returns a 500, causing an error 10013 to fail the deploy.

Please provide any relevant error logs

🌀 Building list of assets...
✨ Read 1 file from the assets directory /Users/isaac/Developer/<redacted>/public
/terms.html
🌀 Starting asset upload...
-- START CF API REQUEST: POST https://api.cloudflare.com/client/v4/accounts/<redacted>/workers/scripts/<redacted>/assets-upload-session
QUERY STRING:
HEADERS: {
  "content-type": "application/json",
  "user-agent": "wrangler/4.45.3"
}
INIT: {
  "headers": {
    "Content-Type": "application/json"
  },
  "method": "POST",
  "body": "{\"manifest\":{\"/terms.html\":{\"hash\":\"f8064655fd552f5669b59372ad095ff1\",\"size\":10044}}}"
}
-- END CF API REQUEST
-- START CF API RESPONSE: Internal Server Error 500
HEADERS: {
  "api-version": "2025-11-01",
  "cf-auditlog-id": "019a4153-9f0c-7ddd-87c8-ee2da1f1786c",
  "cf-cache-status": "DYNAMIC",
  "cf-ray": "997e7d6b2c3f6b15-DFW",
  "connection": "keep-alive",
  "content-encoding": "gzip",
  "content-type": "application/json; charset=UTF-8",
  "date": "Sat, 01 Nov 2025 21:29:51 GMT",
  "ratelimit": "\"default\";r=1199;t=1",
  "ratelimit-policy": "\"default\";q=1200;w=300",
  "server": "cloudflare",
  "set-cookie": "_cfuvid=iSSBvbzZU0oLv4RcfyjXt_XKCRnJ4GZI6keMGftEGo0-1762032591285-0.0.1.1-604800000; path=/; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None",
  "transfer-encoding": "chunked",
  "vary": "Accept-Encoding"
}
RESPONSE: {
  "result": null,
  "success": false,
  "errors": [
    {
      "code": 10013,
      "message": "An unknown error has occurred. If this error persists, please file a report in workers-sdk (https://github.com/cloudflare/workers-sdk/issues) or reach out to your account team."
    }
  ],
  "messages": []
}

-- END CF API RESPONSE

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Untriaged

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions