Wrangler 2 use with Worker. Connection abruptly disconnected

I upgraded to Wrangler 2 and in development, my connection errors out. Heres the message I’m getting in terminal.

            throw ex;

Error: read ECONNRESET
    at TLSWrap.onStreamRead (node:internal/stream_base_commons:220:20)
Emitted 'error' event on ClientHttp2Stream instance at:
    at emitErrorNT (node:internal/streams/destroy:164:8)
    at emitErrorCloseNT (node:internal/streams/destroy:129:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -54,
  code: 'ECONNRESET',
  syscall: 'read'

Node.js v17.1.0

The Worker behaves fine when I initially run npx wrangler dev but when I hit an endpoint on that Worker after it is up I get this error.

Thanks for any help.

1 Like