You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ERROR Failed to initialize wrangler bindings proxy spawn EBADF #55
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:
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.
Update: for folks struggling with this, it happens when sub-directories in the .wrangler directory fill up with a lot of files - this can be especially true for kv values since each creates its own file on the filesystem. MacOS has a limit on how many open handles it can take at a time and eventually it runs out and you'll get this error. The only solution, afaik, is to purge those kv files occasionally.
Reacted by Pooya Parsa, David, Kaito Queiroz and Arash Ari Sheyda
@justin-schroeder solution used to work for me but it stopped today... I found out adding this to nuxt.conig.ts works:
typescript: {
// Run type checking separately or during builds to avoid exhausting macOS spawn-compatible file descriptors in development.
typeCheck: 'build' // used to be `true`,
}
Activity
justin-schroeder commentedon Apr 25, 2025
Update: for folks struggling with this, it happens when sub-directories in the .wrangler directory fill up with a lot of files - this can be especially true for kv values since each creates its own file on the filesystem. MacOS has a limit on how many open handles it can take at a time and eventually it runs out and you'll get this error. The only solution, afaik, is to purge those kv files occasionally.
miantiao-me commentedon Aug 10, 2025
I encountered this issue as well. I restored functionality after using
pnpx nuxi cleanup.adamdehaven commentedon Jul 18, 2026
@pi0 any chance you have ideas here? This is constantly an issue 😢
arashsheyda commentedon Jul 22, 2026
@justin-schroeder solution used to work for me but it stopped today... I found out adding this to
nuxt.conig.tsworks: