nodejitsu/jitsu — Issue #169: [flatiron] `jitsu login` with three failed login attempts crashes
Author: jesusabdullah
Created: 2012-02-17 01:43:41+00:00
State: open

```
% jitsu login
info: Welcome to Nodejitsu
info: It worked if it ends with Nodejitsu ok
info: Executing command login
prompt: username: jhizzle
prompt: password:
error: Unable to Authenticate as jhizzle
error: Nodejitsu Error (401): Not Authorized
prompt: username: jhizzle
prompt: password:
error: Unable to Authenticate as jhizzle
error: Nodejitsu Error (401): Not Authorized
prompt: username: jhizzle
prompt: password:
error: Unable to Authenticate as jhizzle
error: Nodejitsu Error (401): Not Authorized
error: Three failed login attempts
info: Would you like to reset your password?
{
"process": {
"pid": 27200,
"uid": 1000,
"gid": 1000,
"cwd": "/home/josh/Downloads",
"execPath": "/usr/local/bin/node",
"version": "v0.6.10",
"argv": [
"node",
"/usr/local/bin/jitsu",
"login"
],
"memoryUsage": {
"rss": 35086336,
"heapTotal": 27896064,
"heapUsed": 16929824
}
},
"os": {
"loadavg": [
0.00830078125,
0.08642578125,
0.08984375
],
"uptime": 512094.523201789
},
"trace": [
{
"column": 29,
"file": "/home/josh/dev/nodejitsu/jitsu/node_modules/flatiron-cli-users/lib/commands.js",
"function": null,
"line": 236,
"method": null,
"native": false
},
{
"column": 16,
"file": "/home/josh/dev/nodejitsu/jitsu/node_modules/flatiron-cli-users/lib/flatiron-cli-users.js",
"function": null,
"line": 86,
"method": null,
"native": false
},
{
"column": 14,
"file": "/home/josh/dev/nodejitsu/jitsu/node_modules/nodejitsu-api/lib/client/client.js",
"function": "Request._callback",
"line": 96,
"method": "_callback",
"native": false
},
{
"column": 22,
"file": "/home/josh/dev/nodejitsu/jitsu/node_modules/nodejitsu-api/node_modules/request/main.js",
"function": "Request.callback",
"line": 104,
"method": "callback",
"native": false
},
{
"column": 18,
"file": "/home/josh/dev/nodejitsu/jitsu/node_modules/nodejitsu-api/node_modules/request/main.js",
"function": "",
"line": 458,
"method": null,
"native": false
},
{
"column": 17,
"file": "events.js",
"function": "Request.emit",
"line": 67,
"method": "emit",
"native": false
},
{
"column": 16,
"file": "/home/josh/dev/nodejitsu/jitsu/node_modules/nodejitsu-api/node_modules/request/main.js",
"function": "",
"line": 423,
"method": null,
"native": false
},
{
"column": 20,
"file": "events.js",
"function": "IncomingMessage.emit",
"line": 88,
"method": "emit",
"native": false
},
{
"column": 23,
"file": "http.js",
"function": "HTTPParser.onMessageComplete",
"line": 137,
"method": "onMessageComplete",
"native": false
},
{
"column": 24,
"file": "http.js",
"function": "Socket.ondata",
"line": 1147,
"method": "ondata",
"native": false
}
],
"stack": [
"ReferenceError: result is not defined",
" at /home/josh/dev/nodejitsu/jitsu/node_modules/flatiron-cli-users/lib/commands.js:236:29",
" at /home/josh/dev/nodejitsu/jitsu/node_modules/flatiron-cli-users/lib/flatiron-cli-users.js:86:16",
" at Request._callback (/home/josh/dev/nodejitsu/jitsu/node_modules/nodejitsu-api/lib/client/client.js:96:14)",
" at Request.callback (/home/josh/dev/nodejitsu/jitsu/node_modules/nodejitsu-api/node_modules/request/main.js:104:22)",
" at Request. (/home/josh/dev/nodejitsu/jitsu/node_modules/nodejitsu-api/node_modules/request/main.js:458:18)",
" at Request.emit (events.js:67:17)",
" at IncomingMessage. (/home/josh/dev/nodejitsu/jitsu/node_modules/nodejitsu-api/node_modules/request/main.js:423:16)",
" at IncomingMessage.emit (events.js:88:20)",
" at HTTPParser.onMessageComplete (http.js:137:23)",
" at Socket.ondata (http.js:1147:24)"
],
"level": "error",
"message": "uncaughtException"
}
```