Skip to content

Instantly share code, notes, and snippets.

@db0company
Created May 29, 2013 22:04
Show Gist options
  • Save db0company/5674209 to your computer and use it in GitHub Desktop.
Save db0company/5674209 to your computer and use it in GitHub Desktop.
## Get my own authentication tokens
## URL: http://paysdu42.fr:2048/api/v1/tokens
## POST data:
## Content received:
TypeError: Cannot read property 'user' of undefined
at module.exports (/var/www/poney/eipapi/API/controllers/TokenController.js:32:80)
at forEach.LifeRouter.(anonymous function) (/var/www/poney/eipapi/API/wrappers/LifeRouter.js:50:36)
at Function.LifeSecurity.authenticationWrapper (/var/www/poney/eipapi/API/wrappers/LifeSecurity.js:59:16)
at forEach.LifeRouter.(anonymous function) (/var/www/poney/eipapi/API/wrappers/LifeRouter.js:41:41)
at callbacks (/var/www/poney/eipapi/API/node_modules/express/lib/router/index.js:161:37)
at param (/var/www/poney/eipapi/API/node_modules/express/lib/router/index.js:135:11)
at pass (/var/www/poney/eipapi/API/node_modules/express/lib/router/index.js:142:5)
at Router._dispatch (/var/www/poney/eipapi/API/node_modules/express/lib/router/index.js:170:5)
at Object.router (/var/www/poney/eipapi/API/node_modules/express/lib/router/index.js:33:10)
at next (/var/www/poney/eipapi/API/node_modules/express/node_modules/connect/lib/proto.js:199:15)
[Error]
Message: The JSON tree response is not formatted as expected: Line 1, bytes 2-34:
Invalid token 'TypeError: Cannot read property 'u'
Type: CLIENT_InvalidJSON
Code: -18
----> FAILURE
## Get someone else's authentication tokens
## URL: http://paysdu42.fr:2048/api/v1/users/db0/tokens
## POST data:
## Content received:
{
"error": null,
"element": {
"server_size": 0,
"index": 0,
"limit": 10,
"items": []
}
}
## OCaml object generated:
[List]
Total items (server_size): 0
Index: 0
Limit: 10
Items:
Empty list
----> SUCCESS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment