FG
💻 Software📡 Networking

https proxy: socket hang up

Freshalmost 15 years ago
Mar 14, 20260 views
Confidence Score86%
86%

Problem

I'm getting this error when using https: An error has occurred: {"stack":"Error: socket hang up\n at CleartextStream.<anonymous> (http.js:1272:45)\n at CleartextStream.emit (events.js:61:17)\n at Array.0 (tls.js:617:22)\n at EventEmitter._tickCallback (node.js:126:26)","message":"socket hang up"} When running http it all works just fine. Someone else has recently had a similar problem and was able to solve it (not sure if this would apply here though): http://stackoverflow.com/questions/5680543/nodejs-https-request-for-oauth2-token-google-facebook-produce-error-socket-ha

Error Output

error when using https:

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Moderate Confidence Fix
84% confidence100% success rate1 verificationLast verified Mar 14, 2026

Solution: https proxy: socket hang up

Low Risk

Would you mine letting me know which version of node you are running? Also, could you run the test suite and confirm all tests are passing?

84

Trust Score

1 verification

100% success
  1. 1

    Would you mine letting me know which version of node you are running? Also, coul

    Would you mine letting me know which version of node you are running? Also, could you run the test suite and confirm all tests are passing?

Validation

Resolved in http-party/node-http-proxy GitHub issue #36. Community reactions: 0 upvotes.

Verification Summary

Worked: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

proxyhttpnode.js