{"action":"created","issue":{"url":"https://api.github.com/repos/ruby-grape/grape/issues/1162","labels_url":"https://api.github.com/repos/ruby-grape/grape/issues/1162/labels{/name}","comments_url":"https://api.github.com/repos/ruby-grape/grape/issues/1162/comments","events_url":"https://api.github.com/repos/ruby-grape/grape/issues/1162/events","html_url":"https://github.com/ruby-grape/grape/issues/1162","id":107547919,"number":1162,"title":"XML formatter can raise errors in scenarios where it shouldn't possibly even be invoked","user":{"login":"dblock","id":542335,"avatar_url":"https://avatars.githubusercontent.com/u/542335?v=3","gravatar_id":"","url":"https://api.github.com/users/dblock","html_url":"https://github.com/dblock","followers_url":"https://api.github.com/users/dblock/followers","following_url":"https://api.github.com/users/dblock/following{/other_user}","gists_url":"https://api.github.com/users/dblock/gists{/gist_id}","starred_url":"https://api.github.com/users/dblock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dblock/subscriptions","organizations_url":"https://api.github.com/users/dblock/orgs","repos_url":"https://api.github.com/users/dblock/repos","events_url":"https://api.github.com/users/dblock/events{/privacy}","received_events_url":"https://api.github.com/users/dblock/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ruby-grape/grape/labels/confirmed%20bug","name":"confirmed bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-09-21T16:19:11Z","updated_at":"2015-09-21T21:18:38Z","closed_at":null,"body":"The scenario in https://github.com/ruby-grape/grape/pull/1159 is that OPTIONS returns an empty string that the XML formatter tries to serialize and fails.\r\n\r\nThe scenario in https://github.com/ruby-grape/grape/pull/1157 is that a redirect causes an empty body and fails.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ruby-grape/grape/issues/comments/142110929","html_url":"https://github.com/ruby-grape/grape/issues/1162#issuecomment-142110929","issue_url":"https://api.github.com/repos/ruby-grape/grape/issues/1162","id":142110929,"user":{"login":"urkle","id":101123,"avatar_url":"https://avatars.githubusercontent.com/u/101123?v=3","gravatar_id":"","url":"https://api.github.com/users/urkle","html_url":"https://github.com/urkle","followers_url":"https://api.github.com/users/urkle/followers","following_url":"https://api.github.com/users/urkle/following{/other_user}","gists_url":"https://api.github.com/users/urkle/gists{/gist_id}","starred_url":"https://api.github.com/users/urkle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urkle/subscriptions","organizations_url":"https://api.github.com/users/urkle/orgs","repos_url":"https://api.github.com/users/urkle/repos","events_url":"https://api.github.com/users/urkle/events{/privacy}","received_events_url":"https://api.github.com/users/urkle/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T21:18:38Z","updated_at":"2015-09-21T21:18:38Z","body":"Also it's more than just not running a formatter.. It's also that the content-type header should NOT be set in the response headers."}}