【发布时间】:2019-06-21 19:30:48
【问题描述】:
我制作了很多机器人,在我的个人笔记本电脑上托管了一些,在 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'
}
如果有人知道如何阻止这种情况发生,请告诉我。
【问题讨论】:
标签: javascript node.js discord discord.js