小编Gam*_*eif的帖子

如何停止发生错误“读取ECONNRESET”

我做了很多机器人,在我的个人笔记本电脑上托管了一些机器人,在Heroku上托管了一些机器人,但是在这两种机器人中,我都收到了终止node.js的错误,因此我经常bot.on('error', console.error)查看该错误,结果如下:

type: 'error', message: 'read ECONNRESET', error: {
  Error: read ECONNRESET at TLSWrap.onStreamRead(internal / stream_base_commons.js: 111: 27) errno: 'ECONNRESET',
  code: 'ECONNRESET',
  syscall: 'read'
}
Run Code Online (Sandbox Code Playgroud)

如果有人知道如何阻止这种情况发生,请告诉我。

javascript node.js discord discord.js

1
推荐指数
1
解决办法
9014
查看次数

标签 统计

discord ×1

discord.js ×1

javascript ×1

node.js ×1