{"action":"created","issue":{"url":"https://api.github.com/repos/yesodweb/wai/issues/382","labels_url":"https://api.github.com/repos/yesodweb/wai/issues/382/labels{/name}","comments_url":"https://api.github.com/repos/yesodweb/wai/issues/382/comments","events_url":"https://api.github.com/repos/yesodweb/wai/issues/382/events","html_url":"https://github.com/yesodweb/wai/issues/382","id":87241722,"number":382,"title":"warp: no exception upon an empty request","user":{"login":"feuerbach","id":24844,"avatar_url":"https://avatars.githubusercontent.com/u/24844?v=3","gravatar_id":"","url":"https://api.github.com/users/feuerbach","html_url":"https://github.com/feuerbach","followers_url":"https://api.github.com/users/feuerbach/followers","following_url":"https://api.github.com/users/feuerbach/following{/other_user}","gists_url":"https://api.github.com/users/feuerbach/gists{/gist_id}","starred_url":"https://api.github.com/users/feuerbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feuerbach/subscriptions","organizations_url":"https://api.github.com/users/feuerbach/orgs","repos_url":"https://api.github.com/users/feuerbach/repos","events_url":"https://api.github.com/users/feuerbach/events{/privacy}","received_events_url":"https://api.github.com/users/feuerbach/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-11T07:20:44Z","updated_at":"2015-06-16T04:58:03Z","closed_at":null,"body":"I registered an exception handler through `setOnException.`\r\n\r\nWhen I send some junk instead of a request, I see an exception, as expected:\r\n\r\n```\r\nWarp: Invalid first line of request: \"asdf\"\r\n```\r\n\r\nHowever, if I send a single newline, the client gets back `500 Something went wrong`, but no exception is printed.\r\n\r\nI think the property that any 500 error is logged on the server side is a very desirable one.\r\n\r\nThis is warp-3.0.2.3; apologies if this has been fixed in a later version."},"comment":{"url":"https://api.github.com/repos/yesodweb/wai/issues/comments/112291721","html_url":"https://github.com/yesodweb/wai/issues/382#issuecomment-112291721","issue_url":"https://api.github.com/repos/yesodweb/wai/issues/382","id":112291721,"user":{"login":"snoyberg","id":49415,"avatar_url":"https://avatars.githubusercontent.com/u/49415?v=3","gravatar_id":"","url":"https://api.github.com/users/snoyberg","html_url":"https://github.com/snoyberg","followers_url":"https://api.github.com/users/snoyberg/followers","following_url":"https://api.github.com/users/snoyberg/following{/other_user}","gists_url":"https://api.github.com/users/snoyberg/gists{/gist_id}","starred_url":"https://api.github.com/users/snoyberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoyberg/subscriptions","organizations_url":"https://api.github.com/users/snoyberg/orgs","repos_url":"https://api.github.com/users/snoyberg/repos","events_url":"https://api.github.com/users/snoyberg/events{/privacy}","received_events_url":"https://api.github.com/users/snoyberg/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T04:58:03Z","updated_at":"2015-06-16T04:58:03Z","body":"I believe it comes from differences in how clients deal with pipelining: some of them send an extra CRLF between requests (like they're supposed to) but some don't. We currently just ignore CRLFs as the beginning. This has never been a problem in the past. @feuerbach what's the case where these missing exceptions is causing problems?"}}