{"action":"created","issue":{"url":"https://api.github.com/repos/eruvanos/openbrokerapi/issues/16","repository_url":"https://api.github.com/repos/eruvanos/openbrokerapi","labels_url":"https://api.github.com/repos/eruvanos/openbrokerapi/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/eruvanos/openbrokerapi/issues/16/comments","events_url":"https://api.github.com/repos/eruvanos/openbrokerapi/issues/16/events","html_url":"https://github.com/eruvanos/openbrokerapi/issues/16","id":334815361,"node_id":"MDU6SXNzdWUzMzQ4MTUzNjE=","number":16,"title":"PUT, PATCH Requests without data in request body should cause response code 400 not 500","user":{"login":"brudnyhenry","id":16334927,"node_id":"MDQ6VXNlcjE2MzM0OTI3","avatar_url":"https://avatars0.githubusercontent.com/u/16334927?v=4","gravatar_id":"","url":"https://api.github.com/users/brudnyhenry","html_url":"https://github.com/brudnyhenry","followers_url":"https://api.github.com/users/brudnyhenry/followers","following_url":"https://api.github.com/users/brudnyhenry/following{/other_user}","gists_url":"https://api.github.com/users/brudnyhenry/gists{/gist_id}","starred_url":"https://api.github.com/users/brudnyhenry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brudnyhenry/subscriptions","organizations_url":"https://api.github.com/users/brudnyhenry/orgs","repos_url":"https://api.github.com/users/brudnyhenry/repos","events_url":"https://api.github.com/users/brudnyhenry/events{/privacy}","received_events_url":"https://api.github.com/users/brudnyhenry/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-22T09:47:28Z","updated_at":"2018-06-22T11:59:08Z","closed_at":"2018-06-22T11:57:29Z","author_association":"NONE","body":"### Requests without data should result in response code 400 not 500\r\nSending requests without data is causing response status code 500 Internal Server Error instead 400 Bad Request\r\n\r\n### Steps to reproduce\r\n1. Start example flask application from README.md\r\n2. Send request without data\r\n```bash\r\ncurl -I -XPUT 'http://0:5000/v2/service_instances/60e7ad46-de4a-e5b7-fa74-13b9c79aaa35?accepts_incomplete=true' -H X-Broker-Api-Version:2.13 -H 'Content-Type: application/json' -u username:password\r\n``` \r\n\r\n### Expected behaviour\r\n```\r\nHTTP/1.0 400 BAD REQUEST\r\nContent-Type: application/json\r\nContent-Length: 60\r\nServer: Werkzeug/0.14.1 Python/3.6.5\r\nDate: Fri, 22 Jun 2018 09:46:15 GMT\r\n```\r\n\r\n### Actual behaviour\r\n```\r\nHTTP/1.0 500 INTERNAL SERVER ERROR\r\nContent-Type: application/json\r\nContent-Length: 60\r\nServer: Werkzeug/0.14.1 Python/3.6.5\r\nDate: Fri, 22 Jun 2018 09:44:50 GMT\r\n```"},"comment":{"url":"https://api.github.com/repos/eruvanos/openbrokerapi/issues/comments/399418568","html_url":"https://github.com/eruvanos/openbrokerapi/issues/16#issuecomment-399418568","issue_url":"https://api.github.com/repos/eruvanos/openbrokerapi/issues/16","id":399418568,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTQxODU2OA==","user":{"login":"eruvanos","id":9437863,"node_id":"MDQ6VXNlcjk0Mzc4NjM=","avatar_url":"https://avatars2.githubusercontent.com/u/9437863?v=4","gravatar_id":"","url":"https://api.github.com/users/eruvanos","html_url":"https://github.com/eruvanos","followers_url":"https://api.github.com/users/eruvanos/followers","following_url":"https://api.github.com/users/eruvanos/following{/other_user}","gists_url":"https://api.github.com/users/eruvanos/gists{/gist_id}","starred_url":"https://api.github.com/users/eruvanos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eruvanos/subscriptions","organizations_url":"https://api.github.com/users/eruvanos/orgs","repos_url":"https://api.github.com/users/eruvanos/repos","events_url":"https://api.github.com/users/eruvanos/events{/privacy}","received_events_url":"https://api.github.com/users/eruvanos/received_events","type":"User","site_admin":false},"created_at":"2018-06-22T11:59:08Z","updated_at":"2018-06-22T11:59:08Z","author_association":"OWNER","body":"Thank you for finding that bug and the PR. \r\n\r\nI really appreciate! "}}
{"actor":{"display_login":"eruvanos"}}