cloudflare / cloudflare/workers-sdk
"You need a workers.dev subdomain in order to proceed"
- Dominant language
- TypeScript
- Stars
- 4.5k
- Forks
- 1.5k
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 186
Description
### Which Cloudflare product(s) does this pertain to?
Wrangler
### What versions & operating system are you using?
wrangler 4.13.0, macOS
### Please provide a link to a minimal reproduction
wrangler init
### Describe the Bug
When I set up my first project using Hello World template in wrangler, it fails with:
> ✘ [ERROR] A request to the Cloudflare API (/accounts/…/workers/scripts/…) failed.
>
> You need a workers.dev subdomain in order to proceed. Please go to the dashboard and open the
> Workers menu. Opening the Workers landing page for the first time will create a workers.dev
> subdomain automatically. [code: 10063]
There are two problems with it:
1. It feels inelegant and unfinished. I shouldn't need to manually navigate somewhere first in order to prevent Wrangler hitting some internal uninitialized state in my Cloudflare account. If some manual setup was really necessary, Wrangler should give me a URL to navigate to (similar to OAuth flow), rather than display it as an error. "Workers landing page" is a company jargon — there isn't any page explicitly called "landing page" in the Dashboard, and there are a lot of various worker-related pages.
2. Wrangler is unable to gracefully retry after such error. It has discarded all my previous setup answers, and I had to initialize the project from scratch again.
### Please provide any relevant error logs
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.