{"action":"created","issue":{"url":"https://api.github.com/repos/Holdsport/holdsport-api/issues/4","labels_url":"https://api.github.com/repos/Holdsport/holdsport-api/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Holdsport/holdsport-api/issues/4/comments","events_url":"https://api.github.com/repos/Holdsport/holdsport-api/issues/4/events","html_url":"https://github.com/Holdsport/holdsport-api/issues/4","id":123894247,"number":4,"title":"Error code 500 when trying to manipulate user status - version 2","user":{"login":"jeyben","id":291517,"avatar_url":"https://avatars.githubusercontent.com/u/291517?v=3","gravatar_id":"","url":"https://api.github.com/users/jeyben","html_url":"https://github.com/jeyben","followers_url":"https://api.github.com/users/jeyben/followers","following_url":"https://api.github.com/users/jeyben/following{/other_user}","gists_url":"https://api.github.com/users/jeyben/gists{/gist_id}","starred_url":"https://api.github.com/users/jeyben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeyben/subscriptions","organizations_url":"https://api.github.com/users/jeyben/orgs","repos_url":"https://api.github.com/users/jeyben/repos","events_url":"https://api.github.com/users/jeyben/events{/privacy}","received_events_url":"https://api.github.com/users/jeyben/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-25T18:47:55Z","updated_at":"2015-12-25T19:00:43Z","closed_at":null,"body":"I am experiencing issues manipulating data again. That return HTTP 500. My credentials are left out.\r\n\r\nSome examples:\r\ncurl -H \"Content-Type: application/json\" -X POST -u “-:-“ https://api.holdsport.dk/v1/activities/3465203/activities_users -d \"{\"activities_user\":{\"picked\":1,\"joined_status\":1,\"name\":\"Tilmeld\"}}\" \r\n\r\ncurl -H \"Content-Type: application/json\" -X POST -u \"-:-\" https://api.holdsport.dk/v1/activities/3465145/activities_users -d \"{\"activities_user\":{\"picked\":1,\"joined_status\":1,\"name\":\"Tilmeld\"}}\"\r\n"},"comment":{"url":"https://api.github.com/repos/Holdsport/holdsport-api/issues/comments/167258767","html_url":"https://github.com/Holdsport/holdsport-api/issues/4#issuecomment-167258767","issue_url":"https://api.github.com/repos/Holdsport/holdsport-api/issues/4","id":167258767,"user":{"login":"joerichsen","id":1052,"avatar_url":"https://avatars.githubusercontent.com/u/1052?v=3","gravatar_id":"","url":"https://api.github.com/users/joerichsen","html_url":"https://github.com/joerichsen","followers_url":"https://api.github.com/users/joerichsen/followers","following_url":"https://api.github.com/users/joerichsen/following{/other_user}","gists_url":"https://api.github.com/users/joerichsen/gists{/gist_id}","starred_url":"https://api.github.com/users/joerichsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joerichsen/subscriptions","organizations_url":"https://api.github.com/users/joerichsen/orgs","repos_url":"https://api.github.com/users/joerichsen/repos","events_url":"https://api.github.com/users/joerichsen/events{/privacy}","received_events_url":"https://api.github.com/users/joerichsen/received_events","type":"User","site_admin":false},"created_at":"2015-12-25T19:00:43Z","updated_at":"2015-12-25T19:00:43Z","body":"Just checked the error logs and the system is complaining about the name parameter, so leaving that out should fix the problem ie. instead of\r\n\r\n    curl -H \"Content-Type: application/json\" -X POST -u “-:-“ https://api.holdsport.dk/v1/activities/3465203/activities_users -d \"{\"activities_user\":{\"picked\":1,\"joined_status\":1,\"name\":\"Tilmeld\"}}\"\r\n\r\nuse\r\n\r\n    curl -H \"Content-Type: application/json\" -X POST -u “-:-“ https://api.holdsport.dk/v1/activities/3465203/activities_users -d \"{\"activities_user\":{\"picked\":1,\"joined_status\":1}}\"\r\n"}}