Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails / Error Bundler::HTTPError during request to dependency API

I have a cms engine that I created not long back, I have used it many times with no problems. But as of today I keep getting this error when trying to update the engine/gem or if I push it to Heroku.

This is the error I get:

Error Bundler::HTTPError during request to dependency API

I know that the Rubygems "Dependency API" has been down over the last couple of days. But it should be up again. How can I troubleshoot this error further and determin whether this is a problem on my side or with Rubygems?

like image 580
jakobk Avatar asked Oct 23 '12 21:10

jakobk


1 Answers

DISCLAIMER: This answer may not be valid anymore, as the original question is about an older issue with the Rubygems Dependency API, which has been fixed. This answer provided a temporary fix for the issue, so please don't down-vote if it doesn't work for you now. With that said, here you go:

Check out this mailing-list thread: https://groups.google.com/forum/?fromgroups=#!topic/rubygems-org/zP-lZ-lCbqM

According to it, a very temporary-only solution would be to replace

source 'https://rubygems.org'

with

source "http://bundler-api.herokuapp.com"

I also quote another mailing-list reply:

Just for the record, the reason it worked for you is that Bundler works just fine without the dependency API. It's a little slower, granted, but any Gemfile source line that worked before is going to keep working now.

like image 181
Kenny Meyer Avatar answered Nov 12 '22 18:11

Kenny Meyer