ruby/rubygems · error · Gem::RemoteFetcher::FetchError
fatal error
Error message
fatal error
What it means
Error "fatal error" thrown in ruby/rubygems.
Source
Thrown at lib/rubygems/request.rb:244
end
else
response = connection.request request
end
verbose "#{response.code} #{response.message}"
rescue Gem::Net::HTTPBadResponse
verbose "bad response"
reset connection
raise Gem::RemoteFetcher::FetchError.new("too many bad responses", @uri) if bad_response
bad_response = true
retry
rescue Gem::Net::HTTPFatalError
verbose "fatal error"
raise Gem::RemoteFetcher::FetchError.new("fatal error", @uri)
# HACK: work around EOFError bug in Gem::Net::HTTP
# NOTE Errno::ECONNABORTED raised a lot on Windows, and make impossible
# to install gems.
rescue EOFError, Gem::Timeout::Error,
Errno::ECONNABORTED, Errno::ECONNRESET, Errno::EPIPE
requests = @requests[connection]
verbose "connection reset after #{requests} requests, retrying"
raise Gem::RemoteFetcher::FetchError.new("too many connection resets", @uri) if retried
reset connection
retried = true
retry
end
responseView on GitHub (pinned to 86cbb817a3)
Solutions
- Retry the request; the connection hit a fatal error
- Check network stability and any intercepting proxy
When it happens
Trigger: Thrown at lib/rubygems/request.rb:244 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/cf76342233397cf8.
Report an issue: GitHub.