{"action":"opened","issue":{"url":"https://api.github.com/repos/Storj/bridge/issues/139","repository_url":"https://api.github.com/repos/Storj/bridge","labels_url":"https://api.github.com/repos/Storj/bridge/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/Storj/bridge/issues/139/comments","events_url":"https://api.github.com/repos/Storj/bridge/issues/139/events","html_url":"https://github.com/Storj/bridge/issues/139","id":163564245,"number":139,"title":"User endpoint returns internal server error for bad POST","user":{"login":"NutterzUK","id":1153406,"avatar_url":"https://avatars.githubusercontent.com/u/1153406?v=3","gravatar_id":"","url":"https://api.github.com/users/NutterzUK","html_url":"https://github.com/NutterzUK","followers_url":"https://api.github.com/users/NutterzUK/followers","following_url":"https://api.github.com/users/NutterzUK/following{/other_user}","gists_url":"https://api.github.com/users/NutterzUK/gists{/gist_id}","starred_url":"https://api.github.com/users/NutterzUK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NutterzUK/subscriptions","organizations_url":"https://api.github.com/users/NutterzUK/orgs","repos_url":"https://api.github.com/users/NutterzUK/repos","events_url":"https://api.github.com/users/NutterzUK/events{/privacy}","received_events_url":"https://api.github.com/users/NutterzUK/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-03T14:21:43Z","updated_at":"2016-07-03T14:21:43Z","closed_at":null,"body":"### Package Versions\r\n\r\nReplace the values below using the output from `npm list storj-bridge`.\r\n\r\n```\r\nUsing the live API: base url: / api version: 0.9.3\r\nhttps://api.storj.io/users\r\n```\r\n\r\n\r\n### Expected Behaviour\r\n\r\nPlease describe the program's expected behaviour. Include an example of your\r\nusage code in the back ticks below if applicable.\r\n\r\n```\r\nIf the user posts a bad request, e.g a user without a password property, the bridge should respond with a 400 bad request, preferably describing the problem if possible.\r\n```\r\n\r\n### Actual Behaviour\r\n\r\nPlease describe the program's actual behaviour. Please include any stack traces\r\nor log output in the back ticks below.\r\n\r\n\r\nThe server responds with a 500 code and:\r\n```\r\n{\r\n  \"error\": \"Not a string or buffer\"\r\n}\r\n```\r\n\r\n### Steps to Reproduce\r\n\r\nOpen up postman, import the attached postman collection and send the \"bad request\". Or, just send a request to the server with:\r\n{\"email\":\"goo@goo.com\"}\r\n\r\n\r\nThe log from the java client I am working on which will describe the problem:\r\n\r\n1 * Client out-bound request\r\n1 > POST https://api.storj.io/users\r\n1 > Accept: application/json\r\n1 > Content-Type: application/json\r\n{\"email\":\"goo@goo.com\"}\r\n1 * Client in-bound response\r\n1 < 500\r\n1 < Server: nginx/1.10.0\r\n1 < ETag: W/\"22-PKDJ75jnh4cDjNVcKSeBGg\"\r\n1 < Access-Control-Allow-Credentials: true\r\n1 < Connection: keep-alive\r\n1 < Vary: Origin\r\n1 < Content-Length: 34\r\n1 < Date: Sun, 03 Jul 2016 14:20:22 GMT\r\n1 < X-Powered-By: Express\r\n1 < Content-Type: application/json; charset=utf-8\r\n1 < \r\n{\"error\":\"Not a string or buffer\"}"}}
{"actor":{"display_login":"NutterzUK"}}