leftlogic/twitter-proxy

No wifi == explode

remy opened this issue · 0 comments

remy commented

What happened when I turned off the wifi:

/Users/remy/Sites/twitter-proxy/proxy/index.js:114
        if (oaRes.headers) {
                 ^
TypeError: Cannot read property 'headers' of undefined
    at /Users/remy/Sites/twitter-proxy/proxy/index.js:114:18
    at ClientRequest.<anonymous> (/Users/remy/Sites/twitter-proxy/node_modules/oauth/lib/oauth.js:397:7)
    at ClientRequest.EventEmitter.emit (events.js:95:17)
    at CleartextStream.socketErrorListener (http.js:1548:9)
    at CleartextStream.EventEmitter.emit (events.js:95:17)
    at Socket.onerror (tls.js:1432:17)
    at Socket.EventEmitter.emit (events.js:117:20)
    at net.js:830:16
    at process._tickCallback (node.js:415:13)