{"action":"created","issue":{"url":"https://api.github.com/repos/bundler/gemstash/issues/88","repository_url":"https://api.github.com/repos/bundler/gemstash","labels_url":"https://api.github.com/repos/bundler/gemstash/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/bundler/gemstash/issues/88/comments","events_url":"https://api.github.com/repos/bundler/gemstash/issues/88/events","html_url":"https://github.com/bundler/gemstash/pull/88","id":153943190,"number":88,"title":"Add fallback timeout documentation for when Gemstash's off/missing","user":{"login":"parndt","id":10128,"avatar_url":"https://avatars.githubusercontent.com/u/10128?v=3","gravatar_id":"","url":"https://api.github.com/users/parndt","html_url":"https://github.com/parndt","followers_url":"https://api.github.com/users/parndt/followers","following_url":"https://api.github.com/users/parndt/following{/other_user}","gists_url":"https://api.github.com/users/parndt/gists{/gist_id}","starred_url":"https://api.github.com/users/parndt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parndt/subscriptions","organizations_url":"https://api.github.com/users/parndt/orgs","repos_url":"https://api.github.com/users/parndt/repos","events_url":"https://api.github.com/users/parndt/events{/privacy}","received_events_url":"https://api.github.com/users/parndt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-10T07:45:22Z","updated_at":"2016-05-10T08:55:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bundler/gemstash/pulls/88","html_url":"https://github.com/bundler/gemstash/pull/88","diff_url":"https://github.com/bundler/gemstash/pull/88.diff","patch_url":"https://github.com/bundler/gemstash/pull/88.patch"},"body":"Per bundler/bundler#4186 this documents how to add a fallback timeout to prevent this happening when Gemstash is off:\r\n\r\n```\r\n$ bundle update\r\nFetching source index from http://localhost:9292/\r\nRetrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from http://localhost:9292/\r\nRetrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from http://localhost:9292/\r\nRetrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from http://localhost:9292/\r\nCould not fetch specs from http://localhost:9292/\r\n```\r\n\r\nAfter configuring a fallback, as described:\r\n\r\n```\r\n$ bundle config mirror.https://rubygems.org.fallback_timeout true\r\n```\r\n\r\nInstead, after trying Gemstash first and quickly failing, we see this:\r\n\r\n```\r\n$ bundle update\r\nFetching gem metadata from https://rubygems.org/\r\nFetching version metadata from https://rubygems.org/\r\nFetching dependency metadata from https://rubygems.org/\r\n```\r\n\r\nSo we can see that it skips to using https://rubygems.org instead. \r\n\r\nNow, Gemstash seems much more like a viable option for a mirror!"},"comment":{"url":"https://api.github.com/repos/bundler/gemstash/issues/comments/218097814","html_url":"https://github.com/bundler/gemstash/pull/88#issuecomment-218097814","issue_url":"https://api.github.com/repos/bundler/gemstash/issues/88","id":218097814,"user":{"login":"parndt","id":10128,"avatar_url":"https://avatars.githubusercontent.com/u/10128?v=3","gravatar_id":"","url":"https://api.github.com/users/parndt","html_url":"https://github.com/parndt","followers_url":"https://api.github.com/users/parndt/followers","following_url":"https://api.github.com/users/parndt/following{/other_user}","gists_url":"https://api.github.com/users/parndt/gists{/gist_id}","starred_url":"https://api.github.com/users/parndt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parndt/subscriptions","organizations_url":"https://api.github.com/users/parndt/orgs","repos_url":"https://api.github.com/users/parndt/repos","events_url":"https://api.github.com/users/parndt/events{/privacy}","received_events_url":"https://api.github.com/users/parndt/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T08:55:32Z","updated_at":"2016-05-10T08:55:32Z","body":"@pcarranza @indirect @smellsblue I've also documented this for Bundler's documentation site over at bundler/bundler-site#212"}}