cloudflare / cloudflare/workers-sdk
🐛 BUG: npx wrangler deploy randomly fails on GitHub Runner
- Dominant language
- TypeScript
- Stars
- 4.5k
- Forks
- 1.5k
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 187
Description
### Which Cloudflare product(s) does this pertain to?
Wrangler, KV Asset Handler, KV
### What versions are you using?
3.106.0 [Wrangler], 20.18.1 [Node.js], 10.8.2 [npm/npx]
### What operating system and version are you using?
Ubuntu 24.04.1 LTS on GitHub Runner
### Please provide a link to a minimal reproduction
_No response_
### Describe the Bug
Our app's deployment of static assets to Workers KV store fails 30%-50% of the time, specifically
when deploying to production. We get by by re-running the failed GitHub Action Runner jobs, which
usually works when its this specific error.
```log
> npx wrangler deploy -e prod --outdir dist
(...)
Uploaded 99% [209,427 out of 210,427]
Upload failed, aborting...
✘ [ERROR] Received a malformed response from the API
Contributor guide
Research direction
Start with the reported `npx wrangler deploy -e prod --outdir dist` command in the Ubuntu GitHub Runner context, focusing on the asset upload request that ends with a KV bulk HTTP 524 response. No source file or test is named; done means identifying and reliably handling the intermittent malformed API response during large asset uploads.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, node.js, typescript
- Domain
- api, cli, cloud, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100