{"action":"created","issue":{"url":"https://api.github.com/repos/algolia/algoliasearch-client-ruby/issues/25","labels_url":"https://api.github.com/repos/algolia/algoliasearch-client-ruby/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/algolia/algoliasearch-client-ruby/issues/25/comments","events_url":"https://api.github.com/repos/algolia/algoliasearch-client-ruby/issues/25/events","html_url":"https://github.com/algolia/algoliasearch-client-ruby/issues/25","id":123571117,"number":25,"title":"VCR and request uri","user":{"login":"avbrychak","id":6606331,"avatar_url":"https://avatars.githubusercontent.com/u/6606331?v=3","gravatar_id":"","url":"https://api.github.com/users/avbrychak","html_url":"https://github.com/avbrychak","followers_url":"https://api.github.com/users/avbrychak/followers","following_url":"https://api.github.com/users/avbrychak/following{/other_user}","gists_url":"https://api.github.com/users/avbrychak/gists{/gist_id}","starred_url":"https://api.github.com/users/avbrychak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avbrychak/subscriptions","organizations_url":"https://api.github.com/users/avbrychak/orgs","repos_url":"https://api.github.com/users/avbrychak/repos","events_url":"https://api.github.com/users/avbrychak/events{/privacy}","received_events_url":"https://api.github.com/users/avbrychak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-22T22:47:41Z","updated_at":"2015-12-23T09:01:09Z","closed_at":null,"body":"Hello. I am trying to record requests and responses using [vcr](https://github.com/vcr/vcr) for my testing purposes.\r\nWhen there is no request/response for a given test it would pass. But on the second run test will fail.\r\n\r\nI've noticed the difference in URI when I am trying to get and object from algolia index:\r\nOn the firs run it would look like: \r\n`https://atc2cvtc1r-dsn.algolia.net/1/indexes/Gift_test_avbrychak/gift_2626`\r\nOn the second: \r\n`https://ATC2CVTC1R-1.algolianet.com/1/indexes/Gift_test_avbrychak/gift_2695`\r\n\r\nI think the problem is in the changing part `-dsn`. Is it possible to use the same URI?"},"comment":{"url":"https://api.github.com/repos/algolia/algoliasearch-client-ruby/issues/comments/166837504","html_url":"https://github.com/algolia/algoliasearch-client-ruby/issues/25#issuecomment-166837504","issue_url":"https://api.github.com/repos/algolia/algoliasearch-client-ruby/issues/25","id":166837504,"user":{"login":"redox","id":29529,"avatar_url":"https://avatars.githubusercontent.com/u/29529?v=3","gravatar_id":"","url":"https://api.github.com/users/redox","html_url":"https://github.com/redox","followers_url":"https://api.github.com/users/redox/followers","following_url":"https://api.github.com/users/redox/following{/other_user}","gists_url":"https://api.github.com/users/redox/gists{/gist_id}","starred_url":"https://api.github.com/users/redox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redox/subscriptions","organizations_url":"https://api.github.com/users/redox/orgs","repos_url":"https://api.github.com/users/redox/repos","events_url":"https://api.github.com/users/redox/events{/privacy}","received_events_url":"https://api.github.com/users/redox/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T09:01:09Z","updated_at":"2015-12-23T09:01:09Z","body":"HI @avbrychak,\r\n\r\nthat's actually a feature :) We're using different hostnames to cover fault-tolerance in an efficient & simple manner. The underlying list of hosts is defined here: https://github.com/algolia/algoliasearch-client-ruby/blob/master/lib/algolia/client.rb#L29-L30\r\n\r\nWhat you could do it override the `hosts` and `search_hosts` option to a single host for testing purpose, so you would totally control it.\r\n\r\nDoes that make sense?"}}