我正在开发 nodejs oauth2 npm 模块:https ://github.com/lexer/node-oauth2
当我尝试向 google 或 facebook 发出 https 请求时,我得到:
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)
您可以在我制作的 express 示例应用程序中重现错误:
https://github.com/lexer/node-oauth2/tree/master/examples/express