-
Notifications
You must be signed in to change notification settings - Fork 688
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: ERR_IPC_CHANNEL_CLOSED when saving Pages Function with local D1 binding #4017
Comments
I'm getting the same error via the following command:
For context, I'm running a Nuxt app via Pages proxy. |
even without the d1 binding I get the issue in wrangler 3.9. I have a Remix app and if I make any change that affects the server (so update the pages function), it will cause the error. That's with a brand new app, no binding, nothing. Reverting to 3.7 fixes the issue (I think 3.8 was fine too, but didn't double check). If I upgrade back to 3.9, issue returns. |
+1 to having this issue with no bindings. Our command is
and we get a crash upon saving any file. Reverting to Wrangler v3.8.0 works. |
I updated EDIT: Never mind, it crashes again when I change something in the functions. However, I can confirm that reverting back to |
Can confirm same behaviour under 3.10.0. From what I've seen, reverting back to 3.8.0 seems to need something like |
Can confirm. Same issue for me as well ➜ ai-cf git:(main) ✗ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
➜ ai-cf git:(main) ✗ node -v
v20.6.1 |
seems related to this issue here #4008 ... there's a workaround mentioned there, but the straightforward thing seems to downgrade back down to Wrangler 3.8. |
Which Cloudflare product(s) does this pertain to?
D1, Pages, Wrangler core
What version(s) of the tool(s) are you using?
3.9.0 [Wrangler]
What version of Node are you using?
20.7.0
What operating system are you using?
Mac
Describe the Bug
When running
pnpm wrangler pages dev ./public
via wrangler 3.9.0, changes to a Pages Function work fine if there is no local D1 binding.Once a local D1 binding is created via
pnpm wrangler pages dev ./public --d1=DB
(as per https://developers.cloudflare.com/pages/platform/functions/bindings/#d1-databases), changes to the Pages Function cause wrangler to crash.Before restarting wrangler, I need to
lsof -I :8788
andkill -9
the process, otherwise I get✘ [ERROR] MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above.
Please provide a link to a minimal reproduction
https://github.com/Hinte-land/repro-wrangler-3.9.0-pages-d1-local
Please provide any relevant error logs
The text was updated successfully, but these errors were encountered: