Я разрабатываю модуль nodejs oauth2 npm: https://github.com/lexer/node-oauth2
Когда я пытаюсь сделать https запрос в Google или Facebook, я получаю:
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: socket hang up
at Socket.<anonymous> (http.js:1272:45)
at Socket.emit (events.js:64:17)
at Array.<anonymous> (net.js:825:12)
at EventEmitter._tickCallback (node.js:126:26)
Вы можете воспроизвести ошибку в экспрессобразец приложения, которое я сделал:
https://github.com/lexer/node-oauth2/tree/master/examples/express