{"action":"opened","issue":{"url":"https://api.github.com/repos/rails/rails/issues/21923","labels_url":"https://api.github.com/repos/rails/rails/issues/21923/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/21923/comments","events_url":"https://api.github.com/repos/rails/rails/issues/21923/events","html_url":"https://github.com/rails/rails/issues/21923","id":110639402,"number":21923,"title":"Non-informative exception for params with invalid encodings","user":{"login":"agis-","id":827224,"avatar_url":"https://avatars.githubusercontent.com/u/827224?v=3","gravatar_id":"","url":"https://api.github.com/users/agis-","html_url":"https://github.com/agis-","followers_url":"https://api.github.com/users/agis-/followers","following_url":"https://api.github.com/users/agis-/following{/other_user}","gists_url":"https://api.github.com/users/agis-/gists{/gist_id}","starred_url":"https://api.github.com/users/agis-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agis-/subscriptions","organizations_url":"https://api.github.com/users/agis-/orgs","repos_url":"https://api.github.com/users/agis-/repos","events_url":"https://api.github.com/users/agis-/events{/privacy}","received_events_url":"https://api.github.com/users/agis-/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-09T11:28:12Z","updated_at":"2015-10-09T11:28:12Z","closed_at":null,"body":"On Rails 4.2 (haven't tested with other versions), given a route:\r\n\r\n```ruby\r\n  get ':a' => 'foo#bar'\r\n```\r\n\r\nHitting it with an param with invalid encoding will raise the following *non-informative* exception:\r\n\r\n![screen shot 2015-10-09 at 2 21 48 pm](https://cloud.githubusercontent.com/assets/827224/10392668/d0e0e658-6e91-11e5-959e-68461a862eac.png)\r\n\r\nI'm submitting a PR soon that's a potential solution for this."}}