Posted on September 9, 2019 at 2:46 pm
Users have reported this ECONNRESET error with request.get():
Error: { Error: socket hang up at TLSSocket.onHangUp (_tls_wrap.js:1137:19) at Object.onceWrapper (events.js:313:30) at emitNone (events.js:111:20) at TLSSocket.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1064:12) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) code: 'ECONNRESET', path: null, host: 'google.com', port: 443 } |
It seems to happen when you make too many concurrent GET requests.
I noticed it may happen only when doing GET/POST requests on HTTPS (SSL) websites.
Looks like it may be fixed with this method:
https://github.com/nodejs/node/issues/9845#issuecomment-264032107
“Adding ciphers: ‘DES-CBC3-SHA’ to the request options seems to fix it in my case.”
Other possible solutions that may work:
https://github.com/request/request/issues/2047#issuecomment-275304197
“a properly formed URL based on one of my algorithms, was actually malformed”
https://github.com/request/request/issues/2047#issuecomment-339734877
“use environment variable NO_PROXY=”yourcompany.com” as well as strictSSL:false”
https://github.com/request/request/issues/2047#issuecomment-338998143
“Add process.env.NODE_TLS_REJECT_UNAUTHORIZED = “0”;”
Other Posts
- Route OpenVPN Connections Through Floating IP
- How to Configure a Floating IP in a VPS (Hetzner)
- Set OpenVPN to Listed on a Specific IP Address
- Bash Trim Leading and Trailing Whitespace from a String
- Bash Get Name of Ethernet Network Interface
- VPN Providers with Dedicated Static IP Address
- OpenVPN Iptables Rules
- WireGuard VPN Iptables Rules
Updated Posts
- AMD Chipsets & Graphics Card Drivers for Windows 7, 8, 10
- AMD Radeon 7400 Drivers for Windows 10
- How to pass custom command-line parameters in InnoSetup
- Add Desktop shortcut for all Windows PC users
- Programmatically create desktop icon with InnoSetup
- GeneratePress - a Lightweight WordPress Theme 2021
- InnoSetup disable DesktopIcon via command-line
- Use cURL to authenticate with JWT Bearer tokens