Please check followings before submitting a new issue.
hexo version to check)hexo g and all pass.
meet ECONNRESET randomly:
events.js:298
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:205:27)
Emitted 'error' event on ClientRequest instance at:
at TLSSocket.socketErrorListener (_http_client.js:432:9)
at TLSSocket.emit (events.js:321:20)
at emitErrorNT (internal/streams/destroy.js:84:8)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
errno: -4077,
code: 'ECONNRESET',
syscall: 'read'
}
I don't know, It randomly appears and sometimes works well.
use command hexo g.
Node.js & npm version
hexo: 4.2.0
hexo-cli: 2.0.0
os: Windows_NT 10.0.19041 win32 x64
node: 13.8.0
v8: 7.9.317.25-node.28
uv: 1.34.1
zlib: 1.2.11
brotli: 1.0.7
ares: 1.15.0
modules: 79
nghttp2: 1.40.0
napi: 5
llhttp: 2.0.4
openssl: 1.1.1d
cldr: 36.0
icu: 65.1
tz: 2019c
unicode: 12.1
I'm living in China mainland, maybe there were something blocked by GFW which is necessary by hexo.
If anyone could teach me some skills to research network problem, I might be able to provide more infomations.
I met this.
➜ hexo server
INFO Start processing
INFO Hexo is running at http://localhost:4000/. Press Ctrl+C to stop.
events.js:173
throw er; // Unhandled 'error' event
^
Error: connect ECONNREFUSED 13.250.168.23:443
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1083:14)
Emitted 'error' event at:
at TLSSocket.socketErrorListener (_http_client.js:397:9)
at TLSSocket.emit (events.js:197:13)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at processTicksAndRejections (internal/process/next_tick.js:76:17)
Network request capture:

I met this too.
events.js:288
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:205:27)
Emitted 'error' event on ClientRequest instance at:
at TLSSocket.socketErrorListener (_http_client.js:426:9)
at TLSSocket.emit (events.js:311:20)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
errno: 'ECONNRESET',
code: 'ECONNRESET',
syscall: 'read'
}
Are you using theme NexT with reminder option enabled in _config.yml?
Are you using theme NexT with
reminderoption enabled in_config.yml?
I have the same problem of
events.js:288
throw er; // Unhandled 'error' event
^
and i am using the reminder option,so how to solve this question?
got it,thanks
thanks!
Most helpful comment
Fixed in https://github.com/theme-next/hexo-theme-next/commit/9b543ddacf21a59f2daa52b0ae64075aed62fca2