cloudflare / cloudflare/workers-sdk

Wrangler pages deploy errors but exits without error code (status 0)

Open
#14,584 4 comments 1 reaction 0 assignees View on GitHub
package:wrangler
Dominant language
TypeScript
Stars
4.5k
Forks
1.5k
Avg merge
3d 8h
Merged PRs (30d)
186

Description

### What versions & operating system are you using?

Ubuntu 24
Tested on Wrangler 4.69.0 and 4.107.0

### Please provide a link to a minimal reproduction

-

### Describe the Bug

```
2026-07-07 09:41:31.791080031 +0200 CEST [postdeploy-7164] [deploy-frontends] Running wrangler pages deploy for project=cozy-up-app-staging branch= dist=app/dist
2026-07-07 09:41:35.231119527 +0200 CEST [postdeploy-7164] ⛅️ wrangler 4.107.0
2026-07-07 09:41:35.231127133 +0200 CEST [postdeploy-7164] ────────────────────
2026-07-07 09:41:40.605646924 +0200 CEST [postdeploy-7164] Uploading... (0/86)
2026-07-07 09:41:41.012759629 +0200 CEST [postdeploy-7164] [deploy-frontends] Wrangler exited with status 0
```

I've checked my credentials and everything, all is configured on my side. There is no additional output.
Here is the issue is the "Wrangler exited with status 0", making it look like everything was fine, and making CI pipeline pass.

### Please provide any relevant error logs

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `wrangler pages deploy` on Ubuntu 24 with Wrangler 4.69.0 or 4.107.0, using the reported deployment scenario, and inspect the command's error and exit-status handling. Done means a failed Pages deployment emits an error and exits nonzero so CI does not pass incorrectly.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.