Open
Description
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/[email protected]/node_modules/miniflare/dist/src/index.js:10115:57)
at async #assembleAndUpdateConfig (node_modules/.pnpm/[email protected]/node_modules/miniflare/dist/src/index.js:15339:30)
at async Mutex.runWith (node_modules/.pnpm/[email protected]/node_modules/miniflare/dist/src/index.js:1725:16)
at async #waitForReady (node_modules/.pnpm/[email protected]/node_modules/miniflare/dist/src/index.js:15403:5)
at async Miniflare2._getProxyClient (node_modules/.pnpm/[email protected]/node_modules/miniflare/dist/src/index.js:15527:5)
at async Miniflare2.getBindings (node_modules/.pnpm/[email protected]/node_modules/miniflare/dist/src/index.js:15546:25)
at async getPlatformProxy (node_modules/.pnpm/[email protected]_@[email protected]/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:
[email protected]
- Builder:
-
- User Config:
app
,compatibilityDate
,modules
,runtimeConfig
,turnstile
,css
,postcss
,imports
,devtools
,nitro
- Runtime Modules:
[email protected]
,@nuxt/[email protected]
,@nuxtjs/[email protected]
,@pinia/[email protected]
- Build Modules:
-
Metadata
Metadata
Assignees
Labels
No labels