{"action":"created","issue":{"url":"https://api.github.com/repos/edgurgel/httpoison/issues/86","labels_url":"https://api.github.com/repos/edgurgel/httpoison/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/edgurgel/httpoison/issues/86/comments","events_url":"https://api.github.com/repos/edgurgel/httpoison/issues/86/events","html_url":"https://github.com/edgurgel/httpoison/issues/86","id":113762448,"number":86,"title":"Timeouts when making POST requests","user":{"login":"HashNuke","id":84005,"avatar_url":"https://avatars.githubusercontent.com/u/84005?v=3","gravatar_id":"","url":"https://api.github.com/users/HashNuke","html_url":"https://github.com/HashNuke","followers_url":"https://api.github.com/users/HashNuke/followers","following_url":"https://api.github.com/users/HashNuke/following{/other_user}","gists_url":"https://api.github.com/users/HashNuke/gists{/gist_id}","starred_url":"https://api.github.com/users/HashNuke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HashNuke/subscriptions","organizations_url":"https://api.github.com/users/HashNuke/orgs","repos_url":"https://api.github.com/users/HashNuke/repos","events_url":"https://api.github.com/users/HashNuke/events{/privacy}","received_events_url":"https://api.github.com/users/HashNuke/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-28T07:53:51Z","updated_at":"2015-11-03T12:42:24Z","closed_at":"2015-11-03T12:42:24Z","body":"Hound uses HTTPoison under the covers to make requests to the WebDriver JSON API.\r\n\r\nMaking a POST request to the chrome driver fails. Here are steps to reproduce.\r\n\r\n### Requirements\r\n\r\n* Install chromedriver from homebrew if Mac (`brew install chromedriver`) or download from http://chromedriver.storage.googleapis.com/index.html?path=2.20/\r\n\r\n* Start the chrome driver with `chromedriver --verbose`\r\n\r\n### Reproducing the error\r\n\r\n```\r\nbody = Poison.encode! %{desiredCapabilities: %{}}\r\nheaders = [{\"Content-Type\", \"text/json\"}]\r\nurl = \"http://localhost:9515/session\"\r\nHTTPoison.post(url, body, headers)\r\n```\r\nThe request times out after a long time. Should be useful to pass the [recv_timeout: 5000] option to debug faster.\r\n\r\nThe same request is successful with a response when using curl in the command line:\r\n```\r\n$ curl --data \"{\\\"desiredCapabilities\\\": {}}\" --header \"Content-type: text/json\" http://localhost:9515/session\r\n{\"sessionId\":\"87d6b9cfb5bd2bd1782e65f2b6a30511\",\"status\":0,\"value\":{\"acceptSslCerts\":true,\"applicationCacheEnabled\":false,\"browserConnectionEnabled\":false,\"browserName\":\"chrome\",\"chrome\":{\"userDataDir\":\"/var/folders/96/1sp35x9j2n116stp3gtk3m5w0000gn/T/.org.chromium.Chromium.MBiD8D\"},\"cssSelectorsEnabled\":true,\"databaseEnabled\":false,\"handlesAlerts\":true,\"hasTouchScreen\":false,\"javascriptEnabled\":true,\"locationContextEnabled\":true,\"mobileEmulationEnabled\":false,\"nativeEvents\":true,\"platform\":\"Mac OS X\",\"rotatable\":false,\"takesHeapSnapshot\":true,\"takesScreenshot\":true,\"version\":\"46.0.2490.80\",\"webStorageEnabled\":true}}\r\n```\r\nPlease do let me know if I'm doing something wrong."},"comment":{"url":"https://api.github.com/repos/edgurgel/httpoison/issues/comments/153340698","html_url":"https://github.com/edgurgel/httpoison/issues/86#issuecomment-153340698","issue_url":"https://api.github.com/repos/edgurgel/httpoison/issues/86","id":153340698,"user":{"login":"HashNuke","id":84005,"avatar_url":"https://avatars.githubusercontent.com/u/84005?v=3","gravatar_id":"","url":"https://api.github.com/users/HashNuke","html_url":"https://github.com/HashNuke","followers_url":"https://api.github.com/users/HashNuke/followers","following_url":"https://api.github.com/users/HashNuke/following{/other_user}","gists_url":"https://api.github.com/users/HashNuke/gists{/gist_id}","starred_url":"https://api.github.com/users/HashNuke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HashNuke/subscriptions","organizations_url":"https://api.github.com/users/HashNuke/orgs","repos_url":"https://api.github.com/users/HashNuke/repos","events_url":"https://api.github.com/users/HashNuke/events{/privacy}","received_events_url":"https://api.github.com/users/HashNuke/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T12:42:24Z","updated_at":"2015-11-03T12:42:24Z","body":"@edgurgel Since this is a hackney issue, I've started an issue on the hackney repo instead. Closing this since it's duplicate."}}