All of a sudden on my machine `npx

All of a sudden on my machine npx wrangler dev fails to handle any requests. When I enable debug logs I see a constant stream of exceptions:
workerd/io/worker.c++:2103: info: uncaught exception; source = Uncaught (in promise); stack =
Error: Network connection lost.
workerd/io/io-context.c++:368: info: uncaught exception; exception =
workerd/jsg/_virtual_includes/iterator/workerd/jsg/value.h:1479: disconnected: jsg.Error: Network
connection lost.
workerd/io/worker.c++:2103: info: uncaught exception; source = Uncaught (in promise); stack =
Error: Network connection lost.
workerd/io/io-context.c++:368: info: uncaught exception; exception =
workerd/jsg/_virtual_includes/iterator/workerd/jsg/value.h:1479: disconnected: jsg.Error: Network
connection lost.
anyone seen something like this?
1 Reply
fortytwo
fortytwoOP4w ago
I tried again with a brand new hello-world worker project and see the same issue. I tried another computer of mine though and that worked ok. Tried reinstalling wrangler, rebooting the machine, all sorts of stuff but still see this same problem. Ok, I ended up fixing this by passing --ip 127.0.0.1 when running npx wrangler dev

Did you find this page helpful?