Skip to content

ERROR Failed to initialize wrangler bindings proxy spawn EBADF #55

Open
@justin-schroeder

Description

@justin-schroeder

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions