ruby/rubygems · error · Bundler::HTTPError
17
17
Error message
Could not download gem from #{redacted_uri} due to underlying error <#{e.message}> What it means
Error "Could not download gem from #{redacted_uri} due to underlying error <#{e.message}>" thrown in ruby/rubygems.
Source
Thrown at lib/bundler/rubygems_integration.rb:407
begin
remote_gem_path = uri + "gems/#{gem_file_name}"
SharedHelpers.filesystem_access(local_gem_path) do
fetcher.cache_update_path remote_gem_path, local_gem_path
end
rescue Gem::RemoteFetcher::FetchError
raise if spec.original_platform == spec.platform
original_gem_file_name = "#{spec.original_name}.gem"
raise if gem_file_name == original_gem_file_name
gem_file_name = original_gem_file_name
retry
end
end
rescue Gem::RemoteFetcher::FetchError => e
raise Bundler::HTTPError, "Could not download gem from #{redacted_uri} due to underlying error <#{e.message}>"
end
def build(spec, skip_validation = false)
require "rubygems/package"
Gem::Package.build(spec, skip_validation)
end
def path_separator
Gem.path_separator
end
def all_specs
SharedHelpers.feature_removed! "Bundler.rubygems.all_specs has been removed in favor of Bundler.rubygems.installed_specs"
end
def installed_specs
Gem::Specification.stubs.reject(&:default_gem?).map do |stub|
StubSpecification.from_stub(stub)
endView on GitHub (pinned to 86cbb817a3)
When it happens
Trigger: Thrown at lib/bundler/rubygems_integration.rb:407 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ruby/rubygems@86cbb817a3 (2026-08-23).
Data as JSON: /api/errors/ffcae9a764f7fe9d.
Report an issue: GitHub.