I really, truly, wish I could reproduce this for you, but I figured it would at least help to drop this issue here as a marker. This issue seems to pop up entirely randomly.
Here is the stack trace:
ERROR Failed to initialize wrangler bindings proxy spawn EBADF
at ChildProcess.spawn (node:internal/child_process:421:11)
at Object.spawn (node:child_process:761:9)
at Runtime.updateConfig (node_modules/.pnpm/miniflare@3.20250310.0/node_modules/miniflare/dist/src/index.js:10115:57)
at async #assembleAndUpdateConfig (node_modules/.pnpm/miniflare@3.20250310.0/node_modules/miniflare/dist/src/index.js:15339:30)
at async Mutex.runWith (node_modules/.pnpm/miniflare@3.20250310.0/node_modules/miniflare/dist/src/index.js:1725:16)
at async #waitForReady (node_modules/.pnpm/miniflare@3.20250310.0/node_modules/miniflare/dist/src/index.js:15403:5)
at async Miniflare2._getProxyClient (node_modules/.pnpm/miniflare@3.20250310.0/node_modules/miniflare/dist/src/index.js:15527:5)
at async Miniflare2.getBindings (node_modules/.pnpm/miniflare@3.20250310.0/node_modules/miniflare/dist/src/index.js:15546:25)
at async getPlatformProxy (node_modules/.pnpm/wrangler@3.114.1_@cloudflare+workers-types@4.20250311.0/node_modules/wrangler/wrangler-dist/cli.js:158007:20)
at async _getPlatformProxy (.nuxt/dev/index.mjs:5326:17)
This may be a miniflare issue too, although it doesnt look like that repo gets a lot of love. The specific spawn that is being attempted is workerd with the following arguments:
[
'serve',
'--binary',
'--experimental',
'--socket-addr=entry=127.0.0.1:0',
'--external-addr=loopback=127.0.0.1:64989',
'--control-fd=3',
'-'
]
I cannot reliably get this to go away once it starts. I pnpm install, delete node modules, nuxi cleanup — none of that works, but then all of a sudden it does start working. I have no idea to be honest.
Environment
- Operating System:
Darwin
- Node Version:
v20.11.0
- Nuxt Version:
3.16.0
- CLI Version:
3.22.5
- Nitro Version:
2.11.6
- Package Manager:
pnpm@8.15.4
- Builder:
-
- User Config:
app, compatibilityDate, modules, runtimeConfig, turnstile, css, postcss, imports, devtools, nitro
- Runtime Modules:
nitro-cloudflare-dev@0.2.2, @nuxt/icon@1.10.3, @nuxtjs/turnstile@0.9.15, @pinia/nuxt@0.9.0
- Build Modules:
-
I really, truly, wish I could reproduce this for you, but I figured it would at least help to drop this issue here as a marker. This issue seems to pop up entirely randomly.
Here is the stack trace:
This may be a miniflare issue too, although it doesnt look like that repo gets a lot of love. The specific spawn that is being attempted is
workerdwith the following arguments:I cannot reliably get this to go away once it starts. I pnpm install, delete node modules, nuxi cleanup — none of that works, but then all of a sudden it does start working. I have no idea to be honest.
Environment
Darwinv20.11.03.16.03.22.52.11.6pnpm@8.15.4-app,compatibilityDate,modules,runtimeConfig,turnstile,css,postcss,imports,devtools,nitronitro-cloudflare-dev@0.2.2,@nuxt/icon@1.10.3,@nuxtjs/turnstile@0.9.15,@pinia/nuxt@0.9.0-