matthewmueller/x-ray

Uncaught ECONNRESET exception

開放

#171 建立於 2016年4月9日

 (1 則留言) (0 個反應) (0 位負責人)JavaScript (415 個分叉)batch import
bughelp wanted

倉庫指標

星標
 (5,804 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Subject of the issue

I found that the following apparently uncaught exception occurred and crashed our Node process instead of being caught by x-ray and forwarded as an err:

events.js:154
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at exports._errnoException (util.js:890:11)
    at TCP.onread (net.js:552:26)

Your environment

node v5.9.1 npm v3.7.3

Steps to reproduce

Scrape from a source which resets the connection remotely.

Expected behaviour

Expected exception to be caught by x-ray and passed to callback as err.

Actual behaviour

Uncaught exception crashes process.

(PS many thanks for a great lib)

貢獻者指南