You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While outputting NET 33028: _read, disconnect from the network and reconnect after a few seconds. It will be found that the program is still stuck there, and has not been executed downward, and no error has been reported.
NET 33028: pipe false null
NET 33028: connect: find host nodejs.org
NET 33028: connect: dns options { family: undefined, hints: 1024 }
NET 33028: _read
NET 33028: _read wait for connection
NET 33028: afterConnect
NET 33028: _read
NET 33028: Socket._handle.readStart
NET 33028: _read
NET 33028: _read
NET 33028: _read
NET 33028: _read
01:49:42 [0] start
NET 63846: pipe false null
NET 63846: connect: find host nodejs.org
NET 63846: connect: dns options { family: undefined, hints: 1024 }
NET 63846: _read
NET 63846: _read wait for connection
NET 63846: afterConnect
NET 63846: _read
NET 63846: Socket._handle.readStart
NET 63846: _onTimeout
NET 63846: destroy
NET 63846: close
NET 63846: close handle
NET 63846: emit close
01:49:53 [0] toFile failed! Error: Http request timeout!
at ClientRequest.<anonymous> (file:///Users/binsee/CodeWork/file-box/src/misc.ts:141:19)
at Object.onceWrapper (node:events:627:28)
at ClientRequest.emit (node:events:513:28)
at ClientRequest.emit (node:domain:489:12)
at TLSSocket.emitRequestTimeout (node:_http_client:839:9)
at Object.onceWrapper (node:events:627:28)
at TLSSocket.emit (node:events:525:35)
at TLSSocket.emit (node:domain:489:12)
at TLSSocket.Socket._onTimeout (node:net:550:8)
at listOnTimeout (node:internal/timers:559:17)
testFileBox error: Error: Http request timeout!
at ClientRequest.<anonymous> (file:///Users/binsee/CodeWork/file-box/src/misc.ts:141:19)
at Object.onceWrapper (node:events:627:28)
at ClientRequest.emit (node:events:513:28)
at ClientRequest.emit (node:domain:489:12)
at TLSSocket.emitRequestTimeout (node:_http_client:839:9)
at Object.onceWrapper (node:events:627:28)
at TLSSocket.emit (node:events:525:35)
at TLSSocket.emit (node:domain:489:12)
at TLSSocket.Socket._onTimeout (node:net:550:8)
at listOnTimeout (node:internal/timers:559:17)
log 2
01:50:23 [0] start
NET 63953: pipe false null
NET 63953: connect: find host nodejs.org
NET 63953: connect: dns options { family: undefined, hints: 1024 }
NET 63953: _read
NET 63953: _read wait for connection
NET 63953: afterConnect
NET 63953: _read
NET 63953: Socket._handle.readStart
NET 63953: _read
NET 63953: _read
NET 63953: _read
NET 63953: _read
NET 63953: _read
NET 63953: _read
NET 63953: _read
NET 63953: _read
NET 63953: _onTimeout
NET 63953: destroy
NET 63953: close
NET 63953: close handle
NET 63953: emit close
01:50:30 [0] toFile failed! Error: Http request timeout!
at ClientRequest.<anonymous> (file:///Users/binsee/CodeWork/file-box/src/misc.ts:141:19)
at Object.onceWrapper (node:events:627:28)
at ClientRequest.emit (node:events:513:28)
at ClientRequest.emit (node:domain:489:12)
at TLSSocket.emitRequestTimeout (node:_http_client:839:9)
at Object.onceWrapper (node:events:627:28)
at TLSSocket.emit (node:events:525:35)
at TLSSocket.emit (node:domain:489:12)
at TLSSocket.Socket._onTimeout (node:net:550:8)
at listOnTimeout (node:internal/timers:559:17)
testFileBox error: Error: Http request timeout!
at ClientRequest.<anonymous> (file:///Users/binsee/CodeWork/file-box/src/misc.ts:141:19)
at Object.onceWrapper (node:events:627:28)
at ClientRequest.emit (node:events:513:28)
at ClientRequest.emit (node:domain:489:12)
at TLSSocket.emitRequestTimeout (node:_http_client:839:9)
at Object.onceWrapper (node:events:627:28)
at TLSSocket.emit (node:events:525:35)
at TLSSocket.emit (node:domain:489:12)
at TLSSocket.Socket._onTimeout (node:net:550:8)
at listOnTimeout (node:internal/timers:559:17)
The text was updated successfully, but these errors were encountered:
We need a unit test to reproduce it automatically instead of manually.
BTW: It seems the issue is triggered by the Big CDN, which I believe the Big CDN itself is not reliable enough. My suggestion would be also considering to change your CDN service as well.
When filebox saves files from url, if the network fails, the program will be stuck and not return.
Test code
Test step
Run:
NODE_DEBUG=net NODE_OPTIONS="--no-warnings --loader=ts-node/esm" node src/test.ts
While outputting
NET 33028: _read
, disconnect from the network and reconnect after a few seconds. It will be found that the program is still stuck there, and has not been executed downward, and no error has been reported.After fixed
Fixed by #81
The text was updated successfully, but these errors were encountered: