RequestError: Connection lost - read ECONNRESET while using SQL Server in nodejs
RequestError: Connection lost - read ECONNRESET while using SQL Server in nodejs
我使用三个不同的流程来抓取来自 Facebook 的提要、评论和反应。我的代码在 2 台笔记本电脑上运行良好。但是在第三台笔记本电脑上进行评论抓取过程中,却出现了这个错误。
RequestError: Connection lost - read ECONNRESET
另外两个进程,没有出现这样的错误。
这是我的 config.js 文件
var config = {
dbconfig: {
uid: '****',
pass: '****',
host: '****',
db: '****',
requestTimeout: 999999999,
},
serverPort: 5000,
processInterval: 1000
}
问题出在 Nodejs 版本上。我使用的是 10.16.3 版本,而出现问题的其他笔记本电脑使用的是 12.****。当我们更改 nodejs 版本时它工作正常。
我使用三个不同的流程来抓取来自 Facebook 的提要、评论和反应。我的代码在 2 台笔记本电脑上运行良好。但是在第三台笔记本电脑上进行评论抓取过程中,却出现了这个错误。
RequestError: Connection lost - read ECONNRESET
另外两个进程,没有出现这样的错误。
这是我的 config.js 文件
var config = {
dbconfig: {
uid: '****',
pass: '****',
host: '****',
db: '****',
requestTimeout: 999999999,
},
serverPort: 5000,
processInterval: 1000
}
问题出在 Nodejs 版本上。我使用的是 10.16.3 版本,而出现问题的其他笔记本电脑使用的是 12.****。当我们更改 nodejs 版本时它工作正常。