{"action":"closed","issue":{"url":"https://api.github.com/repos/edgurgel/httpoison/issues/143","repository_url":"https://api.github.com/repos/edgurgel/httpoison","labels_url":"https://api.github.com/repos/edgurgel/httpoison/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/edgurgel/httpoison/issues/143/comments","events_url":"https://api.github.com/repos/edgurgel/httpoison/issues/143/events","html_url":"https://github.com/edgurgel/httpoison/issues/143","id":159653046,"number":143,"title":"Weird responses when sending more than one request to a Cowboy server","user":{"login":"dabaer","id":5544713,"avatar_url":"https://avatars.githubusercontent.com/u/5544713?v=3","gravatar_id":"","url":"https://api.github.com/users/dabaer","html_url":"https://github.com/dabaer","followers_url":"https://api.github.com/users/dabaer/followers","following_url":"https://api.github.com/users/dabaer/following{/other_user}","gists_url":"https://api.github.com/users/dabaer/gists{/gist_id}","starred_url":"https://api.github.com/users/dabaer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dabaer/subscriptions","organizations_url":"https://api.github.com/users/dabaer/orgs","repos_url":"https://api.github.com/users/dabaer/repos","events_url":"https://api.github.com/users/dabaer/events{/privacy}","received_events_url":"https://api.github.com/users/dabaer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-06-10T14:52:55Z","updated_at":"2016-09-01T09:59:38Z","closed_at":"2016-09-01T09:59:38Z","body":"I'm getting some unexpected results when firing HTTPoison request()'s within 1 second of each other. Every second request I am consistently seeing some sort of cached response, where it falls and hits one of my cases, but it doesn't ping the URL at all.\r\n\r\n```\r\ncase HTTPoison.request(:post, url, file) do\r\n    {:ok, %HTTPoison.Response{status_code: 200, body: []}} ->\r\n        # Work\r\n    {:ok, %HTTPoison.Response{status_code: 400, body: body}} ->\r\n        # This clause gets hit the first time correctly based on the response from the endpoint, and it also hits it the second time, but without firing a request at the endpoint at all...\r\n    _ ->\r\n        # More work\r\nend\r\n```\r\n\r\nRegards,\r\nDakota\r\n\r\nP.S. I wait until the request is fully complete on both sides before hitting it again."}}
{"actor":{"display_login":"edgurgel"}}