Dienstag, 22. April 2014

NodeJs socket hang up


        throw er; // Unhandled 'error' event
Error: socket hang up
    at createHangUpError (http.js:1472:15)
    at Socket.socketOnEnd [as onend] (http.js:1568:23)
    at Socket.g (events.js:180:16)
    at Socket.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:920:16
    at process._tickCallback (node.js:415:13)

This error happens even with the latest nodejs version if you're using a ssl certificate whose domain cannot be resolved by your dns.

Let's say your SSL certificate is issued to www.your-domain.com make sure a dns lookup can resolve this domain.

Simply add your domain to your /etc/hosts file www.your-domain.com

If your using a wildcard certificate *.your-domain.com you can simply add this domain to your /etc/hosts file: *.your-domain.com

Keine Kommentare:

Kommentar veröffentlichen