星五博客

node:events:504故障处理

node:events:504
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:217:20)
Emitted 'error' event on Socket instance at:
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -4077,
  code: 'ECONNRESET',
  syscall: 'read'
}

出错原因是,项目使用了代理,代理打开了ws(websocket),又连不上,所以造成了node.js的崩溃,保证能连上,或者关闭ws就可以了。

Vue