Issue with HTTPS resolving
``` HTTPX.with(resolver_class: :https, resolver_options: { cache: true, uri: 'https://dns.google/dns-query' }, debug: STDERR, debug_level: 2).get('https://www.google.com') ``` ``` resolver: query A for www.google.com.dashboard.svc.cluster.local resolver: answer A dns.google: [#<IPAddr: IPv4:8.8.4.4/255.255.255.255>, #<IPAddr: IPv4:8.8.8.8/255.255.255.255>] idle -> idle Connected to 8.8.8.8 (#5) 8.8.8.8 connected -> negotiated SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 ALPN, server accepted to use h2 Server certificate: subject: /CN=dns.google start date: 2023-11-20 08:09:52 UTC expire date: 2024-02-12 08:09:51 UTC issuer: /C=US/O=Google Trust Services LLC/CN=GTS CA 1C3 SSL certificate verify ok. 0: frame was sent! 0: {:type=>:settings, :stream=>0, :payload=>[[:settings_enable_push, 0], [:settings_max_concurrent_streams, 100]]} WRITE: 45 bytes... READ: 40 bytes... 0: frame was received! 0: {:length=>18, :type=>:settings, :flags=>[], :stream=>0, :payload=>[[:settings_max_concurrent_streams, 100], [:settings_initial_window_size, 1048576], [:settings_max_header_list_size, 65536]]} 0: frame was sent! 0: {:type=>:settings, :stream=>0, :payload=>[], :flags=>[:ack]} 0: frame was received! 0: {:length=>4, :type=>:window_update, :flags=>[], :stream=>0, :increment=>983041} WRITE: 9 bytes... READ: 9 bytes... 0: frame was received! 0: {:length=>0, :type=>:settings, :flags=>[:ack], :stream=>0, :payload=>[]} 1: -> HEADER: user-agent: ventrata.com 1: -> HEADER: accept: application/dns-message 1: -> HEADER: accept-encoding: gzip, deflate 1: -> HEADER: content-type: application/dns-message 1: -> HEADER: content-length: 60 1: -> HEADER: :scheme: https 1: -> HEADER: :method: POST 1: -> HEADER: :path: /dns-query 1: -> HEADER: :authority: dns.google 1: frame was sent! 1: {:type=>:headers, :flags=>[:end_headers], :payload=>#<Enumerator: {"user-agent"=>"ventrata.com", "accept"=>"application/dns-message", "accept-encoding"=>"gzip, deflate", "content-type"=>"application/dns-message", "content-length"=>"60"}:each({":scheme"=>"https", ":method"=>"POST", ":path"=>"/dns-query", ":authority"=>"dns.google"})>, :stream=>1} 1: -> DATA: 60 bytes... 1: -> "\u0000\u0002\u0001\u0000\u0000\u0001\u0000\u0000\u0000\u0000\u0000\u0000\u0003www\u0006google\u0003com\tdashboard\u0003svc\acluster\u0005local\u0000\u0000\u0001\u0000\u0001" 1: frame was sent! 1: {:type=>:data, :flags=>[:end_stream], :payload=>60, :stream=>1} 1: waiting for response... WRITE: 151 bytes... READ: 218 bytes... 1: frame was received! 1: {:length=>209, :type=>:headers, :flags=>[:end_headers], :stream=>1, :payload=>"\x88@\x90\xF2\xB1\x0FRKRVO\xAA\xCA\xB1\xEBI\x8FR?\x85\xA8\xE8\xA8\xD2\xCBx\xA0\xA4~V\x1C\xC5\x81\x90\xB6\xCB\x80\x00>\xD45D\xA2\xD9\v\xBA\xD8\xEF\x9E\x91\x9A\xA4}\xA9]\x85\xA0\xE3\x93\x0F\x12\x96\xDC4\xFD(\xC8\x14\xBER( \t\x95\x02+\x82\x05\xC18\xA6-\e\xFFd\x96\xDC4\xFD(\xC8\x14\xBER( \t\x95\x02+\x82\x05\xC18\xA6-\e\xFFX\x91\xAE\xC3w\x1AK\xF4\xA5#\xF2\xB0\xE6,\x0F8\xCB\xED\x7F_\x90\x1Du\xD0b\r&=LIR\x16\xA4\xA8@\xE6/v\x92\xC7\xBF~\xB5\x10[;\x96\xC5?\xABj\xEBQ\xFCU\xFD\xFF\\\x03135@\x8C\xF2\xB7\x94!j\xEC:JD\x98\xF5\x7F\x010@\x8B\xF2\xB4\xB6\x0E\x92\xACz\xD2c\xD4\x8F\x89\xDD\x0E\x8C\x1A\xB6\xE4\xC5\x93O"} 1: <- HEADER: :status: 200 1: <- HEADER: x-content-type-options: nosniff 1: <- HEADER: strict-transport-security: max-age=31536000; includeSubDomains; preload 1: <- HEADER: date: Sat, 30 Dec 2023 12:20:26 GMT 1: <- HEADER: expires: Sat, 30 Dec 2023 12:20:26 GMT 1: <- HEADER: cache-control: private, max-age=86394 1: <- HEADER: content-type: application/dns-message 1: <- HEADER: server: HTTP server (unknown) 1: <- HEADER: content-length: 135 1: <- HEADER: x-xss-protection: 0 1: <- HEADER: x-frame-options: SAMEORIGIN READ: 144 bytes... 1: frame was received! 1: {:length=>135, :type=>:data, :flags=>[], :stream=>1, :payload=>135} 1: <- DATA: 135 bytes... 1: <- "\x00\x02\x81\x83\x00\x01\x00\x00\x00\x01\x00\x00\x03www\x06google\x03com\tdashboard\x03svc\acluster\x05local\x00\x00\x01\x00\x01\x00\x00\x06\x00\x01\x00\x01Qz\x00@\x01a\froot-servers\x03net\x00\x05nstld\fverisign-grs\x03com\x00x\x96h8\x00\x00\a\b\x00\x00\x03\x84\x00\t:\x80\x00\x01Q\x80" READ: 9 bytes... 1: frame was received! 1: {:length=>0, :type=>:data, :flags=>[:end_stream], :stream=>1, :payload=>0} 1: <- DATA: 0 bytes... 1: <- "" 1: closing stream /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/resolver/resolver.rb:108:in `emit_resolve_error': Can't resolve www.google.com (HTTPX::ResolveError) from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/resolver/https.rb:143:in `parse' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/resolver/https.rb:121:in `on_response' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/callbacks.rb:24:in `block in emit' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/callbacks.rb:24:in `delete_if' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/callbacks.rb:24:in `emit' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/connection.rb:468:in `block in set_parser_callbacks' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/callbacks.rb:24:in `block in emit' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/callbacks.rb:24:in `delete_if' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/callbacks.rb:24:in `emit' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/connection/http2.rb:322:in `on_stream_close' from /usr/local/bundle/ruby/3.3.0/gems/http-2-next-1.0.2/lib/http/2/next/emitter.rb:36:in `block in emit' from /usr/local/bundle/ruby/3.3.0/gems/http-2-next-1.0.2/lib/http/2/next/emitter.rb:35:in `delete_if' from /usr/local/bundle/ruby/3.3.0/gems/http-2-next-1.0.2/lib/http/2/next/emitter.rb:35:in `emit' from /usr/local/bundle/ruby/3.3.0/gems/http-2-next-1.0.2/lib/http/2/next/stream.rb:639:in `close_stream_in_conn' from /usr/local/bundle/ruby/3.3.0/gems/http-2-next-1.0.2/lib/http/2/next/stream.rb:646:in `complete_transition' from /usr/local/bundle/ruby/3.3.0/gems/http-2-next-1.0.2/lib/http/2/next/stream.rb:162:in `receive' from /usr/local/bundle/ruby/3.3.0/gems/http-2-next-1.0.2/lib/http/2/next/connection.rb:350:in `receive' from /usr/local/bundle/ruby/3.3.0/gems/http-2-next-1.0.2/lib/http/2/next/client.rb:45:in `receive' from /usr/local/bundle/ruby/3.3.0/gems/http-2-next-1.0.2/lib/http/2/next/connection.rb:397:in `<<' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/connection/http2.rb:92:in `<<' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/connection.rb:359:in `block (3 levels) in consume' from <internal:kernel>:187:in `loop' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/connection.rb:342:in `block (2 levels) in consume' from <internal:kernel>:187:in `loop' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/connection.rb:311:in `block in consume' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/connection.rb:309:in `catch' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/connection.rb:309:in `consume' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/connection.rb:203:in `call' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/selector.rb:118:in `select_one' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/selector.rb:132:in `select' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/pool.rb:35:in `block in next_tick' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/pool.rb:27:in `catch' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/pool.rb:27:in `next_tick' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/session.rb:254:in `block (2 levels) in receive_requests' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/session.rb:254:in `catch' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/session.rb:254:in `block in receive_requests' from <internal:kernel>:187:in `loop' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/session.rb:249:in `receive_requests' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/session.rb:228:in `send_requests' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/session.rb:70:in `request' from /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/chainable.rb:8:in `get' from (irb):1:in `<main>' from /usr/lib/fullstaq-ruby/versions/3.3.0-jemalloc/lib/ruby/3.3.0/irb/workspace.rb:117:in `eval' from /usr/lib/fullstaq-ruby/versions/3.3.0-jemalloc/lib/ruby/3.3.0/irb/workspace.rb:117:in `evaluate' from /usr/lib/fullstaq-ruby/versions/3.3.0-jemalloc/lib/ruby/3.3.0/irb/context.rb:566:in `evaluate' from /usr/lib/fullstaq-ruby/versions/3.3.0-jemalloc/lib/ruby/3.3.0/irb.rb:1023:in `block (2 levels) in eval_input' from /usr/lib/fullstaq-ruby/versions/3.3.0-jemalloc/lib/ruby/3.3.0/irb.rb:1335:in `signal_status' from /usr/lib/fullstaq-ruby/versions/3.3.0-jemalloc/lib/ruby/3.3.0/irb.rb:1016:in `block in eval_input' from /usr/lib/fullstaq-ruby/versions/3.3.0-jemalloc/lib/ruby/3.3.0/irb.rb:1098:in `block in each_top_level_statement' from <internal:kernel>:187:in `loop' from /usr/lib/fullstaq-ruby/versions/3.3.0-jemalloc/lib/ruby/3.3.0/irb.rb:1093:in `each_top_level_statement' from /usr/lib/fullstaq-ruby/versions/3.3.0-jemalloc/lib/ruby/3.3.0/irb.rb:1015:in `eval_input' from /usr/lib/fullstaq-ruby/versions/3.3.0-jemalloc/lib/ruby/3.3.0/irb.rb:1002:in `block in run' from /usr/lib/fullstaq-ruby/versions/3.3.0-jemalloc/lib/ruby/3.3.0/irb.rb:1001:in `catch' from /usr/lib/fullstaq-ruby/versions/3.3.0-jemalloc/lib/ruby/3.3.0/irb.rb:1001:in `run' from /usr/lib/fullstaq-ruby/versions/3.3.0-jemalloc/lib/ruby/3.3.0/irb.rb:903:in `start' from /usr/local/bundle/ruby/3.3.0/gems/railties-7.0.8/lib/rails/commands/console/console_command.rb:74:in `start' from /usr/local/bundle/ruby/3.3.0/gems/railties-7.0.8/lib/rails/commands/console/console_command.rb:19:in `start' from /usr/local/bundle/ruby/3.3.0/gems/railties-7.0.8/lib/rails/commands/console/console_command.rb:106:in `perform' from /usr/local/bundle/ruby/3.3.0/gems/thor-1.3.0/lib/thor/command.rb:28:in `run' from /usr/local/bundle/ruby/3.3.0/gems/thor-1.3.0/lib/thor/invocation.rb:127:in `invoke_command' from /usr/local/bundle/ruby/3.3.0/gems/thor-1.3.0/lib/thor.rb:527:in `dispatch' from /usr/local/bundle/ruby/3.3.0/gems/railties-7.0.8/lib/rails/command/base.rb:87:in `perform' from /usr/local/bundle/ruby/3.3.0/gems/railties-7.0.8/lib/rails/command.rb:48:in `invoke' from /usr/local/bundle/ruby/3.3.0/gems/railties-7.0.8/lib/rails/commands.rb:18:in `<main>' from /usr/lib/fullstaq-ruby/versions/3.3.0-jemalloc/lib/ruby/3.3.0/bundled_gems.rb:74:in `require' from /usr/lib/fullstaq-ruby/versions/3.3.0-jemalloc/lib/ruby/3.3.0/bundled_gems.rb:74:in `block (2 levels) in replace_require' from /usr/local/bundle/ruby/3.3.0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require' from bin/rails:5:in `<main>' : frame was sent! : {:type=>:goaway, :last_stream=>1, :error=>:no_error, :payload=>nil} WRITE: 17 bytes... 8.8.8.8 negotiated -> closed => #<HTTPX::ErrorResponse:0x00007f4dd51d6418 @error=#<HTTPX::ResolveError: Can't resolve www.google.com>, @options= #<#<Class:0x00007f4de4506f48>:0x00007f4ddb954248 @body_threshold_size=114688, @buffer_size=16384, @compress_request_body=true, @connection_class=#<Class:0x00007f4de450c308>, @debug=#<IO:<STDERR>>, @debug_level=2, @decompress_response_body=true, @fallback_protocol="http/1.1", @headers={}, @headers_class=#<Class:0x00007f4de6151180>, @http2_settings={:settings_enable_push=>0}, @ip_families=[2], @max_requests=Infinity, @max_retries=3, @options_class=#<Class:0x00007f4de4506f48>, @persistent=false, @request_body_class=#<Class:0x00007f4de61500a0>, @request_class=#<Class:0x00007f4de4507bc8>, @resolver_class=:https, @resolver_options={:cache=>true, :uri=>"https://dns.google/dns-query"}, @response_body_class=#<Class:0x00007f4de61bfe78>, @response_class=#<Class:0x00007f4de4507628>, @retry_jitter=#<Proc:0x00007f4de1918648 /usr/local/bundle/ruby/3.3.0/gems/httpx-1.2.0/lib/httpx/plugins/retries.rb:29 (lambda)>, @ssl={}, @supported_compression_formats=["gzip", "deflate"], @timeout={:connect_timeout=>60, :settings_timeout=>10, :close_handshake_timeout=>10, :operation_timeout=>nil, :keep_alive_timeout=>20, :read_timeout=>60, :write_timeout=>60, :request_timeout=>nil}, @window_size=16384>, @request= #<HTTPX::Request:1401400 GET https://www.google.com @headers={"user-agent"=>["ventrata.com"], "accept"=>["*/*"], "accept-encoding"=>["gzip", "deflate"]} @body=#<#<Class:0x00007f4de61500a0>:0x00007f4dd7814ee0>>> irb(main):002> ```
issue