{"action":"created","issue":{"url":"https://api.github.com/repos/hapijs/hapi/issues/2343","labels_url":"https://api.github.com/repos/hapijs/hapi/issues/2343/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/hapi/issues/2343/comments","events_url":"https://api.github.com/repos/hapijs/hapi/issues/2343/events","html_url":"https://github.com/hapijs/hapi/pull/2343","id":53874486,"number":2343,"title":"throw an appropriate error when payload validation is used with GET or HEAD routes","user":{"login":"damirv","id":1214337,"avatar_url":"https://avatars.githubusercontent.com/u/1214337?v=3","gravatar_id":"","url":"https://api.github.com/users/damirv","html_url":"https://github.com/damirv","followers_url":"https://api.github.com/users/damirv/followers","following_url":"https://api.github.com/users/damirv/following{/other_user}","gists_url":"https://api.github.com/users/damirv/gists{/gist_id}","starred_url":"https://api.github.com/users/damirv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damirv/subscriptions","organizations_url":"https://api.github.com/users/damirv/orgs","repos_url":"https://api.github.com/users/damirv/repos","events_url":"https://api.github.com/users/damirv/events{/privacy}","received_events_url":"https://api.github.com/users/damirv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-09T14:45:27Z","updated_at":"2015-01-09T17:30:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hapijs/hapi/pulls/2343","html_url":"https://github.com/hapijs/hapi/pull/2343","diff_url":"https://github.com/hapijs/hapi/pull/2343.diff","patch_url":"https://github.com/hapijs/hapi/pull/2343.patch"},"body":"When a user mistakenly uses a payload validation on a GET or HEAD route, an appropriate error is given, instead of\r\n\r\n```\r\nTypeError: Cannot read property 'parse' of null\r\n   at new module.exports.internals.Route (... node_modules/hapi/lib/route.js:126:73)\r\n```\r\n\r\nThis might help new users that make this mistake more quickly to uncover what's going on."},"comment":{"url":"https://api.github.com/repos/hapijs/hapi/issues/comments/69367998","html_url":"https://github.com/hapijs/hapi/pull/2343#issuecomment-69367998","issue_url":"https://api.github.com/repos/hapijs/hapi/issues/2343","id":69367998,"user":{"login":"hueniverse","id":56631,"avatar_url":"https://avatars.githubusercontent.com/u/56631?v=3","gravatar_id":"","url":"https://api.github.com/users/hueniverse","html_url":"https://github.com/hueniverse","followers_url":"https://api.github.com/users/hueniverse/followers","following_url":"https://api.github.com/users/hueniverse/following{/other_user}","gists_url":"https://api.github.com/users/hueniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/hueniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hueniverse/subscriptions","organizations_url":"https://api.github.com/users/hueniverse/orgs","repos_url":"https://api.github.com/users/hueniverse/repos","events_url":"https://api.github.com/users/hueniverse/events{/privacy}","received_events_url":"https://api.github.com/users/hueniverse/received_events","type":"User","site_admin":false},"created_at":"2015-01-09T17:30:20Z","updated_at":"2015-01-09T17:30:20Z","body":"It needs to ignore it at the route lifecycle setup step, not assert. This is because you can now set a global route validation default for all routes."}}