职业喷子愤青 發表於 2021-3-29 11:23:00

node.js ECONNRESET error

<h1 id="nodejs-econnreset-error">node.js ECONNRESET error</h1>
<p>ECONNRESET (Connection reset by peer): A connection was forcibly closed by a peer. This normally results from a loss of the connection on the remote socket due to a timeout or reboot. Commonly encountered via the http and net modules.</p>
<p>ECONNRESET(对等方重置连接):对等方强制关闭了连接。这通常是由于超时或重新启动导致远程套接字上的连接丢失而导致的。通常通过http和net模块遇到。</p>
<p>https://nodejs.org/api/errors.html#errors_common_system_errors</p>
<pre><code class="language-md">
Proxy created: [ '/mock/' ]-&gt;http://localhost:9000
proxy error: { Error: socket hang up
    at createHangUpError (_http_client.js:323:15)
    at Socket.socketCloseListener (_http_client.js:364:25)
    at Socket.emit (events.js:203:15)
    at TCP._handle.close (net.js:606:12) code: 'ECONNRESET' }
Error occurred while trying to proxy request /api/xyz from 10.1.159.45:8088 to http://app.xgqfrm.xyz (ECONNRESET) (https://nodejs.org/api/errors.html#errors_common_system_errors)

</code></pre>
<h2 id="refs">refs</h2>
<hr>
<div>

</div>
<hr>
<blockquote style="display: flex; flex-flow: column; align-items: center; justify-content: center; text-align: center; border: none">
<h3><strong><span style="font-size: 16pt; color: rgba(0, 255, 0, 1)">©xgqfrms 2012-<span data-uid="copyright-aside">2020</span></span></strong>
<p><span style="font-size: 18pt; color: rgba(0, 255, 0, 1)"><strong>www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!</strong></span></p>
<p><span style="font-size: 18pt; color: rgba(0, 255, 0, 1)"><strong>原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!</strong></span></p>
</h3></blockquote>
<hr>


</div>
<div id="MySignature" role="contentinfo">
    <div style="display: flex; flex-flow: column nowrap; align-items: center; justify-content: center;">
<p>本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/14591631.html</p>
<p style="color: red; font-size: 23px; margin-top: 5px; margin-botom: 5px;">未经授权禁止转载,违者必究!</P>
</div>
<hr/><br><br>
来源:https://www.cnblogs.com/xgqfrms/p/14591631.html
頁: [1]
查看完整版本: node.js ECONNRESET error