cloudflare / cloudflare/workers-sdk
Invalid manifest: Manifest path must be URI encoded.
- 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?
System:
OS: Windows 11 10.0.26200
CPU: (12) x64 Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz
Memory: 20.42 GB / 31.84 GB
Binaries:
Node: 25.2.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.22 - C:\Users\elibl\AppData\Roaming\npm\yarn.CMD
npm: 11.1.0 - C:\Program Files\nodejs\npm.CMD
### Please provide a link to a minimal reproduction
(Not sure how to do a minimal repro for this)
### Describe the Bug
I'm receiving the following error when running `npx wrangler deploy` to upload some files to my worker:
```
⛅️ wrangler 4.105.0
────────────────────
🌀 Building list of assets...
✨ Read 99159 files from the assets directory C:\xampp\htdocs\memriseforum
🌀 Starting asset upload...
X [ERROR] A request to the Cloudflare API (/accounts/[redacted]/workers/scripts/memriseforum/assets-upload-session) failed.
Invalid manifest: Manifest path must be URI encoded.
Manifest path must be URI encoded.
Manifest path must be URI encoded.: invalid manifest file - check the request details and try
again. [code: 10304]
```
I have a paid Cloudflare Workers plan, and this is my first time trying to upload files to it.
Please let me know if there's any additional info that I can provide that might be helpful :)
### Please provide any relevant error logs
```
--- 2026-06-28T19:36:20.252Z log
📄 Create wrangler.jsonc:
---
--- 2026-06-28T19:36:20.252Z log
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "memriseforum",
"compatibility_date": "2026-06-28",
"observability": {
"enabled": true
},
"assets": {
"directory": "."
},
"compatibility_flags": [
"nodejs_compat"
]
}
---
--- 2026-06-28T19:36:22.025Z debug
Running autoconfig with:
{
"projectPath": "C:\\xampp\\htdocs\\memriseforum",
"framework": {
"id": "static",
"name": "Static"
},
"packageManager": {
"type": "npm",
"npx": "npx",
"dlx": [
"npx"
],
"lockFiles": [
"package-lock.json"
]
},
"workerName": "memriseforum",
"outputDir": ".",
"configured": false,
"isWorkspaceRoot": false
}...
---
```
Contributor guide
Research direction
Start with the `npx wrangler deploy` entry point using the reported Windows project path and assets directory, then trace how the asset manifest is built before the Cloudflare API upload. Done means the same deployment succeeds without the “Manifest path must be URI encoded” error; the payload names no source file or test to target.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- api, cli, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100