{"record":{"id":"f9df005aa3d7f2f6","repo":"bblimke/webmock","slug":"real-http-connections-are-disabled-unregistered-r-f9df00","errorCode":null,"errorMessage":"Real HTTP connections are disabled. Unregistered request: #{request_signature}","messagePattern":"Real HTTP connections are disabled\\. Unregistered request: #(.+?)","errorType":"exception","errorClass":"WebMock::NetConnectNotAllowedError","httpStatus":null,"severity":"error","filePath":"lib/webmock/http_lib_adapters/excon_adapter.rb","lineNumber":70,"sourceCode":"        end\n\n        def self.handle_request(params)\n          mock_request  = self.build_request params.dup\n          WebMock::RequestRegistry.instance.requested_signatures.put(mock_request)\n\n          if mock_response = WebMock::StubRegistry.instance.response_for_request(mock_request)\n            self.perform_callbacks(mock_request, mock_response, real_request: false)\n            response = self.real_response(mock_response)\n            response\n          elsif WebMock.net_connect_allowed?(mock_request.uri)\n            conn = new_excon_connection(params)\n            real_response = conn.request(request_params_from(params.merge(mock: false)))\n\n            ExconAdapter.perform_callbacks(mock_request, ExconAdapter.mock_response(real_response), real_request: true)\n\n            real_response.data\n          else\n            raise WebMock::NetConnectNotAllowedError.new(mock_request)\n          end\n        end\n\n        def self.new_excon_connection(params)\n          # Ensure the connection is constructed with the exact same args\n          # that the orginal connection was constructed with.\n          args = params.fetch(:__construction_args)\n          ::Excon::Connection.new(connection_params_from args.merge(mock: false))\n        end\n\n        def self.connection_params_from(hash)\n          hash = hash.dup\n          PARAMS_TO_DELETE.each { |key| hash.delete(key) }\n          hash\n        end\n\n        def self.request_params_from(hash)\n          hash = hash.dup","sourceCodeStart":52,"sourceCodeEnd":88,"githubUrl":"https://github.com/bblimke/webmock/blob/b187df8827e1f08a1684a8ddc0a5050dbd449c16/lib/webmock/http_lib_adapters/excon_adapter.rb#L52-L88","documentation":"Error \"Real HTTP connections are disabled. Unregistered request: #{request_signature}\" thrown in bblimke/webmock.","triggerScenarios":"Thrown at lib/webmock/http_lib_adapters/excon_adapter.rb:70 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b187df8827e1f08a1684a8ddc0a5050dbd449c16","analyzedAt":"2026-08-23T02:55:22.028Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}