在与 AZURE 服务器建立连接时,在 TCP.onStreamRead 错误处读取 ECONNRESET
Getting read ECONNRESET at TCP.onStreamRead error, while making connection with AZURE server
大家好,我正在学习 Nodejs。我正在将文件上传到 AZURE 服务器,但每隔 3-4 分钟就会出现以下错误。有人对此有解决方案吗?
错误是->
Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:111:27)
Emitted 'error' event at:
at Connection._handleProtocolError
(/Data/core/node_modules/mysql/lib/Connection.js:425:8)
at Protocol.emit (events.js:198:13)
at Protocol.EventEmitter.emit (domain.js:448:20)
at Protocol._delegateError
(/Data/core/node_modules/mysql/lib/protocol/Protocol.js:390:10)
at Protocol.handleNetworkError
(/Data/core/node_modules/mysql/lib/protocol/Protocol.js:363:10)
at Connection._handleNetworkError
(/Data/core/node_modules/mysql/lib/Connection.js:420:18)
at Socket.emit (events.js:198:13)
at Socket.EventEmitter.emit (domain.js:448:20)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
"ECONNRESET
" 意味着 TCP 对话的另一端突然关闭了它的连接端。这很可能是由于一个或多个应用程序协议错误。您可以查看 API 服务器日志,看看它是否抱怨什么。
很高兴@RakeshSaini 您发现了 MySQL 中的连接等待限制中的错误并修复了该问题。
大家好,我正在学习 Nodejs。我正在将文件上传到 AZURE 服务器,但每隔 3-4 分钟就会出现以下错误。有人对此有解决方案吗?
错误是->
Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:111:27)
Emitted 'error' event at:
at Connection._handleProtocolError
(/Data/core/node_modules/mysql/lib/Connection.js:425:8)
at Protocol.emit (events.js:198:13)
at Protocol.EventEmitter.emit (domain.js:448:20)
at Protocol._delegateError
(/Data/core/node_modules/mysql/lib/protocol/Protocol.js:390:10)
at Protocol.handleNetworkError
(/Data/core/node_modules/mysql/lib/protocol/Protocol.js:363:10)
at Connection._handleNetworkError
(/Data/core/node_modules/mysql/lib/Connection.js:420:18)
at Socket.emit (events.js:198:13)
at Socket.EventEmitter.emit (domain.js:448:20)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
"ECONNRESET
" 意味着 TCP 对话的另一端突然关闭了它的连接端。这很可能是由于一个或多个应用程序协议错误。您可以查看 API 服务器日志,看看它是否抱怨什么。
很高兴@RakeshSaini 您发现了 MySQL 中的连接等待限制中的错误并修复了该问题。