wrangler is not working properly due to EOF error.
Create-Cloudflare works and the project is created, but when I hit the
-
-
bun run dev
(wrangler dev
) command I get an EOF error.
- error(console)
:
$ wrangler dev
⛅️ wrangler 3.109.2
--------------------
No bindings found.
╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
│ [b] open a browser, [d] open devtools, [l] turn off local mode, [c] clear console, [x] to exit │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
EOF: end of file, write
syscall: "write",
errno: -136,
✘ [ERROR] The Workers runtime failed to start. There is likely additional logging output above.
If you think this is a bug then please create an issue at https://github.com/cloudflare/workers-sdk/issues/new/choose
╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
│ [b] open a browser, [d] open devtools, [l] turn off lo🪵 Logs were written to "C:\Users\puton\AppData\Roaming\xdg.config\.wrangler\logs\wrangler-2025-02-19_12-28-51_764.log"
╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
│ [b] open a browser, [d] open devtools, [l] turn off local mode, [c] clear console, [x] to exit │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
error: script "dev" exited with code 1
$ wrangler dev
⛅️ wrangler 3.109.2
--------------------
No bindings found.
╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
│ [b] open a browser, [d] open devtools, [l] turn off local mode, [c] clear console, [x] to exit │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
EOF: end of file, write
syscall: "write",
errno: -136,
✘ [ERROR] The Workers runtime failed to start. There is likely additional logging output above.
If you think this is a bug then please create an issue at https://github.com/cloudflare/workers-sdk/issues/new/choose
╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
│ [b] open a browser, [d] open devtools, [l] turn off lo🪵 Logs were written to "C:\Users\puton\AppData\Roaming\xdg.config\.wrangler\logs\wrangler-2025-02-19_12-28-51_764.log"
╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
│ [b] open a browser, [d] open devtools, [l] turn off local mode, [c] clear console, [x] to exit │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
error: script "dev" exited with code 1
bun -v
: 1.2.2
- wrangler -v
: 3.109.2
- wrangler.jsonc
:
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "test",
"main": "src/index.ts",
"compatibility_date": "2025-02-14",
"observability": {
"enabled": true
}
}
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "test",
"main": "src/index.ts",
"compatibility_date": "2025-02-14",
"observability": {
"enabled": true
}
}
src/index.ts
:
export default {
async fetch(request, env, ctx): Promise<Response> {
return new Response('Hello World!');
},
} satisfies ExportedHandler<Env>;
export default {
async fetch(request, env, ctx): Promise<Response> {
return new Response('Hello World!');
},
} satisfies ExportedHandler<Env>;
2 Replies
-
error log
I also get an WOF error when I add the
--local
option to wrangler d1. --remote
works.
- winver
: 22H2 ( OS Build 19045.5487)