bblimke/webmock · error · HTTP::TimeoutError
connection error: #{Errno::ETIMEDOUT.new}
Error message
connection error: #{Errno::ETIMEDOUT.new} What it means
Error "connection error: #{Errno::ETIMEDOUT.new}" thrown in bblimke/webmock.
Source
Thrown at lib/webmock/http_lib_adapters/http_rb/webmock.rb:55
return unless webmock_response
raise_timeout_error if webmock_response.should_timeout
webmock_response.raise_error_if_any
invoke_callbacks(webmock_response, real_request: false)
response = ::HTTP::Response.from_webmock @request, webmock_response, request_signature
# HTTP.rb 6.0+ wraps responses in reverse feature order
features = @options.features.values
features = features.reverse if HTTP::VERSION >= "6.0.0"
features.each { |feature| response = feature.wrap_response(response) }
response
end
def raise_timeout_error
raise Errno::ETIMEDOUT if HTTP::VERSION < "1.0.0"
raise HTTP::TimeoutError, "connection error: #{Errno::ETIMEDOUT.new}"
end
def perform
return unless ::WebMock.net_connect_allowed?(request_signature.uri)
response = @perform.call
invoke_callbacks(response.to_webmock, real_request: true)
response
end
def halt
raise ::WebMock::NetConnectNotAllowedError.new request_signature
end
def invoke_callbacks(webmock_response, options = {})
::WebMock::CallbackRegistry.invoke_callbacks(
options.merge({ lib: :http_rb }),
request_signature,
webmock_responseView on GitHub (pinned to b187df8827)
When it happens
Trigger: Thrown at lib/webmock/http_lib_adapters/http_rb/webmock.rb:55 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Timeouts: ETIMEDOUT, deadlines, and hung requests — what actually expires when a request times out.
AI-assisted analysis of bblimke/webmock@b187df8827 (2026-08-23).
Data as JSON: /api/errors/f37212c411bf6272.
Report an issue: GitHub.