{"action":"created","issue":{"url":"https://api.github.com/repos/akka/akka-http/issues/284","repository_url":"https://api.github.com/repos/akka/akka-http","labels_url":"https://api.github.com/repos/akka/akka-http/issues/284/labels{/name}","comments_url":"https://api.github.com/repos/akka/akka-http/issues/284/comments","events_url":"https://api.github.com/repos/akka/akka-http/issues/284/events","html_url":"https://github.com/akka/akka-http/issues/284","id":176359257,"node_id":"MDU6SXNzdWUxNzYzNTkyNTc=","number":284,"title":"Directive: Optional entity and empty body","user":{"login":"akka-ci","id":2511948,"node_id":"MDQ6VXNlcjI1MTE5NDg=","avatar_url":"https://avatars3.githubusercontent.com/u/2511948?v=4","gravatar_id":"","url":"https://api.github.com/users/akka-ci","html_url":"https://github.com/akka-ci","followers_url":"https://api.github.com/users/akka-ci/followers","following_url":"https://api.github.com/users/akka-ci/following{/other_user}","gists_url":"https://api.github.com/users/akka-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/akka-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akka-ci/subscriptions","organizations_url":"https://api.github.com/users/akka-ci/orgs","repos_url":"https://api.github.com/users/akka-ci/repos","events_url":"https://api.github.com/users/akka-ci/events{/privacy}","received_events_url":"https://api.github.com/users/akka-ci/received_events","type":"User","site_admin":false},"labels":[{"id":430145635,"node_id":"MDU6TGFiZWw0MzAxNDU2MzU=","url":"https://api.github.com/repos/akka/akka-http/labels/1%20-%20triaged","name":"1 - triaged","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/akka/akka-http/milestones/5","html_url":"https://github.com/akka/akka-http/milestone/5","labels_url":"https://api.github.com/repos/akka/akka-http/milestones/5/labels","id":1991250,"node_id":"MDk6TWlsZXN0b25lMTk5MTI1MA==","number":5,"title":"backlog","description":"","creator":{"login":"akka-ci","id":2511948,"node_id":"MDQ6VXNlcjI1MTE5NDg=","avatar_url":"https://avatars3.githubusercontent.com/u/2511948?v=4","gravatar_id":"","url":"https://api.github.com/users/akka-ci","html_url":"https://github.com/akka-ci","followers_url":"https://api.github.com/users/akka-ci/followers","following_url":"https://api.github.com/users/akka-ci/following{/other_user}","gists_url":"https://api.github.com/users/akka-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/akka-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akka-ci/subscriptions","organizations_url":"https://api.github.com/users/akka-ci/orgs","repos_url":"https://api.github.com/users/akka-ci/repos","events_url":"https://api.github.com/users/akka-ci/events{/privacy}","received_events_url":"https://api.github.com/users/akka-ci/received_events","type":"User","site_admin":false},"open_issues":89,"closed_issues":34,"state":"open","created_at":"2016-09-08T14:27:28Z","updated_at":"2018-06-12T12:35:18Z","due_on":null,"closed_at":null},"comments":15,"created_at":"2016-09-12T12:06:25Z","updated_at":"2018-07-18T19:32:35Z","closed_at":null,"author_association":"COLLABORATOR","body":"<a href=\"https://github.com/2m\"><img src=\"https://avatars.githubusercontent.com/u/422086?v=3\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [2m](https://github.com/2m)**\n_Monday Jun 15, 2015 at 07:17 GMT_\n_Originally opened as https://github.com/akka/akka/issues/17716_\n\n---\n\nAs [reported in the mailing list](https://groups.google.com/forum/#!searchin/akka-user/optional$20entity/akka-user/gvP184RVHZQ/2QOfmMOHCAkJ) akka-http is not able to handle a request with an empty body when route expects an optional entity.\n\nEven an empty string is not a [valid json](https://www.ietf.org/rfc/rfc4627.txt) it should still be possible to handle such a request when expected entity is optional.\n"},"comment":{"url":"https://api.github.com/repos/akka/akka-http/issues/comments/406048035","html_url":"https://github.com/akka/akka-http/issues/284#issuecomment-406048035","issue_url":"https://api.github.com/repos/akka/akka-http/issues/284","id":406048035,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjA0ODAzNQ==","user":{"login":"morsecodist","id":24242714,"node_id":"MDQ6VXNlcjI0MjQyNzE0","avatar_url":"https://avatars2.githubusercontent.com/u/24242714?v=4","gravatar_id":"","url":"https://api.github.com/users/morsecodist","html_url":"https://github.com/morsecodist","followers_url":"https://api.github.com/users/morsecodist/followers","following_url":"https://api.github.com/users/morsecodist/following{/other_user}","gists_url":"https://api.github.com/users/morsecodist/gists{/gist_id}","starred_url":"https://api.github.com/users/morsecodist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morsecodist/subscriptions","organizations_url":"https://api.github.com/users/morsecodist/orgs","repos_url":"https://api.github.com/users/morsecodist/repos","events_url":"https://api.github.com/users/morsecodist/events{/privacy}","received_events_url":"https://api.github.com/users/morsecodist/received_events","type":"User","site_admin":false},"created_at":"2018-07-18T19:32:35Z","updated_at":"2018-07-18T19:32:35Z","author_association":"NONE","body":"I do not recommend the solution from @bandrzejczak. When receiving traffic from slower connections it reads an incomplete post body and then attempts to parse it. This can result in intermittent JSON parsing errors."}}
{"actor":{"display_login":"morsecodist"}}