{"id":3070,"date":"2018-05-21T16:42:29","date_gmt":"2018-05-21T22:42:29","guid":{"rendered":"http:\/\/www.mooreds.com\/wordpress\/?p=3070"},"modified":"2021-11-21T12:37:45","modified_gmt":"2021-11-21T18:37:45","slug":"fixing-the-rubygems-too-many-requests-429-error","status":"publish","type":"post","link":"https:\/\/www.mooreds.com\/wordpress\/archives\/3070","title":{"rendered":"Fixing the RubyGems &#8220;Too Many Requests 429&#8221; error"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-medium wp-image-3072\" src=\"http:\/\/www.mooreds.com\/wordpress\/wp-content\/uploads\/2018\/05\/gems-3418293_640-300x201.jpg\" alt=\"lots of gems\" width=\"300\" height=\"201\" srcset=\"http:\/\/edit.mooreds.com\/wordpress\/wp-content\/uploads\/2018\/05\/gems-3418293_640-300x201.jpg 300w, http:\/\/edit.mooreds.com\/wordpress\/wp-content\/uploads\/2018\/05\/gems-3418293_640.jpg 640w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>A server on which I am working runs this command: <code>\/usr\/bin\/gem install --no-rdoc --no-ri aws-sdk<\/code> to get the aws-sdk. I was seeing this error message:<\/p>\n<pre>Error: Execution of '\/usr\/bin\/gem install --no-rdoc --no-ri aws-sdk' returned 1: ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)\r\n    bad response Too Many Requests 429 (https:\/\/api.rubygems.org\/api\/v1\/dependencies?gems=aws-sdk-elasticloadbalancingv2)\r\n<\/pre>\n<p>Every time I ran it I&#8217;d see a different gem that triggered the 429 response. There wasn&#8217;t much out there when searching, other than a note that I should update to a new version of bundler (which I wasn&#8217;t using).<\/p>\n<p>Finally, I figured out how to get past this. What I did was manually run <code>\/usr\/bin\/gem install -f --no-rdoc --no-ri aws-sdk<\/code> multiple times, and each time the command would get a little further. Finally all the dependencies had been downloaded. Then I was able to run it without the <code>-f<\/code> switch after that.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A server on which I am working runs this command: \/usr\/bin\/gem install &#8211;no-rdoc &#8211;no-ri aws-sdk to get the aws-sdk. I was seeing this error message: Error: Execution of &#8216;\/usr\/bin\/gem install [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[79,84,10],"tags":[],"class_list":["post-3070","post","type-post","status-publish","format-standard","hentry","category-aws","category-devops","category-dynamic-languages"],"_links":{"self":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/3070","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/comments?post=3070"}],"version-history":[{"count":5,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/3070\/revisions"}],"predecessor-version":[{"id":3494,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/3070\/revisions\/3494"}],"wp:attachment":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/media?parent=3070"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/categories?post=3070"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/tags?post=3070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}