What is the name of the domain?
localhost
What is the issue you’re encountering
I cannot start my functions project using wrangler
What steps have you taken to resolve the issue?
I am attempting to work on a functions project using wrangler. This issue happens with a brand new project.
What are the steps to reproduce the issue?
- Start the server using
npm run dev
- I get the following output
elainep@elaine-82fn:~/source/api$ npm run dev --log-level=info
> [email protected] dev
> wrangler dev
⛅️ wrangler 3.101.0
--------------------
Your worker has access to the following bindings:
- KV Namespaces:
- KV: f318ab7d389f46369e79a0fa03acd365 (local)
- D1 Databases:
- DB: novoforo-testing (1f8290dd-5533-4e77-afcb-bc4c3fe00b63) (local)
- AI:
- Name: AI
[wrangler:inf] Ready on http://localhost:8000
▲ [WARNING] Using Workers AI always accesses your Cloudflare account in order to run AI models, and so will incur usage charges even in local development.
⎔ Starting local server...
╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
│ [b] open a browser, [d] open devtools, [l] turn off local mode, [c] clear console, [x] to exit │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
- Visit
http://localhost:8000/
(I changed the port to 8000 as port 8080 is bound by another application on my machine) - The server does not respond to any requests
- Notably it seems to be stuck on starting local server
This behavior is inconsistent with the workers API. I can run npm run deploy
and run my functions without issue so this is an issue with wrangler or workerd and not with my code.