bblimke/webmock · error · Async::TimeoutError
WebMock timeout error
Error message
WebMock timeout error
What it means
Error "WebMock timeout error" thrown in bblimke/webmock.
Source
Thrown at lib/webmock/http_lib_adapters/async_http_client_adapter.rb:76
@endpoint = endpoint
@scheme = scheme
@authority = authority
end
def call(request)
request.scheme ||= self.scheme
request.authority ||= self.authority
request_signature = build_request_signature(request)
WebMock::RequestRegistry.instance.requested_signatures.put(request_signature)
webmock_response = WebMock::StubRegistry.instance.response_for_request(request_signature)
net_connect_allowed = WebMock.net_connect_allowed?(request_signature.uri)
real_request = false
if webmock_response
webmock_response.raise_error_if_any
raise Async::TimeoutError, 'WebMock timeout error' if webmock_response.should_timeout
WebMockApplication.add_webmock_response(request, webmock_response)
response = @webmock_client.call(request)
elsif net_connect_allowed
response = @network_client.call(request)
real_request = true
else
raise WebMock::NetConnectNotAllowedError.new(request_signature) unless webmock_response
end
if WebMock::CallbackRegistry.any_callbacks?
webmock_response ||= build_webmock_response(response)
WebMock::CallbackRegistry.invoke_callbacks(
{
lib: :async_http_client,
real_request: real_request
},
request_signature,
webmock_responseView on GitHub (pinned to b187df8827)
When it happens
Trigger: Thrown at lib/webmock/http_lib_adapters/async_http_client_adapter.rb:76 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/63faeb2ba2509ac9.
Report an issue: GitHub.