-
Notifications
You must be signed in to change notification settings - Fork 741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 BUG: Pages never connects to external workers in local development #7322
Comments
I'm having the same issue on 3.90.0 using NextJS using wrangler on 3.65 works for me, but I'm using workflows on some of the workers, which are not supported on that version |
Seems to be working on 3.87.0 |
Thanks for the reports! #7081 in 3.88.8 might've caused this :/ Can you add |
It worked! I tested running It also works by setting However, it still doesn't work when I use the standard Remember that this problem also happens with the Next framework, so I imagine this is happening for all other fullstack frameworks that Wrangler supports. |
@emily-shen I have the same issue (with SvelteKit app as the Pages caller). x-registry=false on both caller and callee dev invocations addressed the issue, however strangely it only connects if you start the callee worker after the caller pages app. Edit: I realise I said the same thing as samuel above... i.e. removing -x-registry=false on caller's |
cc @penalosa @andyjessop :( |
Which Cloudflare product(s) does this pertain to?
C3 (npm create cloudflare), Pages, Wrangler
What version(s) of the tool(s) are you using?
3.88.0 [Wrangler]
What version of Node are you using?
22.9.0
What operating system and version are you using?
Windows 11, Linux Ubuntu WSL
Describe the Bug
Observed Behavior
After configuring and starting a connection from an ES module worker to a page, the page, which was run with
npx wrangler pages dev
, never connects to the worker, which is also running in another terminal withnpx wrangler dev
.Expected Behavior
It is expected that after running the dev command for the page project and then running the dev command for the worker project, the page project should be able to connect to the worker running locally, as described in the documentation.
Steps to Reproduce
This scenario can be easily tested by creating each of the projects with the command
npm create cloudflare@latest
.Setup Worker Project
npm create cloudflare@latest -- worker-a
npm run dev
Setup Page Project
npm create cloudflare@latest -- pages-nuxt
npx wrangler pages dev --service WORKER_A=worker-a
After running both projects in development mode, regardless of the order in which they were started, the output in the pages project will be:
Indicating that the page project did not connect to the worker-a.
I reviewed the documentation, repeated this process on Linux, tested switching from NUXT to NEXT, and had no success. Therefore, I am reporting this issue as a bug.
Note
This issue might be related to another request
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response
The text was updated successfully, but these errors were encountered: