bnoguchi/everyauth — Issue #185: Low priority: not graceful exception management in oauth.js (everyauth 0.2.30)
Author: giacecco
Created: 2012-02-22 07:25:31+00:00
State: open

I do most of my development on a laptop while travelling on trains and connectivity to the internet can be bad. Of course this won't happen to a server running everyauth in a nice datacentre. Anyway, if you are interested, I had the error below trying to authenticate via Twitter, probably because the connection failing at some stage of OAuth.

```
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Cannot call method 'indexOf' of undefined
at /Users/giacecco/Documents/Projects/jour.no/faves/eclipse-workspace/journo-faves/node_modules/everyauth/lib/modules/oauth.js:104:30
at /Users/giacecco/Documents/Projects/jour.no/faves/eclipse-workspace/journo-faves/node_modules/everyauth/node_modules/oauth/lib/oauth.js:510:17
at ClientRequest. (/Users/giacecco/Documents/Projects/jour.no/faves/eclipse-workspace/journo-faves/node_modules/everyauth/node_modules/oauth/lib/oauth.js:389:7)
at ClientRequest.emit (events.js:67:17)
at CleartextStream. (http.js:1210:13)
at CleartextStream.emit (events.js:88:20)
at Array.0 (tls.js:792:22)
at EventEmitter._tickCallback (node.js:192:40)
```