{"action":"created","issue":{"url":"https://api.github.com/repos/StanfordCosyne/math-intervention-api/issues/3","labels_url":"https://api.github.com/repos/StanfordCosyne/math-intervention-api/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/StanfordCosyne/math-intervention-api/issues/3/comments","events_url":"https://api.github.com/repos/StanfordCosyne/math-intervention-api/issues/3/events","html_url":"https://github.com/StanfordCosyne/math-intervention-api/issues/3","id":130563623,"number":3,"title":"user put request returns 415 unsupported media type","user":{"login":"boomsbloom","id":12222556,"avatar_url":"https://avatars.githubusercontent.com/u/12222556?v=3","gravatar_id":"","url":"https://api.github.com/users/boomsbloom","html_url":"https://github.com/boomsbloom","followers_url":"https://api.github.com/users/boomsbloom/followers","following_url":"https://api.github.com/users/boomsbloom/following{/other_user}","gists_url":"https://api.github.com/users/boomsbloom/gists{/gist_id}","starred_url":"https://api.github.com/users/boomsbloom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boomsbloom/subscriptions","organizations_url":"https://api.github.com/users/boomsbloom/orgs","repos_url":"https://api.github.com/users/boomsbloom/repos","events_url":"https://api.github.com/users/boomsbloom/events{/privacy}","received_events_url":"https://api.github.com/users/boomsbloom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-02-02T03:41:30Z","updated_at":"2016-02-02T05:34:09Z","closed_at":null,"body":"have spent some time on this so I figured it was time to ask given the time constraint. on the train with dead comp and doing writing from memory on my phone so apologies for the formatting.\r\n\r\nuser.py's put function takes a json (it's the get function that doesn't) and creates a new username/password combination, so I'm trying to use it to create a new user with bday/gender in a combined string as username and password. I'm passing the keys 'username', 'password1', and 'password2' (which are checked for compatibility and then password1 is made equal to password) as well as datatype: 'json', contenttype: 'application/json' in the put request. url is pointing to /user/.\r\n\r\nthat all seems right to me - am I missing something?"},"comment":{"url":"https://api.github.com/repos/StanfordCosyne/math-intervention-api/issues/comments/178384943","html_url":"https://github.com/StanfordCosyne/math-intervention-api/issues/3#issuecomment-178384943","issue_url":"https://api.github.com/repos/StanfordCosyne/math-intervention-api/issues/3","id":178384943,"user":{"login":"cbattista","id":241211,"avatar_url":"https://avatars.githubusercontent.com/u/241211?v=3","gravatar_id":"","url":"https://api.github.com/users/cbattista","html_url":"https://github.com/cbattista","followers_url":"https://api.github.com/users/cbattista/followers","following_url":"https://api.github.com/users/cbattista/following{/other_user}","gists_url":"https://api.github.com/users/cbattista/gists{/gist_id}","starred_url":"https://api.github.com/users/cbattista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbattista/subscriptions","organizations_url":"https://api.github.com/users/cbattista/orgs","repos_url":"https://api.github.com/users/cbattista/repos","events_url":"https://api.github.com/users/cbattista/events{/privacy}","received_events_url":"https://api.github.com/users/cbattista/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T05:34:09Z","updated_at":"2016-02-02T05:34:09Z","body":"Gotcha - was looking in common\nOn Feb 1, 2016 8:48 PM, \"Jonathan Nicholas\" <notifications@github.com>\nwrote:\n\n> yeah I did - its in subject.js (it may look old because I haven't touched\n> the logout() function)\n>\n> On Mon, Feb 1, 2016 at 8:40 PM, Christian Battista <\n> notifications@github.com\n> > wrote:\n>\n> > ok, so a 400 means there's some problem with the data you're sending\n> (also\n> > did you commit your changes to common.js login(), it seems like it's\n> still\n> > the old version)\n> >\n> > —\n> > Reply to this email directly or view it on GitHub\n> > <\n> https://github.com/StanfordCosyne/math-intervention-api/issues/3#issuecomment-178370552\n> >\n> > .\n> >\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/StanfordCosyne/math-intervention-api/issues/3#issuecomment-178372705>\n> .\n>\n"}}