bidi2pdf-rails 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16629,3 +16629,1765 @@ Filter chain halted as :authenticate_with_cookie rendered or redirected
16629
16629
  Completed 401 Unauthorized in 12ms (Views: 0.3ms | GC: 0.0ms)
16630
16630
 
16631
16631
 
16632
+ Started GET "/convert-remote-url-basic-auth2" for 127.0.0.1 at 2025-04-22 08:28:53 +0200
16633
+
16634
+ ActionController::RoutingError (No route matches [GET] "/convert-remote-url-basic-auth2"):
16635
+
16636
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:28:53 +0200
16637
+
16638
+ ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
16639
+
16640
+ Started GET "/501" for 127.0.0.1 at 2025-04-22 08:38:25 +0200
16641
+
16642
+ SyntaxError (/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/config/routes.rb:16: syntax error, unexpected local variable or method, expecting ']'
16643
+ ...plain' }, ["#{code.to_i}" error]] }
16644
+ ... ^~~~~
16645
+ ):
16646
+
16647
+ config/routes.rb:16: syntax error, unexpected local variable or method, expecting ']'
16648
+ Started GET "/501" for 127.0.0.1 at 2025-04-22 08:39:19 +0200
16649
+
16650
+ SyntaxError (/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/config/routes.rb:16: syntax error, unexpected local variable or method, expecting ']'
16651
+ ...plain' }, ["#{code.to_i}" error]] }
16652
+ ... ^~~~~
16653
+ ):
16654
+
16655
+ config/routes.rb:16: syntax error, unexpected local variable or method, expecting ']'
16656
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:39:19 +0200
16657
+
16658
+ ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
16659
+
16660
+ Started GET "/501" for 127.0.0.1 at 2025-04-22 08:39:39 +0200
16661
+
16662
+ ActionController::RoutingError (No route matches [GET] "/501"):
16663
+
16664
+ Started GET "/501" for 127.0.0.1 at 2025-04-22 08:40:00 +0200
16665
+
16666
+ NoMethodError (undefined method `to_i' for an instance of Hash):
16667
+
16668
+ config/routes.rb:16:in `block (2 levels) in <top (required)>'
16669
+ Started GET "/501" for 127.0.0.1 at 2025-04-22 08:40:11 +0200
16670
+
16671
+ NameError (undefined local variable or method `code' for an instance of ActionDispatch::Routing::Mapper):
16672
+
16673
+ config/routes.rb:16:in `block (2 levels) in <top (required)>'
16674
+ Started GET "/501" for 127.0.0.1 at 2025-04-22 08:40:37 +0200
16675
+ Started GET "/501" for 127.0.0.1 at 2025-04-22 08:41:16 +0200
16676
+
16677
+ SystemStackError (stack level too deep):
16678
+
16679
+ config/routes.rb:16:in `block (2 levels) in <top (required)>'
16680
+ Started GET "/501" for 127.0.0.1 at 2025-04-22 08:41:51 +0200
16681
+ Started GET "/501" for 127.0.0.1 at 2025-04-22 08:42:46 +0200
16682
+ [bidi2pdf] Closing session
16683
+ [bidi2pdf_rails] Sending command: session.end id: #52
16684
+ [bidi2pdf_rails] Sending command: {:id=>52, :method=>"session.end", :params=>{}} (0.1ms)
16685
+ [bidi2pdf_rails] Error sending command: {} (1005.6ms) - ["Bidi2pdf::CmdTimeoutError", "Timeout waiting for response to command ID 52"]
16686
+ [bidi2pdf_rails] Session close error: #<Bidi2pdf::CmdTimeoutError: Timeout waiting for response to command ID 52>, attempt: 1, retry: true
16687
+ [bidi2pdf-rails] WebSocket session closed
16688
+ [bidi2pdf_rails] Sending command: session.end id: #53
16689
+ [bidi2pdf_rails] Sending command: {:id=>53, :method=>"session.end", :params=>{}} (0.5ms)
16690
+ [bidi2pdf_rails] Error sending command: {} (1005.6ms) - ["Bidi2pdf::CmdTimeoutError", "Timeout waiting for response to command ID 53"]
16691
+ [bidi2pdf_rails] Session close error: #<Bidi2pdf::CmdTimeoutError: Timeout waiting for response to command ID 53>, attempt: 2, retry: false
16692
+ [bidi2pdf] Stopping Chromedriver (PID 38113)
16693
+ [bidi2pdf-rails] Shutting down Bidi2pdf ChromeDriver manager
16694
+ [bidi2pdf] websocket-native available; use enhance performance.
16695
+ [bidi2pdf] websocket-native available; use enhance performance.
16696
+ [bidi2pdf] websocket-native available; use enhance performance.
16697
+ [bidi2pdf-rails] Initializing Bidi2pdf ChromeDriver manager
16698
+ [bidi2pdf] Checking current version
16699
+ [bidi2pdf] /Users/fastjack/.webdrivers/chromedriver is already downloaded
16700
+ [bidi2pdf] making System call: ["/Users/fastjack/.webdrivers/chromedriver", "--version"]
16701
+ [bidi2pdf] System call returned: ChromeDriver 135.0.7049.95 (de2eb485a1951079e63bdb57ce25544d2dc79c15-refs/branch-heads/7049@{#1836})
16702
+
16703
+ [bidi2pdf] Current version of /Users/fastjack/.webdrivers/chromedriver is ChromeDriver 135.0.7049.95 (de2eb485a1951079e63bdb57ce25544d2dc79c15-refs/branch-heads/7049@{#1836})
16704
+
16705
+ [bidi2pdf] making System call: ["/Applications/Google Chrome.app/Contents/MacOS/Google Chrome", "--version"]
16706
+ [bidi2pdf] System call returned: Google Chrome 135.0.7049.96
16707
+
16708
+ [bidi2pdf] Browser version: Google Chrome 135.0.7049.96
16709
+ [bidi2pdf] Checking current version
16710
+ [bidi2pdf] /Users/fastjack/.webdrivers/chromedriver is already downloaded
16711
+ [bidi2pdf] making System call: ["/Users/fastjack/.webdrivers/chromedriver", "--version"]
16712
+ [bidi2pdf] System call returned: ChromeDriver 135.0.7049.95 (de2eb485a1951079e63bdb57ce25544d2dc79c15-refs/branch-heads/7049@{#1836})
16713
+
16714
+ [bidi2pdf] Current version of /Users/fastjack/.webdrivers/chromedriver is ChromeDriver 135.0.7049.95 (de2eb485a1951079e63bdb57ce25544d2dc79c15-refs/branch-heads/7049@{#1836})
16715
+
16716
+ [bidi2pdf] Starting download from: https://googlechromelabs.github.io/chrome-for-testing/latest-patch-versions-per-build.json
16717
+ [bidi2pdf] No proxy is being used.
16718
+ [bidi2pdf] Sending HTTP GET request...
16719
+ [bidi2pdf] making System call: ["/Applications/Google Chrome.app/Contents/MacOS/Google Chrome", "--version"]
16720
+ [bidi2pdf] System call returned: Google Chrome 135.0.7049.96
16721
+
16722
+ [bidi2pdf] Browser version: Google Chrome 135.0.7049.96
16723
+ [bidi2pdf] A working webdriver version is already on the system
16724
+ [bidi2pdf] Starting Chromedriver with command: /Users/fastjack/.webdrivers/chromedriver --user-data-dir /var/folders/pk/6c774xdj36q3l1w84s0c58r40000gp/T/bidi2pdf/user_data/7c2db1170e5ce945
16725
+ [bidi2pdf] [D1] Starting ChromeDriver 135.0.7049.95 (de2eb485a1951079e63bdb57ce25544d2dc79c15-refs/branch-heads/7049@{#1836}) on port 0
16726
+ [bidi2pdf] [D1] Only local connections are allowed.
16727
+ [bidi2pdf] [D1] Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
16728
+ [bidi2pdf] [D1] ChromeDriver was started successfully on port 56948.
16729
+ [bidi2pdf] Found port: 56948 setup port: 0
16730
+ [bidi2pdf] Started Chromedriver on port 56948, PID 99559
16731
+ [bidi2pdf] Session data: {"value"=>{"capabilities"=>{"acceptInsecureCerts"=>true, "browserName"=>"chrome", "browserVersion"=>"135.0.7049.96", "chrome"=>{"chromedriverVersion"=>"135.0.7049.95 (de2eb485a1951079e63bdb57ce25544d2dc79c15-refs/branch-heads/7049@{#1836})", "userDataDir"=>"/var/folders/pk/6c774xdj36q3l1w84s0c58r40000gp/T/.org.chromium.Chromium.ya5mpP"}, "fedcm:accounts"=>true, "goog:chromeOptions"=>{"debuggerAddress"=>"localhost:56951"}, "networkConnectionEnabled"=>false, "pageLoadStrategy"=>"normal", "platformName"=>"mac", "proxy"=>{}, "setWindowRect"=>true, "strictFileInteractability"=>false, "timeouts"=>{"implicit"=>0, "pageLoad"=>300000, "script"=>30000}, "unhandledPromptBehavior"=>{"default"=>"ignore"}, "webSocketUrl"=>"ws://localhost:56948/session/815b76cccb824e0be0481832990fe6dd", "webauthn:extension:credBlob"=>true, "webauthn:extension:largeBlob"=>true, "webauthn:extension:minPinLength"=>true, "webauthn:extension:prf"=>true, "webauthn:virtualAuthenticators"=>true}, "sessionId"=>"815b76cccb824e0be0481832990fe6dd"}}
16732
+ [bidi2pdf] Created session with ID: 815b76cccb824e0be0481832990fe6dd
16733
+ [bidi2pdf] WebSocket URL: ws://localhost:56948/session/815b76cccb824e0be0481832990fe6dd
16734
+ [bidi2pdf] Registering WebSocket event listeners
16735
+ [bidi2pdf] WebSocket connection is open
16736
+ Started GET "/501" for 127.0.0.1 at 2025-04-22 08:42:55 +0200
16737
+ Started GET "/501" for 127.0.0.1 at 2025-04-22 08:43:19 +0200
16738
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:43:19 +0200
16739
+ Started GET "/501" for 127.0.0.1 at 2025-04-22 08:43:54 +0200
16740
+ Started GET "/error/501" for 127.0.0.1 at 2025-04-22 08:46:45 +0200
16741
+
16742
+ AbstractController::ActionNotFound (The action 'error' could not be found for ReportsController):
16743
+
16744
+ actionpack (7.2.2.1) lib/abstract_controller/base.rb:158:in `process'
16745
+ actionview (7.2.2.1) lib/action_view/rendering.rb:40:in `process'
16746
+ actionpack (7.2.2.1) lib/action_controller/metal.rb:252:in `dispatch'
16747
+ actionpack (7.2.2.1) lib/action_controller/metal.rb:335:in `dispatch'
16748
+ actionpack (7.2.2.1) lib/action_dispatch/routing/route_set.rb:67:in `dispatch'
16749
+ actionpack (7.2.2.1) lib/action_dispatch/routing/route_set.rb:50:in `serve'
16750
+ actionpack (7.2.2.1) lib/action_dispatch/journey/router.rb:53:in `block in serve'
16751
+ actionpack (7.2.2.1) lib/action_dispatch/journey/router.rb:133:in `block in find_routes'
16752
+ actionpack (7.2.2.1) lib/action_dispatch/journey/router.rb:126:in `each'
16753
+ actionpack (7.2.2.1) lib/action_dispatch/journey/router.rb:126:in `find_routes'
16754
+ actionpack (7.2.2.1) lib/action_dispatch/journey/router.rb:34:in `serve'
16755
+ actionpack (7.2.2.1) lib/action_dispatch/routing/route_set.rb:896:in `call'
16756
+ rack (3.1.13) lib/rack/tempfile_reaper.rb:20:in `call'
16757
+ rack (3.1.13) lib/rack/etag.rb:29:in `call'
16758
+ rack (3.1.13) lib/rack/conditional_get.rb:31:in `call'
16759
+ rack (3.1.13) lib/rack/head.rb:15:in `call'
16760
+ actionpack (7.2.2.1) lib/action_dispatch/http/permissions_policy.rb:38:in `call'
16761
+ actionpack (7.2.2.1) lib/action_dispatch/http/content_security_policy.rb:38:in `call'
16762
+ rack-session (2.1.0) lib/rack/session/abstract/id.rb:274:in `context'
16763
+ rack-session (2.1.0) lib/rack/session/abstract/id.rb:268:in `call'
16764
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/cookies.rb:704:in `call'
16765
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/callbacks.rb:31:in `block in call'
16766
+ activesupport (7.2.2.1) lib/active_support/callbacks.rb:101:in `run_callbacks'
16767
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/callbacks.rb:30:in `call'
16768
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/executor.rb:16:in `call'
16769
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
16770
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:31:in `call'
16771
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/show_exceptions.rb:32:in `call'
16772
+ railties (7.2.2.1) lib/rails/rack/logger.rb:41:in `call_app'
16773
+ railties (7.2.2.1) lib/rails/rack/logger.rb:29:in `call'
16774
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/remote_ip.rb:96:in `call'
16775
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/request_id.rb:33:in `call'
16776
+ rack (3.1.13) lib/rack/method_override.rb:28:in `call'
16777
+ rack (3.1.13) lib/rack/runtime.rb:24:in `call'
16778
+ activesupport (7.2.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
16779
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/server_timing.rb:61:in `block in call'
16780
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/server_timing.rb:26:in `collect_events'
16781
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/server_timing.rb:60:in `call'
16782
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/executor.rb:16:in `call'
16783
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/static.rb:27:in `call'
16784
+ rack (3.1.13) lib/rack/sendfile.rb:114:in `call'
16785
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/host_authorization.rb:143:in `call'
16786
+ rack-cors (2.0.2) lib/rack/cors.rb:102:in `call'
16787
+ railties (7.2.2.1) lib/rails/engine.rb:535:in `call'
16788
+ puma (6.6.0) lib/puma/configuration.rb:279:in `call'
16789
+ puma (6.6.0) lib/puma/request.rb:99:in `block in handle_request'
16790
+ puma (6.6.0) lib/puma/thread_pool.rb:390:in `with_force_shutdown'
16791
+ puma (6.6.0) lib/puma/request.rb:98:in `handle_request'
16792
+ puma (6.6.0) lib/puma/server.rb:472:in `process_client'
16793
+ puma (6.6.0) lib/puma/server.rb:254:in `block in run'
16794
+ puma (6.6.0) lib/puma/thread_pool.rb:167:in `block in spawn_thread'
16795
+ Started GET "/convert-remote-url-error/501" for 127.0.0.1 at 2025-04-22 08:47:50 +0200
16796
+ Processing by ReportsController#convert_remote_url_error as HTML
16797
+ Parameters: {"code"=>"501"}
16798
+ [bidi2pdf] Subscribing to events
16799
+ [bidi2pdf] Registering WebSocket event listeners
16800
+ [bidi2pdf] Waiting for WebSocket connection to open
16801
+ [bidi2pdf] WebSocket connection is open
16802
+ [bidi2pdf_rails] Sending command: session.subscribe id: #1
16803
+ [bidi2pdf_rails] Sending command: {:id=>1, :method=>"session.subscribe", :params=>{:events=>["script"]}} (0.7ms)
16804
+ [bidi2pdf_rails] Sending command: browser.createUserContext id: #2
16805
+ [bidi2pdf_rails] Sending command: {:id=>2, :method=>"browser.createUserContext", :params=>{}} (0.1ms)
16806
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"C47C4AF7F10710A2525AFCB7D36D4427", "origin"=>"null", "realm"=>"4110129644193531776.-2763443739444751188", "type"=>"window"}
16807
+ [bidi2pdf] User context created: "B7D908913B3A133FC318DB267F18C521"
16808
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #3
16809
+ [bidi2pdf_rails] Sending command: {:id=>3, :method=>"browsingContext.create", :params=>{:type=>"window", :userContext=>"B7D908913B3A133FC318DB267F18C521", :background=>false}} (0.1ms)
16810
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"5CBF7C2F09E637FD2D1493A42BD81001", "origin"=>"null", "realm"=>"-8846161791232624929.151252711220955226", "type"=>"window"}
16811
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #4
16812
+ [bidi2pdf_rails] Sending command: {:id=>4, :method=>"browsingContext.create", :params=>{:type=>"tab", :userContext=>"B7D908913B3A133FC318DB267F18C521", :background=>false}} (0.1ms)
16813
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"B4DAD6DF81EB4148ECE9B8F24737A7AE", "origin"=>"null", "realm"=>"5473041115127476090.2530336179994201665", "type"=>"window"}
16814
+ [bidi2pdf] [D1] Created new browser tab: #<Bidi2pdf::Bidi::BrowserTab:0x000000012d020cf0 @client=#<Bidi2pdf::Bidi::Client:0x000000012cf276c8 @ws_url="ws://localhost:56948/session/815b76cccb824e0be0481832990fe6dd", @started=true, @connection_manager=#<Bidi2pdf::Bidi::ConnectionManager:0x000000012cf275d8 @logger=#<ActiveSupport::Logger:0x000000012cb08ee8 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x000000012beff2c8 @datetime_format=nil>, @formatter=#<ActiveSupport::Logger::SimpleFormatter:0x000000012c7e7ca0 @datetime_format=nil, @thread_key="activesupport_tagged_logging_tags:7140", @tag_stack=#<ActiveSupport::TaggedLogging::TagStack:0x000000012c7e7368 @tags=["bidi2pdf"], @tags_string=nil>>, @logdev=#<Logger::LogDevice:0x000000012c4264b8 @shift_period_suffix="%Y%m%d", @shift_size=104857600, @shift_age=1, @filename="/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log", @dev=#<File:/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log>, @binmode=false, @reraise_write_errors=[], @skip_header=false, @mon_data=#<Monitor:0x000000012befefd0>, @mon_data_owner_object_id=4940>, @level_override={}, @local_level_key=:logger_thread_safe_level_7800>, @connected=true, @connection_queue=#<Thread::Queue:0x000000012cf27560>>, @socket=#<WebSocket::Client::Simple::Client:0x000000012cf272e0 @__events=[{:type=>:open, :listener=>#<Proc:0x000000012cf262f0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x000000012cf262a0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x000000012cf26278 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x000000012cf261d8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x000000012d006f58 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:56948/session/815b76cccb824e0be0481832990fe6dd", @socket=#<TCPSocket:fd 17, AF_INET6, ::1, 56958>, @handshake=<WebSocket::Handshake::Client:0x000041f0 @url="ws://localhost:56948/session/815b76cccb824e0be0481832990fe6dd", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"gmVbBJsroKfHn18A9sUzcs0J270="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x000000012d046040 @handshake=<WebSocket::Handshake::Client:0x000041f0 @url="ws://localhost:56948/session/815b76cccb824e0be0481832990fe6dd", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"gmVbBJsroKfHn18A9sUzcs0J270="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x000000012d046040 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: gmVbBJsroKfHn18A9sUzcs0J270=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=56948, @path="/session/815b76cccb824e0be0481832990fe6dd", @query=nil, @version=13, @leftovers="">, @key="pREe1lNUbNSnxh1GPLqxjg==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: gmVbBJsroKfHn18A9sUzcs0J270=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=56948, @path="/session/815b76cccb824e0be0481832990fe6dd", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x000000012d006f08 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @command_manager=#<Bidi2pdf::Bidi::CommandManager:0x000000012cf26fe8 @socket=#<WebSocket::Client::Simple::Client:0x000000012cf272e0 @__events=[{:type=>:open, :listener=>#<Proc:0x000000012cf262f0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x000000012cf262a0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x000000012cf26278 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x000000012cf261d8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x000000012d006f58 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:56948/session/815b76cccb824e0be0481832990fe6dd", @socket=#<TCPSocket:fd 17, AF_INET6, ::1, 56958>, @handshake=<WebSocket::Handshake::Client:0x000041f0 @url="ws://localhost:56948/session/815b76cccb824e0be0481832990fe6dd", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"gmVbBJsroKfHn18A9sUzcs0J270="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x000000012d046040 @handshake=<WebSocket::Handshake::Client:0x000041f0 @url="ws://localhost:56948/session/815b76cccb824e0be0481832990fe6dd", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"gmVbBJsroKfHn18A9sUzcs0J270="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x000000012d046040 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: gmVbBJsroKfHn18A9sUzcs0J270=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=56948, @path="/session/815b76cccb824e0be0481832990fe6dd", @query=nil, @version=13, @leftovers="">, @key="pREe1lNUbNSnxh1GPLqxjg==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: gmVbBJsroKfHn18A9sUzcs0J270=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=56948, @path="/session/815b76cccb824e0be0481832990fe6dd", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x000000012d006f08 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @pending_responses={}, @initiated_cmds={}>, @dispatcher=#<Bidi2pdf::Bidi::WebSocketDispatcher:0x000000012cf26a20 @socket=#<WebSocket::Client::Simple::Client:0x000000012cf272e0 @__events=[{:type=>:open, :listener=>#<Proc:0x000000012cf262f0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x000000012cf262a0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x000000012cf26278 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x000000012cf261d8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x000000012d006f58 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:56948/session/815b76cccb824e0be0481832990fe6dd", @socket=#<TCPSocket:fd 17, AF_INET6, ::1, 56958>, @handshake=<WebSocket::Handshake::Client:0x000041f0 @url="ws://localhost:56948/session/815b76cccb824e0be0481832990fe6dd", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"gmVbBJsroKfHn18A9sUzcs0J270="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x000000012d046040 @handshake=<WebSocket::Handshake::Client:0x000041f0 @url="ws://localhost:56948/session/815b76cccb824e0be0481832990fe6dd", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"gmVbBJsroKfHn18A9sUzcs0J270="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x000000012d046040 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: gmVbBJsroKfHn18A9sUzcs0J270=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=56948, @path="/session/815b76cccb824e0be0481832990fe6dd", @query=nil, @version=13, @leftovers="">, @key="pREe1lNUbNSnxh1GPLqxjg==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: gmVbBJsroKfHn18A9sUzcs0J270=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=56948, @path="/session/815b76cccb824e0be0481832990fe6dd", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x000000012d006f08 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @socket_events=#<Bidi2pdf::Bidi::EventManager:0x000000012cf26958 @listeners={:open=>[#<Proc:0x000000012cf26660 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:55>], :message=>[#<Proc:0x000000012cf26598 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:56>], :close=>[#<Proc:0x000000012d006198 /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/chromedriver_manager_singleton.rb:36>]}, @type="socket-event">, @session_events=#<Bidi2pdf::Bidi::EventManager:0x000000012cf26868 @listeners={}, @type="session-event">>>, @browsing_context_id="B4DAD6DF81EB4148ECE9B8F24737A7AE", @user_context_id="B7D908913B3A133FC318DB267F18C521", @tabs=[], @network_events=#<Bidi2pdf::Bidi::NetworkEvents:0x000000012cf64d48 @context_id="B4DAD6DF81EB4148ECE9B8F24737A7AE", @events={}, @network_event_formatter=#<Bidi2pdf::Bidi::NetworkEventFormatters::NetworkEventConsoleFormatter:0x000000012cf64cf8 @color_enabled=true, @logger=#<Logger:0x000000012cb08d58 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x000000012c7e5ba8 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @logger_events=#<Bidi2pdf::Bidi::LoggerEvents:0x000000012cf64cd0 @context_id="B4DAD6DF81EB4148ECE9B8F24737A7AE", @browser_console_logger=#<Bidi2pdf::Bidi::BrowserConsoleLogger:0x000000012cf64ca8 @logger=#<Logger:0x000000012cb08c68 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x000000012c7e5900 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @navigation_failed_events=#<Bidi2pdf::Bidi::NavigationFailedEvents:0x000000012cf64c80 @context_id="B4DAD6DF81EB4148ECE9B8F24737A7AE">, @open=true>
16815
+ [bidi2pdf_rails] Sending command: session.subscribe id: #5
16816
+ [bidi2pdf_rails] Sending command: {:id=>5, :method=>"session.subscribe", :params=>{:events=>["network.beforeRequestSent", "network.responseStarted", "network.responseCompleted", "network.fetchError"]}} (0.4ms)
16817
+ [bidi2pdf_rails] Sending command: session.subscribe id: #6
16818
+ [bidi2pdf_rails] Sending command: {:id=>6, :method=>"session.subscribe", :params=>{:events=>["log.entryAdded"]}} (0.1ms)
16819
+ [bidi2pdf_rails] Sending command: session.subscribe id: #7
16820
+ [bidi2pdf_rails] Sending command: {:id=>7, :method=>"session.subscribe", :params=>{:events=>["browsingContext.navigationFailed"]}} (0.1ms)
16821
+ [bidi2pdf_rails] Sending command: browsingContext.navigate id: #8
16822
+ [bidi2pdf_rails] Sending command: {:id=>8, :method=>"browsingContext.navigate", :params=>{:url=>"http://127.0.0.1:3000/501", :context=>"B4DAD6DF81EB4148ECE9B8F24737A7AE", :wait=>"complete"}} (0.5ms)
16823
+ Started GET "/501" for 127.0.0.1 at 2025-04-22 08:47:50 +0200
16824
+ [bidi2pdf_rails] Error sending command: {:url=>"http://127.0.0.1:3000/501", :context=>"B4DAD6DF81EB4148ECE9B8F24737A7AE", :wait=>"complete"} (10005.3ms) - ["Bidi2pdf::CmdTimeoutError", "Timeout waiting for response to command ID 8"]
16825
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #9
16826
+ [bidi2pdf_rails] Sending command: {:id=>9, :method=>"browsingContext.close", :params=>{:context=>"B4DAD6DF81EB4148ECE9B8F24737A7AE"}} (0.2ms)
16827
+ [bidi2pdf_rails] [network] ┌─ Network Event ──────────────────────────────────────
16828
+ [bidi2pdf_rails] [network] │ Request: GET http://127.0.0.1:3000/501
16829
+ [bidi2pdf_rails] [network] │ State: error
16830
+ [bidi2pdf_rails] [network] │ Status: pending
16831
+ [bidi2pdf_rails] [network] │ Started: 2025-04-22 06:47:50.605 UTC
16832
+ [bidi2pdf_rails] [network] │ Ended: 2025-04-22 06:47:50.605 UTC
16833
+ [bidi2pdf_rails] [network] │ Duration: 0.0s
16834
+ [bidi2pdf_rails] [network] │ Received: N/A
16835
+ [bidi2pdf_rails] [network] │
16836
+ [bidi2pdf_rails] [network] │ Timing Phases:
16837
+ [bidi2pdf_rails] [network] │ Request time : 0 ms
16838
+ [bidi2pdf_rails] [network] │ Dns start : 0 ms
16839
+ [bidi2pdf_rails] [network] │ Dns end : 0 ms
16840
+ [bidi2pdf_rails] [network] │ Connect start : 0 ms
16841
+ [bidi2pdf_rails] [network] │ Connect end : 0 ms
16842
+ [bidi2pdf_rails] [network] └──────────────────────────────────────────────────────
16843
+ [bidi2pdf] Navigation failed for URL: http://127.0.0.1:3000/501, Navigation: 0adc096f-810d-4056-b8d8-feb2ed7a6f08
16844
+ [bidi2pdf_rails] Received error: "unknown error" for cmd: 8
16845
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"5473041115127476090.2530336179994201665"}
16846
+ [bidi2pdf] Browsing context closed: B4DAD6DF81EB4148ECE9B8F24737A7AE {"id"=>9, "result"=>{}, "type"=>"success"}
16847
+ [bidi2pdf] Closed tab: B4DAD6DF81EB4148ECE9B8F24737A7AE
16848
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #10
16849
+ [bidi2pdf_rails] Sending command: {:id=>10, :method=>"browsingContext.close", :params=>{:context=>"5CBF7C2F09E637FD2D1493A42BD81001"}} (0.1ms)
16850
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"-8846161791232624929.151252711220955226"}
16851
+ [bidi2pdf] Browsing context closed: 5CBF7C2F09E637FD2D1493A42BD81001 {"id"=>10, "result"=>{}, "type"=>"success"}
16852
+ [bidi2pdf_rails] Sending command: browser.removeUserContext id: #11
16853
+ [bidi2pdf_rails] Sending command: {:id=>11, :method=>"browser.removeUserContext", :params=>{:userContext=>"B7D908913B3A133FC318DB267F18C521"}} (0.1ms)
16854
+ [bidi2pdf] User context deleted: {}
16855
+ [bidi2pdf_rails] Page rendered and printed: 10340.5ms
16856
+ Completed 500 Internal Server Error in 10387ms (GC: 6.2ms)
16857
+
16858
+
16859
+
16860
+ Bidi2pdf::CmdTimeoutError (Timeout waiting for response to command ID 8):
16861
+
16862
+ /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/command_manager.rb:54:in `block in send_cmd_and_wait'
16863
+ activesupport (7.2.2.1) lib/active_support/notifications.rb:210:in `block in instrument'
16864
+ activesupport (7.2.2.1) lib/active_support/notifications/instrumenter.rb:58:in `instrument'
16865
+ activesupport (7.2.2.1) lib/active_support/notifications.rb:210:in `instrument'
16866
+ /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/command_manager.rb:45:in `send_cmd_and_wait'
16867
+ /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:101:in `send_cmd_and_wait'
16868
+ /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/browser_tab.rb:412:in `navigate_with_listeners'
16869
+ /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/browser_tab.rb:183:in `block in navigate_to'
16870
+ activesupport (7.2.2.1) lib/active_support/notifications.rb:210:in `block in instrument'
16871
+ activesupport (7.2.2.1) lib/active_support/notifications/instrumenter.rb:58:in `instrument'
16872
+ activesupport (7.2.2.1) lib/active_support/notifications.rb:210:in `instrument'
16873
+ /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/browser_tab.rb:182:in `navigate_to'
16874
+ /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/services/url_to_pdf_converter.rb:30:in `prepare_tab'
16875
+ /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/services/pdf_browser_session.rb:16:in `block (2 levels) in run_browser_session'
16876
+ activesupport (7.2.2.1) lib/active_support/execution_wrapper.rb:91:in `wrap'
16877
+ /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/services/pdf_browser_session.rb:9:in `block in run_browser_session'
16878
+ [bidi2pdf] Closing session
16879
+ [bidi2pdf_rails] Sending command: session.end id: #12
16880
+ [bidi2pdf_rails] Sending command: {:id=>12, :method=>"session.end", :params=>{}} (0.4ms)
16881
+ [bidi2pdf_rails] Error sending command: {} (1005.7ms) - ["Bidi2pdf::CmdTimeoutError", "Timeout waiting for response to command ID 12"]
16882
+ [bidi2pdf_rails] Session close error: #<Bidi2pdf::CmdTimeoutError: Timeout waiting for response to command ID 12>, attempt: 1, retry: true
16883
+ [bidi2pdf-rails] WebSocket session closed
16884
+ [bidi2pdf_rails] Sending command: session.end id: #13
16885
+ [bidi2pdf_rails] Sending command: {:id=>13, :method=>"session.end", :params=>{}} (0.3ms)
16886
+ [bidi2pdf_rails] Error sending command: {} (1004.4ms) - ["Bidi2pdf::CmdTimeoutError", "Timeout waiting for response to command ID 13"]
16887
+ [bidi2pdf_rails] Session close error: #<Bidi2pdf::CmdTimeoutError: Timeout waiting for response to command ID 13>, attempt: 2, retry: false
16888
+ [bidi2pdf] Stopping Chromedriver (PID 99559)
16889
+ [bidi2pdf-rails] Shutting down Bidi2pdf ChromeDriver manager
16890
+ [bidi2pdf] websocket-native available; use enhance performance.
16891
+ [bidi2pdf] websocket-native available; use enhance performance.
16892
+ [bidi2pdf] websocket-native available; use enhance performance.
16893
+ [bidi2pdf-rails] Initializing Bidi2pdf ChromeDriver manager
16894
+ [bidi2pdf] Checking current version
16895
+ [bidi2pdf] /Users/fastjack/.webdrivers/chromedriver is already downloaded
16896
+ [bidi2pdf] making System call: ["/Users/fastjack/.webdrivers/chromedriver", "--version"]
16897
+ [bidi2pdf] System call returned: ChromeDriver 135.0.7049.95 (de2eb485a1951079e63bdb57ce25544d2dc79c15-refs/branch-heads/7049@{#1836})
16898
+
16899
+ [bidi2pdf] Current version of /Users/fastjack/.webdrivers/chromedriver is ChromeDriver 135.0.7049.95 (de2eb485a1951079e63bdb57ce25544d2dc79c15-refs/branch-heads/7049@{#1836})
16900
+
16901
+ [bidi2pdf] making System call: ["/Applications/Google Chrome.app/Contents/MacOS/Google Chrome", "--version"]
16902
+ [bidi2pdf] System call returned: Google Chrome 135.0.7049.96
16903
+
16904
+ [bidi2pdf] Browser version: Google Chrome 135.0.7049.96
16905
+ [bidi2pdf] Checking current version
16906
+ [bidi2pdf] /Users/fastjack/.webdrivers/chromedriver is already downloaded
16907
+ [bidi2pdf] making System call: ["/Users/fastjack/.webdrivers/chromedriver", "--version"]
16908
+ [bidi2pdf] System call returned: ChromeDriver 135.0.7049.95 (de2eb485a1951079e63bdb57ce25544d2dc79c15-refs/branch-heads/7049@{#1836})
16909
+
16910
+ [bidi2pdf] Current version of /Users/fastjack/.webdrivers/chromedriver is ChromeDriver 135.0.7049.95 (de2eb485a1951079e63bdb57ce25544d2dc79c15-refs/branch-heads/7049@{#1836})
16911
+
16912
+ [bidi2pdf] Starting download from: https://googlechromelabs.github.io/chrome-for-testing/latest-patch-versions-per-build.json
16913
+ [bidi2pdf] No proxy is being used.
16914
+ [bidi2pdf] Sending HTTP GET request...
16915
+ [bidi2pdf] making System call: ["/Applications/Google Chrome.app/Contents/MacOS/Google Chrome", "--version"]
16916
+ [bidi2pdf] System call returned: Google Chrome 135.0.7049.96
16917
+
16918
+ [bidi2pdf] Browser version: Google Chrome 135.0.7049.96
16919
+ [bidi2pdf] A working webdriver version is already on the system
16920
+ [bidi2pdf] Starting Chromedriver with command: /Users/fastjack/.webdrivers/chromedriver --user-data-dir /var/folders/pk/6c774xdj36q3l1w84s0c58r40000gp/T/bidi2pdf/user_data/30699f141d644f93
16921
+ [bidi2pdf] [D1] Starting ChromeDriver 135.0.7049.95 (de2eb485a1951079e63bdb57ce25544d2dc79c15-refs/branch-heads/7049@{#1836}) on port 0
16922
+ [bidi2pdf] [D1] Only local connections are allowed.
16923
+ [bidi2pdf] [D1] Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
16924
+ [bidi2pdf] [D1] ChromeDriver was started successfully on port 57233.
16925
+ [bidi2pdf] Found port: 57233 setup port: 0
16926
+ [bidi2pdf] Started Chromedriver on port 57233, PID 13220
16927
+ [bidi2pdf] Session data: {"value"=>{"capabilities"=>{"acceptInsecureCerts"=>true, "browserName"=>"chrome", "browserVersion"=>"135.0.7049.96", "chrome"=>{"chromedriverVersion"=>"135.0.7049.95 (de2eb485a1951079e63bdb57ce25544d2dc79c15-refs/branch-heads/7049@{#1836})", "userDataDir"=>"/var/folders/pk/6c774xdj36q3l1w84s0c58r40000gp/T/.org.chromium.Chromium.phSb6n"}, "fedcm:accounts"=>true, "goog:chromeOptions"=>{"debuggerAddress"=>"localhost:57237"}, "networkConnectionEnabled"=>false, "pageLoadStrategy"=>"normal", "platformName"=>"mac", "proxy"=>{}, "setWindowRect"=>true, "strictFileInteractability"=>false, "timeouts"=>{"implicit"=>0, "pageLoad"=>300000, "script"=>30000}, "unhandledPromptBehavior"=>{"default"=>"ignore"}, "webSocketUrl"=>"ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", "webauthn:extension:credBlob"=>true, "webauthn:extension:largeBlob"=>true, "webauthn:extension:minPinLength"=>true, "webauthn:extension:prf"=>true, "webauthn:virtualAuthenticators"=>true}, "sessionId"=>"116783720fd2ad3cdd1faf1ff5fed21e"}}
16928
+ [bidi2pdf] Created session with ID: 116783720fd2ad3cdd1faf1ff5fed21e
16929
+ [bidi2pdf] WebSocket URL: ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e
16930
+ [bidi2pdf] Registering WebSocket event listeners
16931
+ [bidi2pdf] WebSocket connection is open
16932
+ Started GET "/convert-remote-url-error/501" for 127.0.0.1 at 2025-04-22 08:49:27 +0200
16933
+ Processing by ReportsController#convert_remote_url_error as HTML
16934
+ Parameters: {"code"=>"501"}
16935
+ [bidi2pdf] Subscribing to events
16936
+ [bidi2pdf] Registering WebSocket event listeners
16937
+ [bidi2pdf] Waiting for WebSocket connection to open
16938
+ [bidi2pdf] WebSocket connection is open
16939
+ [bidi2pdf_rails] Sending command: session.subscribe id: #1
16940
+ [bidi2pdf_rails] Sending command: {:id=>1, :method=>"session.subscribe", :params=>{:events=>["script"]}} (0.7ms)
16941
+ [bidi2pdf_rails] Sending command: browser.createUserContext id: #2
16942
+ [bidi2pdf_rails] Sending command: {:id=>2, :method=>"browser.createUserContext", :params=>{}} (0.1ms)
16943
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"5E8E56BE54BD84539ECB357CC018E2A6", "origin"=>"null", "realm"=>"-8855582005878830907.-8804669809132847091", "type"=>"window"}
16944
+ [bidi2pdf] User context created: "611408A697A0A37FBDB12DBA5F38A86B"
16945
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #3
16946
+ [bidi2pdf_rails] Sending command: {:id=>3, :method=>"browsingContext.create", :params=>{:type=>"window", :userContext=>"611408A697A0A37FBDB12DBA5F38A86B", :background=>false}} (0.1ms)
16947
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"46492C4F1BBD13A61B1BE46000E52649", "origin"=>"null", "realm"=>"3649382168827411065.200798554649213762", "type"=>"window"}
16948
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #4
16949
+ [bidi2pdf_rails] Sending command: {:id=>4, :method=>"browsingContext.create", :params=>{:type=>"tab", :userContext=>"611408A697A0A37FBDB12DBA5F38A86B", :background=>false}} (0.2ms)
16950
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"16E7C149FE3E906C072F2F8A343E693E", "origin"=>"null", "realm"=>"-7088509045918843182.-4217288881476178459", "type"=>"window"}
16951
+ [bidi2pdf] [D1] Created new browser tab: #<Bidi2pdf::Bidi::BrowserTab:0x0000000127fff190 @client=#<Bidi2pdf::Bidi::Client:0x00000001283f4598 @ws_url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @started=true, @connection_manager=#<Bidi2pdf::Bidi::ConnectionManager:0x00000001283f44d0 @logger=#<ActiveSupport::Logger:0x0000000128b76aa0 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x000000012756ac20 @datetime_format=nil>, @formatter=#<ActiveSupport::Logger::SimpleFormatter:0x0000000128bb85b8 @datetime_format=nil, @thread_key="activesupport_tagged_logging_tags:7940", @tag_stack=#<ActiveSupport::TaggedLogging::TagStack:0x0000000128bb84a0 @tags=["bidi2pdf"], @tags_string=nil>>, @logdev=#<Logger::LogDevice:0x000000012772f470 @shift_period_suffix="%Y%m%d", @shift_size=104857600, @shift_age=1, @filename="/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log", @dev=#<File:/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log>, @binmode=false, @reraise_write_errors=[], @skip_header=false, @mon_data=#<Monitor:0x000000012756a3d8>, @mon_data_owner_object_id=5740>, @level_override={}, @local_level_key=:logger_thread_safe_level_8600>, @connected=true, @connection_queue=#<Thread::Queue:0x00000001283f4458>>, @socket=#<WebSocket::Client::Simple::Client:0x00000001283f42f0 @__events=[{:type=>:open, :listener=>#<Proc:0x00000001283f3a80 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x00000001283f3a58 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x00000001283f3a30 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x00000001283f39b8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000128499200 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57244>, @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @key="+BVDHTOaVFDsBkKO6xW8Qw==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x00000001284991b0 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @command_manager=#<Bidi2pdf::Bidi::CommandManager:0x00000001283f4228 @socket=#<WebSocket::Client::Simple::Client:0x00000001283f42f0 @__events=[{:type=>:open, :listener=>#<Proc:0x00000001283f3a80 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x00000001283f3a58 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x00000001283f3a30 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x00000001283f39b8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000128499200 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57244>, @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @key="+BVDHTOaVFDsBkKO6xW8Qw==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x00000001284991b0 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @pending_responses={}, @initiated_cmds={}>, @dispatcher=#<Bidi2pdf::Bidi::WebSocketDispatcher:0x00000001283f4160 @socket=#<WebSocket::Client::Simple::Client:0x00000001283f42f0 @__events=[{:type=>:open, :listener=>#<Proc:0x00000001283f3a80 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x00000001283f3a58 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x00000001283f3a30 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x00000001283f39b8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000128499200 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57244>, @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @key="+BVDHTOaVFDsBkKO6xW8Qw==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x00000001284991b0 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @socket_events=#<Bidi2pdf::Bidi::EventManager:0x00000001283f40c0 @listeners={:open=>[#<Proc:0x00000001283f3df0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:55>], :message=>[#<Proc:0x00000001283f3d28 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:56>], :close=>[#<Proc:0x0000000128498468 /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/chromedriver_manager_singleton.rb:36>]}, @type="socket-event">, @session_events=#<Bidi2pdf::Bidi::EventManager:0x00000001283f3fd0 @listeners={}, @type="session-event">>>, @browsing_context_id="16E7C149FE3E906C072F2F8A343E693E", @user_context_id="611408A697A0A37FBDB12DBA5F38A86B", @tabs=[], @network_events=#<Bidi2pdf::Bidi::NetworkEvents:0x0000000128c33308 @context_id="16E7C149FE3E906C072F2F8A343E693E", @events={}, @network_event_formatter=#<Bidi2pdf::Bidi::NetworkEventFormatters::NetworkEventConsoleFormatter:0x0000000128c332e0 @color_enabled=true, @logger=#<Logger:0x0000000128b76910 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000000128bb8158 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @logger_events=#<Bidi2pdf::Bidi::LoggerEvents:0x0000000128c332b8 @context_id="16E7C149FE3E906C072F2F8A343E693E", @browser_console_logger=#<Bidi2pdf::Bidi::BrowserConsoleLogger:0x0000000128c33290 @logger=#<Logger:0x0000000128b76870 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000000128bb80b8 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @navigation_failed_events=#<Bidi2pdf::Bidi::NavigationFailedEvents:0x0000000128c33268 @context_id="16E7C149FE3E906C072F2F8A343E693E">, @open=true>
16952
+ [bidi2pdf_rails] Sending command: session.subscribe id: #5
16953
+ [bidi2pdf_rails] Sending command: {:id=>5, :method=>"session.subscribe", :params=>{:events=>["network.beforeRequestSent", "network.responseStarted", "network.responseCompleted", "network.fetchError"]}} (0.1ms)
16954
+ [bidi2pdf_rails] Sending command: session.subscribe id: #6
16955
+ [bidi2pdf_rails] Sending command: {:id=>6, :method=>"session.subscribe", :params=>{:events=>["log.entryAdded"]}} (0.1ms)
16956
+ [bidi2pdf_rails] Sending command: session.subscribe id: #7
16957
+ [bidi2pdf_rails] Sending command: {:id=>7, :method=>"session.subscribe", :params=>{:events=>["browsingContext.navigationFailed"]}} (0.2ms)
16958
+ [bidi2pdf_rails] Sending command: browsingContext.navigate id: #8
16959
+ [bidi2pdf_rails] Sending command: {:id=>8, :method=>"browsingContext.navigate", :params=>{:url=>"http://127.0.0.1:3000/501", :context=>"16E7C149FE3E906C072F2F8A343E693E", :wait=>"complete"}} (0.1ms)
16960
+ Started GET "/501" for 127.0.0.1 at 2025-04-22 08:49:27 +0200
16961
+ [bidi2pdf_rails] [network] ┌─ Network Event ──────────────────────────────────────
16962
+ [bidi2pdf_rails] [network] │ Request: GET http://127.0.0.1:3000/501
16963
+ [bidi2pdf_rails] [network] │ State: completed
16964
+ [bidi2pdf_rails] [network] │ Status: HTTP 501
16965
+ [bidi2pdf_rails] [network] │ Started: 2025-04-22 06:49:27.732 UTC
16966
+ [bidi2pdf_rails] [network] │ Ended: 2025-04-22 06:49:27.732 UTC
16967
+ [bidi2pdf_rails] [network] │ Duration: 0.0s
16968
+ [bidi2pdf_rails] [network] │ Received: 192.00 B
16969
+ [bidi2pdf_rails] [network] │
16970
+ [bidi2pdf_rails] [network] │ Timing Phases:
16971
+ [bidi2pdf_rails] [network] │ Request time : 0 ms
16972
+ [bidi2pdf_rails] [network] │ Dns start : 0 ms
16973
+ [bidi2pdf_rails] [network] │ Dns end : 0 ms
16974
+ [bidi2pdf_rails] [network] │ Connect start : 0 ms
16975
+ [bidi2pdf_rails] [network] │ Connect end : 0 ms
16976
+ [bidi2pdf_rails] [network] └──────────────────────────────────────────────────────
16977
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"-7088509045918843182.-4217288881476178459"}
16978
+ [bidi2pdf] Navigated to page url: http://127.0.0.1:3000/501 response: {"id"=>8, "result"=>{"navigation"=>"47e03f51-d014-47f5-b711-53ab11c683c0", "url"=>"http://127.0.0.1:3000/501"}, "type"=>"success"}
16979
+ [bidi2pdf] ✅ All network events completed.
16980
+ [bidi2pdf_rails] Network was idle after 0.1ms, 1 requests, transferred 192 bytes (status codes: 501: 1)
16981
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:49:27 +0200
16982
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"16E7C149FE3E906C072F2F8A343E693E", "origin"=>"http://127.0.0.1:3000", "realm"=>"-8117843921309667410.775988705509672816", "type"=>"window"}
16983
+ [bidi2pdf_rails] Sending command: browsingContext.print id: #9
16984
+ [bidi2pdf_rails] Sending command: {:id=>9, :method=>"browsingContext.print", :params=>{:background=>true, :orientation=>"portrait", :scale=>1.0, :shrinkToFit=>false, :margin=>{:top=>2.5, :bottom=>2, :left=>2, :right=>2}, :page=>{:width=>21.0, :height=>29.7}, :context=>"16E7C149FE3E906C072F2F8A343E693E"}} (0.1ms)
16985
+ [bidi2pdf] PDF generated successfully.
16986
+ [bidi2pdf_rails] Page printed: 158.3ms
16987
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #10
16988
+ [bidi2pdf_rails] Sending command: {:id=>10, :method=>"browsingContext.close", :params=>{:context=>"16E7C149FE3E906C072F2F8A343E693E"}} (0.1ms)
16989
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"-8117843921309667410.775988705509672816"}
16990
+ [bidi2pdf] Browsing context closed: 16E7C149FE3E906C072F2F8A343E693E {"id"=>10, "result"=>{}, "type"=>"success"}
16991
+ [bidi2pdf] Closed tab: 16E7C149FE3E906C072F2F8A343E693E
16992
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #11
16993
+ [bidi2pdf_rails] Sending command: {:id=>11, :method=>"browsingContext.close", :params=>{:context=>"46492C4F1BBD13A61B1BE46000E52649"}} (0.1ms)
16994
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"3649382168827411065.200798554649213762"}
16995
+ [bidi2pdf] Browsing context closed: 46492C4F1BBD13A61B1BE46000E52649 {"id"=>11, "result"=>{}, "type"=>"success"}
16996
+ [bidi2pdf_rails] Sending command: browser.removeUserContext id: #12
16997
+ [bidi2pdf_rails] Sending command: {:id=>12, :method=>"browser.removeUserContext", :params=>{:userContext=>"611408A697A0A37FBDB12DBA5F38A86B"}} (0.1ms)
16998
+ [bidi2pdf] User context deleted: {}
16999
+ [bidi2pdf_rails] Page rendered and printed: 589.1ms
17000
+ Rendering text template
17001
+ Rendered text template (Duration: 0.1ms | GC: 0.0ms)
17002
+ Sent data convert-remote-url-cookie.pdf (7.6ms)
17003
+ Completed 200 OK in 646ms (Views: 597.3ms | GC: 23.4ms)
17004
+
17005
+
17006
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:49:28 +0200
17007
+ Started GET "/convert-remote-url-error/501" for 127.0.0.1 at 2025-04-22 08:50:13 +0200
17008
+ Processing by ReportsController#convert_remote_url_error as HTML
17009
+ Parameters: {"code"=>"501"}
17010
+ [bidi2pdf_rails] Sending command: browser.createUserContext id: #13
17011
+ [bidi2pdf_rails] Sending command: {:id=>13, :method=>"browser.createUserContext", :params=>{}} (0.1ms)
17012
+ [bidi2pdf] User context created: "92472E40C12AC84B6CA3EAEF7FCB638C"
17013
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #14
17014
+ [bidi2pdf_rails] Sending command: {:id=>14, :method=>"browsingContext.create", :params=>{:type=>"window", :userContext=>"92472E40C12AC84B6CA3EAEF7FCB638C", :background=>false}} (0.2ms)
17015
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"6F90211CA3666F70DF173F7A4874765A", "origin"=>"null", "realm"=>"8363751168692001973.1091287209044329164", "type"=>"window"}
17016
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #15
17017
+ [bidi2pdf_rails] Sending command: {:id=>15, :method=>"browsingContext.create", :params=>{:type=>"tab", :userContext=>"92472E40C12AC84B6CA3EAEF7FCB638C", :background=>false}} (0.2ms)
17018
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"05DC6A1C5CEE6C33B65D7EC4553D2134", "origin"=>"null", "realm"=>"1742830153435091141.3916942533157047662", "type"=>"window"}
17019
+ [bidi2pdf] [D1] Created new browser tab: #<Bidi2pdf::Bidi::BrowserTab:0x000000012883f648 @client=#<Bidi2pdf::Bidi::Client:0x00000001283f4598 @ws_url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @started=true, @connection_manager=#<Bidi2pdf::Bidi::ConnectionManager:0x00000001283f44d0 @logger=#<ActiveSupport::Logger:0x0000000128b76aa0 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x000000012756ac20 @datetime_format=nil>, @formatter=#<ActiveSupport::Logger::SimpleFormatter:0x0000000128bb85b8 @datetime_format=nil, @thread_key="activesupport_tagged_logging_tags:7940", @tag_stack=#<ActiveSupport::TaggedLogging::TagStack:0x0000000128bb84a0 @tags=["bidi2pdf"], @tags_string=nil>>, @logdev=#<Logger::LogDevice:0x000000012772f470 @shift_period_suffix="%Y%m%d", @shift_size=104857600, @shift_age=1, @filename="/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log", @dev=#<File:/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log>, @binmode=false, @reraise_write_errors=[], @skip_header=false, @mon_data=#<Monitor:0x000000012756a3d8>, @mon_data_owner_object_id=5740>, @level_override={}, @local_level_key=:logger_thread_safe_level_8600>, @connected=true, @connection_queue=#<Thread::Queue:0x00000001283f4458>>, @socket=#<WebSocket::Client::Simple::Client:0x00000001283f42f0 @__events=[{:type=>:open, :listener=>#<Proc:0x00000001283f3a80 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x00000001283f3a58 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x00000001283f3a30 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x00000001283f39b8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000128499200 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57244>, @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @key="+BVDHTOaVFDsBkKO6xW8Qw==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x00000001284991b0 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @command_manager=#<Bidi2pdf::Bidi::CommandManager:0x00000001283f4228 @socket=#<WebSocket::Client::Simple::Client:0x00000001283f42f0 @__events=[{:type=>:open, :listener=>#<Proc:0x00000001283f3a80 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x00000001283f3a58 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x00000001283f3a30 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x00000001283f39b8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000128499200 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57244>, @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @key="+BVDHTOaVFDsBkKO6xW8Qw==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x00000001284991b0 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @pending_responses={}, @initiated_cmds={}>, @dispatcher=#<Bidi2pdf::Bidi::WebSocketDispatcher:0x00000001283f4160 @socket=#<WebSocket::Client::Simple::Client:0x00000001283f42f0 @__events=[{:type=>:open, :listener=>#<Proc:0x00000001283f3a80 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x00000001283f3a58 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x00000001283f3a30 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x00000001283f39b8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000128499200 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57244>, @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @key="+BVDHTOaVFDsBkKO6xW8Qw==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x00000001284991b0 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @socket_events=#<Bidi2pdf::Bidi::EventManager:0x00000001283f40c0 @listeners={:open=>[#<Proc:0x00000001283f3df0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:55>], :message=>[#<Proc:0x00000001283f3d28 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:56>], :close=>[#<Proc:0x0000000128498468 /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/chromedriver_manager_singleton.rb:36>]}, @type="socket-event">, @session_events=#<Bidi2pdf::Bidi::EventManager:0x00000001283f3fd0 @listeners={:"network.beforeRequestSent"=>[#<Proc:0x0000000128c5e418 (lambda)>], :"network.responseStarted"=>[#<Proc:0x0000000128c5e418 (lambda)>], :"network.responseCompleted"=>[#<Proc:0x0000000128c5e418 (lambda)>], :"network.fetchError"=>[#<Proc:0x0000000128c5e418 (lambda)>], :"log.entryAdded"=>[#<Proc:0x0000000128c5b948 (lambda)>], :"browsingContext.navigationFailed"=>[#<Proc:0x0000000128c59058 (lambda)>], :network=>[]}, @type="session-event">>>, @browsing_context_id="05DC6A1C5CEE6C33B65D7EC4553D2134", @user_context_id="92472E40C12AC84B6CA3EAEF7FCB638C", @tabs=[], @network_events=#<Bidi2pdf::Bidi::NetworkEvents:0x00000001292b4010 @context_id="05DC6A1C5CEE6C33B65D7EC4553D2134", @events={}, @network_event_formatter=#<Bidi2pdf::Bidi::NetworkEventFormatters::NetworkEventConsoleFormatter:0x00000001292b3fe8 @color_enabled=true, @logger=#<Logger:0x0000000128b76910 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000000128bb8158 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @logger_events=#<Bidi2pdf::Bidi::LoggerEvents:0x00000001292b3fc0 @context_id="05DC6A1C5CEE6C33B65D7EC4553D2134", @browser_console_logger=#<Bidi2pdf::Bidi::BrowserConsoleLogger:0x00000001292b3f98 @logger=#<Logger:0x0000000128b76870 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000000128bb80b8 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @navigation_failed_events=#<Bidi2pdf::Bidi::NavigationFailedEvents:0x00000001292b3f70 @context_id="05DC6A1C5CEE6C33B65D7EC4553D2134">, @open=true>
17020
+ [bidi2pdf_rails] Sending command: session.subscribe id: #16
17021
+ [bidi2pdf_rails] Sending command: {:id=>16, :method=>"session.subscribe", :params=>{:events=>["network.beforeRequestSent", "network.responseStarted", "network.responseCompleted", "network.fetchError"]}} (0.2ms)
17022
+ [bidi2pdf_rails] Sending command: session.subscribe id: #17
17023
+ [bidi2pdf_rails] Sending command: {:id=>17, :method=>"session.subscribe", :params=>{:events=>["log.entryAdded"]}} (0.1ms)
17024
+ [bidi2pdf_rails] Sending command: session.subscribe id: #18
17025
+ [bidi2pdf_rails] Sending command: {:id=>18, :method=>"session.subscribe", :params=>{:events=>["browsingContext.navigationFailed"]}} (0.1ms)
17026
+ [bidi2pdf_rails] Sending command: browsingContext.navigate id: #19
17027
+ [bidi2pdf_rails] Sending command: {:id=>19, :method=>"browsingContext.navigate", :params=>{:url=>"http://127.0.0.1:3000/501", :context=>"05DC6A1C5CEE6C33B65D7EC4553D2134", :wait=>"complete"}} (0.1ms)
17028
+ Started GET "/501" for 127.0.0.1 at 2025-04-22 08:50:18 +0200
17029
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"1742830153435091141.3916942533157047662"}
17030
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"05DC6A1C5CEE6C33B65D7EC4553D2134", "origin"=>"http://127.0.0.1:3000", "realm"=>"7634537168753410928.1762611538380545791", "type"=>"window"}
17031
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:50:18 +0200
17032
+ [bidi2pdf_rails] [network] ┌─ Network Event ──────────────────────────────────────
17033
+ [bidi2pdf_rails] [network] │ Request: GET http://127.0.0.1:3000/501
17034
+ [bidi2pdf_rails] [network] │ State: completed
17035
+ [bidi2pdf_rails] [network] │ Status: HTTP 501
17036
+ [bidi2pdf_rails] [network] │ Started: 2025-04-22 06:50:18.267 UTC
17037
+ [bidi2pdf_rails] [network] │ Ended: 2025-04-22 06:50:18.267 UTC
17038
+ [bidi2pdf_rails] [network] │ Duration: 0.0s
17039
+ [bidi2pdf_rails] [network] │ Received: 192.00 B
17040
+ [bidi2pdf_rails] [network] │
17041
+ [bidi2pdf_rails] [network] │ Timing Phases:
17042
+ [bidi2pdf_rails] [network] │ Request time : 0 ms
17043
+ [bidi2pdf_rails] [network] │ Dns start : 0 ms
17044
+ [bidi2pdf_rails] [network] │ Dns end : 0 ms
17045
+ [bidi2pdf_rails] [network] │ Connect start : 0 ms
17046
+ [bidi2pdf_rails] [network] │ Connect end : 0 ms
17047
+ [bidi2pdf_rails] [network] └──────────────────────────────────────────────────────
17048
+ [bidi2pdf] Navigated to page url: http://127.0.0.1:3000/501 response: {"id"=>19, "result"=>{"navigation"=>"110f6fed-144e-4621-a5fb-fed97f2d1be3", "url"=>"http://127.0.0.1:3000/501"}, "type"=>"success"}
17049
+ [bidi2pdf] ✅ All network events completed.
17050
+ [bidi2pdf_rails] Network was idle after 0.3ms, 1 requests, transferred 192 bytes (status codes: 501: 1)
17051
+ [bidi2pdf_rails] Sending command: browsingContext.print id: #20
17052
+ [bidi2pdf_rails] Sending command: {:id=>20, :method=>"browsingContext.print", :params=>{:background=>true, :orientation=>"portrait", :scale=>1.0, :shrinkToFit=>false, :margin=>{:top=>2.5, :bottom=>2, :left=>2, :right=>2}, :page=>{:width=>21.0, :height=>29.7}, :context=>"05DC6A1C5CEE6C33B65D7EC4553D2134"}} (0.3ms)
17053
+ [bidi2pdf] PDF generated successfully.
17054
+ [bidi2pdf_rails] Page printed: 145.9ms
17055
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #21
17056
+ [bidi2pdf_rails] Sending command: {:id=>21, :method=>"browsingContext.close", :params=>{:context=>"05DC6A1C5CEE6C33B65D7EC4553D2134"}} (0.2ms)
17057
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"7634537168753410928.1762611538380545791"}
17058
+ [bidi2pdf] Browsing context closed: 05DC6A1C5CEE6C33B65D7EC4553D2134 {"id"=>21, "result"=>{}, "type"=>"success"}
17059
+ [bidi2pdf] Closed tab: 05DC6A1C5CEE6C33B65D7EC4553D2134
17060
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #22
17061
+ [bidi2pdf_rails] Sending command: {:id=>22, :method=>"browsingContext.close", :params=>{:context=>"6F90211CA3666F70DF173F7A4874765A"}} (0.2ms)
17062
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"8363751168692001973.1091287209044329164"}
17063
+ [bidi2pdf] Browsing context closed: 6F90211CA3666F70DF173F7A4874765A {"id"=>22, "result"=>{}, "type"=>"success"}
17064
+ [bidi2pdf_rails] Sending command: browser.removeUserContext id: #23
17065
+ [bidi2pdf_rails] Sending command: {:id=>23, :method=>"browser.removeUserContext", :params=>{:userContext=>"92472E40C12AC84B6CA3EAEF7FCB638C"}} (0.3ms)
17066
+ [bidi2pdf] User context deleted: {}
17067
+ [bidi2pdf_rails] Page rendered and printed: 34248.5ms
17068
+ Rendering text template
17069
+ Rendered text template (Duration: 0.2ms | GC: 0.0ms)
17070
+ Sent data convert-remote-url-cookie.pdf (0.7ms)
17071
+ Completed 200 OK in 34261ms (Views: 34250.0ms | GC: 96.6ms)
17072
+
17073
+
17074
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:50:47 +0200
17075
+ Started GET "/501" for 127.0.0.1 at 2025-04-22 08:51:02 +0200
17076
+ Started GET "/501" for 127.0.0.1 at 2025-04-22 08:51:15 +0200
17077
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:52:01 +0200
17078
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:52:03 +0200
17079
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:52:06 +0200
17080
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:52:53 +0200
17081
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:52:58 +0200
17082
+ Started GET "/403" for 127.0.0.1 at 2025-04-22 08:53:20 +0200
17083
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:53:20 +0200
17084
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:53:32 +0200
17085
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:53:42 +0200
17086
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:55:35 +0200
17087
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:55:47 +0200
17088
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:55:48 +0200
17089
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:55:54 +0200
17090
+ Started GET "/501" for 127.0.0.1 at 2025-04-22 08:56:03 +0200
17091
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:56:03 +0200
17092
+ Started GET "/501" for 127.0.0.1 at 2025-04-22 08:56:09 +0200
17093
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:56:09 +0200
17094
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:56:26 +0200
17095
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:56:31 +0200
17096
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:56:31 +0200
17097
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:56:31 +0200
17098
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:56:32 +0200
17099
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:56:32 +0200
17100
+ Started GET "/501" for 127.0.0.1 at 2025-04-22 08:56:32 +0200
17101
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:56:32 +0200
17102
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:56:33 +0200
17103
+ Started GET "/convert-remote-url-error/501" for 127.0.0.1 at 2025-04-22 08:56:37 +0200
17104
+ Processing by ReportsController#convert_remote_url_error as HTML
17105
+ Parameters: {"code"=>"501"}
17106
+ [bidi2pdf_rails] Sending command: browser.createUserContext id: #24
17107
+ [bidi2pdf_rails] Sending command: {:id=>24, :method=>"browser.createUserContext", :params=>{}} (0.1ms)
17108
+ [bidi2pdf] User context created: "150B445B3F6B451167A0D18599A2BD58"
17109
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #25
17110
+ [bidi2pdf_rails] Sending command: {:id=>25, :method=>"browsingContext.create", :params=>{:type=>"window", :userContext=>"150B445B3F6B451167A0D18599A2BD58", :background=>false}} (0.1ms)
17111
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"34D4B38EA407D0C2C2B149513B94CBD5", "origin"=>"null", "realm"=>"3976363723604375048.7174812757492898364", "type"=>"window"}
17112
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #26
17113
+ [bidi2pdf_rails] Sending command: {:id=>26, :method=>"browsingContext.create", :params=>{:type=>"tab", :userContext=>"150B445B3F6B451167A0D18599A2BD58", :background=>false}} (0.1ms)
17114
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"BBBB3948DACB758FF78CF2B0EACA66FB", "origin"=>"null", "realm"=>"7076893083926399784.-8588143406177780658", "type"=>"window"}
17115
+ [bidi2pdf] [D1] Created new browser tab: #<Bidi2pdf::Bidi::BrowserTab:0x0000000127aa6b80 @client=#<Bidi2pdf::Bidi::Client:0x00000001283f4598 @ws_url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @started=true, @connection_manager=#<Bidi2pdf::Bidi::ConnectionManager:0x00000001283f44d0 @logger=#<ActiveSupport::Logger:0x0000000128b76aa0 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x000000012756ac20 @datetime_format=nil>, @formatter=#<ActiveSupport::Logger::SimpleFormatter:0x0000000128bb85b8 @datetime_format=nil, @thread_key="activesupport_tagged_logging_tags:7940", @tag_stack=#<ActiveSupport::TaggedLogging::TagStack:0x0000000128bb84a0 @tags=["bidi2pdf"], @tags_string=nil>>, @logdev=#<Logger::LogDevice:0x000000012772f470 @shift_period_suffix="%Y%m%d", @shift_size=104857600, @shift_age=1, @filename="/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log", @dev=#<File:/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log>, @binmode=false, @reraise_write_errors=[], @skip_header=false, @mon_data=#<Monitor:0x000000012756a3d8>, @mon_data_owner_object_id=5740>, @level_override={}, @local_level_key=:logger_thread_safe_level_8600>, @connected=true, @connection_queue=#<Thread::Queue:0x00000001283f4458>>, @socket=#<WebSocket::Client::Simple::Client:0x00000001283f42f0 @__events=[{:type=>:open, :listener=>#<Proc:0x00000001283f3a80 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x00000001283f3a58 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x00000001283f3a30 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x00000001283f39b8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000128499200 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57244>, @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @key="+BVDHTOaVFDsBkKO6xW8Qw==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x00000001284991b0 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @command_manager=#<Bidi2pdf::Bidi::CommandManager:0x00000001283f4228 @socket=#<WebSocket::Client::Simple::Client:0x00000001283f42f0 @__events=[{:type=>:open, :listener=>#<Proc:0x00000001283f3a80 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x00000001283f3a58 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x00000001283f3a30 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x00000001283f39b8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000128499200 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57244>, @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @key="+BVDHTOaVFDsBkKO6xW8Qw==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x00000001284991b0 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @pending_responses={}, @initiated_cmds={}>, @dispatcher=#<Bidi2pdf::Bidi::WebSocketDispatcher:0x00000001283f4160 @socket=#<WebSocket::Client::Simple::Client:0x00000001283f42f0 @__events=[{:type=>:open, :listener=>#<Proc:0x00000001283f3a80 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x00000001283f3a58 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x00000001283f3a30 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x00000001283f39b8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000128499200 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57244>, @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @key="+BVDHTOaVFDsBkKO6xW8Qw==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x00000001284991b0 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @socket_events=#<Bidi2pdf::Bidi::EventManager:0x00000001283f40c0 @listeners={:open=>[#<Proc:0x00000001283f3df0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:55>], :message=>[#<Proc:0x00000001283f3d28 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:56>], :close=>[#<Proc:0x0000000128498468 /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/chromedriver_manager_singleton.rb:36>]}, @type="socket-event">, @session_events=#<Bidi2pdf::Bidi::EventManager:0x00000001283f3fd0 @listeners={:"network.beforeRequestSent"=>[#<Proc:0x0000000128c5e418 (lambda)>, #<Proc:0x0000000127b40fa0 (lambda)>], :"network.responseStarted"=>[#<Proc:0x0000000128c5e418 (lambda)>, #<Proc:0x0000000127b40fa0 (lambda)>], :"network.responseCompleted"=>[#<Proc:0x0000000128c5e418 (lambda)>, #<Proc:0x0000000127b40fa0 (lambda)>], :"network.fetchError"=>[#<Proc:0x0000000128c5e418 (lambda)>, #<Proc:0x0000000127b40fa0 (lambda)>], :"log.entryAdded"=>[#<Proc:0x0000000128c5b948 (lambda)>, #<Proc:0x00000001278ebca0 (lambda)>], :"browsingContext.navigationFailed"=>[#<Proc:0x0000000128c59058 (lambda)>, #<Proc:0x000000012768dbe8 (lambda)>], :network=>[]}, @type="session-event">>>, @browsing_context_id="BBBB3948DACB758FF78CF2B0EACA66FB", @user_context_id="150B445B3F6B451167A0D18599A2BD58", @tabs=[], @network_events=#<Bidi2pdf::Bidi::NetworkEvents:0x0000000128eb8cb8 @context_id="BBBB3948DACB758FF78CF2B0EACA66FB", @events={}, @network_event_formatter=#<Bidi2pdf::Bidi::NetworkEventFormatters::NetworkEventConsoleFormatter:0x0000000128eb8c90 @color_enabled=true, @logger=#<Logger:0x0000000128b76910 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000000128bb8158 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @logger_events=#<Bidi2pdf::Bidi::LoggerEvents:0x0000000128eb8c68 @context_id="BBBB3948DACB758FF78CF2B0EACA66FB", @browser_console_logger=#<Bidi2pdf::Bidi::BrowserConsoleLogger:0x0000000128eb8c40 @logger=#<Logger:0x0000000128b76870 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000000128bb80b8 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @navigation_failed_events=#<Bidi2pdf::Bidi::NavigationFailedEvents:0x0000000128eb8c18 @context_id="BBBB3948DACB758FF78CF2B0EACA66FB">, @open=true>
17116
+ [bidi2pdf_rails] Sending command: session.subscribe id: #27
17117
+ [bidi2pdf_rails] Sending command: {:id=>27, :method=>"session.subscribe", :params=>{:events=>["network.beforeRequestSent", "network.responseStarted", "network.responseCompleted", "network.fetchError"]}} (0.3ms)
17118
+ [bidi2pdf_rails] Sending command: session.subscribe id: #28
17119
+ [bidi2pdf_rails] Sending command: {:id=>28, :method=>"session.subscribe", :params=>{:events=>["log.entryAdded"]}} (0.1ms)
17120
+ [bidi2pdf_rails] Sending command: session.subscribe id: #29
17121
+ [bidi2pdf_rails] Sending command: {:id=>29, :method=>"session.subscribe", :params=>{:events=>["browsingContext.navigationFailed"]}} (0.2ms)
17122
+ [bidi2pdf_rails] Sending command: browsingContext.navigate id: #30
17123
+ [bidi2pdf_rails] Sending command: {:id=>30, :method=>"browsingContext.navigate", :params=>{:url=>"http://127.0.0.1:3000/501", :context=>"BBBB3948DACB758FF78CF2B0EACA66FB", :wait=>"complete"}} (1.0ms)
17124
+ Started GET "/501" for 127.0.0.1 at 2025-04-22 08:56:40 +0200
17125
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"7076893083926399784.-8588143406177780658"}
17126
+ [bidi2pdf_rails] [network] ┌─ Network Event ──────────────────────────────────────
17127
+ [bidi2pdf_rails] [network] │ Request: GET http://127.0.0.1:3000/501
17128
+ [bidi2pdf_rails] [network] │ State: completed
17129
+ [bidi2pdf_rails] [network] │ Status: HTTP 501
17130
+ [bidi2pdf_rails] [network] │ Started: 2025-04-22 06:56:40.799 UTC
17131
+ [bidi2pdf_rails] [network] │ Ended: 2025-04-22 06:56:40.799 UTC
17132
+ [bidi2pdf_rails] [network] │ Duration: 0.0s
17133
+ [bidi2pdf_rails] [network] │ Received: 286.00 B
17134
+ [bidi2pdf_rails] [network] │
17135
+ [bidi2pdf_rails] [network] │ Timing Phases:
17136
+ [bidi2pdf_rails] [network] │ Request time : 0 ms
17137
+ [bidi2pdf_rails] [network] │ Dns start : 0 ms
17138
+ [bidi2pdf_rails] [network] │ Dns end : 0 ms
17139
+ [bidi2pdf_rails] [network] │ Connect start : 0 ms
17140
+ [bidi2pdf_rails] [network] │ Connect end : 0 ms
17141
+ [bidi2pdf_rails] [network] └──────────────────────────────────────────────────────
17142
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:56:40 +0200
17143
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"BBBB3948DACB758FF78CF2B0EACA66FB", "origin"=>"http://127.0.0.1:3000", "realm"=>"-6541259693715996180.-2351997461356707246", "type"=>"window"}
17144
+ [bidi2pdf] Navigated to page url: http://127.0.0.1:3000/501 response: {"id"=>30, "result"=>{"navigation"=>"40095c66-c0c5-4dad-8cf3-6189b6881e4e", "url"=>"http://127.0.0.1:3000/501"}, "type"=>"success"}
17145
+ [bidi2pdf] ✅ All network events completed.
17146
+ [bidi2pdf_rails] Network was idle after 0.1ms, 1 requests, transferred 286 bytes (status codes: 501: 1)
17147
+ [bidi2pdf_rails] Sending command: browsingContext.print id: #31
17148
+ [bidi2pdf_rails] Sending command: {:id=>31, :method=>"browsingContext.print", :params=>{:background=>true, :orientation=>"portrait", :scale=>1.0, :shrinkToFit=>false, :margin=>{:top=>2.5, :bottom=>2, :left=>2, :right=>2}, :page=>{:width=>21.0, :height=>29.7}, :context=>"BBBB3948DACB758FF78CF2B0EACA66FB"}} (0.4ms)
17149
+ [bidi2pdf] PDF generated successfully.
17150
+ [bidi2pdf_rails] Page printed: 156.1ms
17151
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #32
17152
+ [bidi2pdf_rails] Sending command: {:id=>32, :method=>"browsingContext.close", :params=>{:context=>"BBBB3948DACB758FF78CF2B0EACA66FB"}} (0.1ms)
17153
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"-6541259693715996180.-2351997461356707246"}
17154
+ [bidi2pdf] Browsing context closed: BBBB3948DACB758FF78CF2B0EACA66FB {"id"=>32, "result"=>{}, "type"=>"success"}
17155
+ [bidi2pdf] Closed tab: BBBB3948DACB758FF78CF2B0EACA66FB
17156
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #33
17157
+ [bidi2pdf_rails] Sending command: {:id=>33, :method=>"browsingContext.close", :params=>{:context=>"34D4B38EA407D0C2C2B149513B94CBD5"}} (0.1ms)
17158
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"3976363723604375048.7174812757492898364"}
17159
+ [bidi2pdf] Browsing context closed: 34D4B38EA407D0C2C2B149513B94CBD5 {"id"=>33, "result"=>{}, "type"=>"success"}
17160
+ [bidi2pdf_rails] Sending command: browser.removeUserContext id: #34
17161
+ [bidi2pdf_rails] Sending command: {:id=>34, :method=>"browser.removeUserContext", :params=>{:userContext=>"150B445B3F6B451167A0D18599A2BD58"}} (0.1ms)
17162
+ [bidi2pdf] User context deleted: {}
17163
+ [bidi2pdf_rails] Page rendered and printed: 10913.2ms
17164
+ Rendering text template
17165
+ Rendered text template (Duration: 0.1ms | GC: 0.0ms)
17166
+ Sent data convert-remote-url-cookie.pdf (0.9ms)
17167
+ Completed 200 OK in 10925ms (Views: 10914.8ms | GC: 49.1ms)
17168
+
17169
+
17170
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:56:48 +0200
17171
+ Started GET "/convert-remote-url-error/500" for 127.0.0.1 at 2025-04-22 08:56:56 +0200
17172
+ Processing by ReportsController#convert_remote_url_error as HTML
17173
+ Parameters: {"code"=>"500"}
17174
+ [bidi2pdf_rails] Sending command: browser.createUserContext id: #35
17175
+ [bidi2pdf_rails] Sending command: {:id=>35, :method=>"browser.createUserContext", :params=>{}} (0.1ms)
17176
+ [bidi2pdf] User context created: "A2FD32207CAC844A70FC455597F87825"
17177
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #36
17178
+ [bidi2pdf_rails] Sending command: {:id=>36, :method=>"browsingContext.create", :params=>{:type=>"window", :userContext=>"A2FD32207CAC844A70FC455597F87825", :background=>false}} (0.1ms)
17179
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"42D84F0FB0D98A9AD88B8266C969CCE4", "origin"=>"null", "realm"=>"8240306381638991862.-111870371270496255", "type"=>"window"}
17180
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #37
17181
+ [bidi2pdf_rails] Sending command: {:id=>37, :method=>"browsingContext.create", :params=>{:type=>"tab", :userContext=>"A2FD32207CAC844A70FC455597F87825", :background=>false}} (0.6ms)
17182
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"742DA749905A7D6CBE875C37B0DBA014", "origin"=>"null", "realm"=>"5146530744323319767.2398407422720058757", "type"=>"window"}
17183
+ [bidi2pdf] [D1] Created new browser tab: #<Bidi2pdf::Bidi::BrowserTab:0x00000001289712c8 @client=#<Bidi2pdf::Bidi::Client:0x00000001283f4598 @ws_url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @started=true, @connection_manager=#<Bidi2pdf::Bidi::ConnectionManager:0x00000001283f44d0 @logger=#<ActiveSupport::Logger:0x0000000128b76aa0 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x000000012756ac20 @datetime_format=nil>, @formatter=#<ActiveSupport::Logger::SimpleFormatter:0x0000000128bb85b8 @datetime_format=nil, @thread_key="activesupport_tagged_logging_tags:7940", @tag_stack=#<ActiveSupport::TaggedLogging::TagStack:0x0000000128bb84a0 @tags=["bidi2pdf"], @tags_string=nil>>, @logdev=#<Logger::LogDevice:0x000000012772f470 @shift_period_suffix="%Y%m%d", @shift_size=104857600, @shift_age=1, @filename="/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log", @dev=#<File:/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log>, @binmode=false, @reraise_write_errors=[], @skip_header=false, @mon_data=#<Monitor:0x000000012756a3d8>, @mon_data_owner_object_id=5740>, @level_override={}, @local_level_key=:logger_thread_safe_level_8600>, @connected=true, @connection_queue=#<Thread::Queue:0x00000001283f4458>>, @socket=#<WebSocket::Client::Simple::Client:0x00000001283f42f0 @__events=[{:type=>:open, :listener=>#<Proc:0x00000001283f3a80 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x00000001283f3a58 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x00000001283f3a30 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x00000001283f39b8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000128499200 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57244>, @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @key="+BVDHTOaVFDsBkKO6xW8Qw==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x00000001284991b0 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @command_manager=#<Bidi2pdf::Bidi::CommandManager:0x00000001283f4228 @socket=#<WebSocket::Client::Simple::Client:0x00000001283f42f0 @__events=[{:type=>:open, :listener=>#<Proc:0x00000001283f3a80 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x00000001283f3a58 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x00000001283f3a30 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x00000001283f39b8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000128499200 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57244>, @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @key="+BVDHTOaVFDsBkKO6xW8Qw==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x00000001284991b0 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @pending_responses={}, @initiated_cmds={}>, @dispatcher=#<Bidi2pdf::Bidi::WebSocketDispatcher:0x00000001283f4160 @socket=#<WebSocket::Client::Simple::Client:0x00000001283f42f0 @__events=[{:type=>:open, :listener=>#<Proc:0x00000001283f3a80 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x00000001283f3a58 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x00000001283f3a30 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x00000001283f39b8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000128499200 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57244>, @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @key="+BVDHTOaVFDsBkKO6xW8Qw==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x00000001284991b0 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @socket_events=#<Bidi2pdf::Bidi::EventManager:0x00000001283f40c0 @listeners={:open=>[#<Proc:0x00000001283f3df0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:55>], :message=>[#<Proc:0x00000001283f3d28 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:56>], :close=>[#<Proc:0x0000000128498468 /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/chromedriver_manager_singleton.rb:36>]}, @type="socket-event">, @session_events=#<Bidi2pdf::Bidi::EventManager:0x00000001283f3fd0 @listeners={:"network.beforeRequestSent"=>[#<Proc:0x0000000128c5e418 (lambda)>, #<Proc:0x0000000127b40fa0 (lambda)>, #<Proc:0x00000001275cf8f0 (lambda)>], :"network.responseStarted"=>[#<Proc:0x0000000128c5e418 (lambda)>, #<Proc:0x0000000127b40fa0 (lambda)>, #<Proc:0x00000001275cf8f0 (lambda)>], :"network.responseCompleted"=>[#<Proc:0x0000000128c5e418 (lambda)>, #<Proc:0x0000000127b40fa0 (lambda)>, #<Proc:0x00000001275cf8f0 (lambda)>], :"network.fetchError"=>[#<Proc:0x0000000128c5e418 (lambda)>, #<Proc:0x0000000127b40fa0 (lambda)>, #<Proc:0x00000001275cf8f0 (lambda)>], :"log.entryAdded"=>[#<Proc:0x0000000128c5b948 (lambda)>, #<Proc:0x00000001278ebca0 (lambda)>, #<Proc:0x000000012746c490 (lambda)>], :"browsingContext.navigationFailed"=>[#<Proc:0x0000000128c59058 (lambda)>, #<Proc:0x000000012768dbe8 (lambda)>, #<Proc:0x00000001272c24f0 (lambda)>], :network=>[]}, @type="session-event">>>, @browsing_context_id="742DA749905A7D6CBE875C37B0DBA014", @user_context_id="A2FD32207CAC844A70FC455597F87825", @tabs=[], @network_events=#<Bidi2pdf::Bidi::NetworkEvents:0x00000001291f7528 @context_id="742DA749905A7D6CBE875C37B0DBA014", @events={}, @network_event_formatter=#<Bidi2pdf::Bidi::NetworkEventFormatters::NetworkEventConsoleFormatter:0x00000001291f7500 @color_enabled=true, @logger=#<Logger:0x0000000128b76910 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000000128bb8158 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @logger_events=#<Bidi2pdf::Bidi::LoggerEvents:0x00000001291f74d8 @context_id="742DA749905A7D6CBE875C37B0DBA014", @browser_console_logger=#<Bidi2pdf::Bidi::BrowserConsoleLogger:0x00000001291f74b0 @logger=#<Logger:0x0000000128b76870 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000000128bb80b8 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @navigation_failed_events=#<Bidi2pdf::Bidi::NavigationFailedEvents:0x00000001291f7488 @context_id="742DA749905A7D6CBE875C37B0DBA014">, @open=true>
17184
+ [bidi2pdf_rails] Sending command: session.subscribe id: #38
17185
+ [bidi2pdf_rails] Sending command: {:id=>38, :method=>"session.subscribe", :params=>{:events=>["network.beforeRequestSent", "network.responseStarted", "network.responseCompleted", "network.fetchError"]}} (0.2ms)
17186
+ [bidi2pdf_rails] Sending command: session.subscribe id: #39
17187
+ [bidi2pdf_rails] Sending command: {:id=>39, :method=>"session.subscribe", :params=>{:events=>["log.entryAdded"]}} (0.1ms)
17188
+ [bidi2pdf_rails] Sending command: session.subscribe id: #40
17189
+ [bidi2pdf_rails] Sending command: {:id=>40, :method=>"session.subscribe", :params=>{:events=>["browsingContext.navigationFailed"]}} (0.1ms)
17190
+ [bidi2pdf_rails] Sending command: browsingContext.navigate id: #41
17191
+ [bidi2pdf_rails] Sending command: {:id=>41, :method=>"browsingContext.navigate", :params=>{:url=>"http://127.0.0.1:3000/500", :context=>"742DA749905A7D6CBE875C37B0DBA014", :wait=>"complete"}} (0.1ms)
17192
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"5146530744323319767.2398407422720058757"}
17193
+ [bidi2pdf_rails] [network] ┌─ Network Event ──────────────────────────────────────
17194
+ [bidi2pdf_rails] [network] │ Request: GET http://127.0.0.1:3000/500
17195
+ [bidi2pdf_rails] [network] │ State: completed
17196
+ [bidi2pdf_rails] [network] │ Status: HTTP 200
17197
+ [bidi2pdf_rails] [network] │ Started: 2025-04-22 06:56:59.523 UTC
17198
+ [bidi2pdf_rails] [network] │ Ended: 2025-04-22 06:56:59.523 UTC
17199
+ [bidi2pdf_rails] [network] │ Duration: 0.0s
17200
+ [bidi2pdf_rails] [network] │ Received: 112.00 B
17201
+ [bidi2pdf_rails] [network] │
17202
+ [bidi2pdf_rails] [network] │ Timing Phases:
17203
+ [bidi2pdf_rails] [network] │ Request time : 0 ms
17204
+ [bidi2pdf_rails] [network] │ Dns start : 0 ms
17205
+ [bidi2pdf_rails] [network] │ Dns end : 0 ms
17206
+ [bidi2pdf_rails] [network] │ Connect start : 0 ms
17207
+ [bidi2pdf_rails] [network] │ Connect end : 0 ms
17208
+ [bidi2pdf_rails] [network] └──────────────────────────────────────────────────────
17209
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:56:59 +0200
17210
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"742DA749905A7D6CBE875C37B0DBA014", "origin"=>"http://127.0.0.1:3000", "realm"=>"4604044612508649257.-2236804570614156680", "type"=>"window"}
17211
+ [bidi2pdf] Navigated to page url: http://127.0.0.1:3000/500 response: {"id"=>41, "result"=>{"navigation"=>"c302e832-bcd4-437a-9f45-a7dc31e42379", "url"=>"http://127.0.0.1:3000/500"}, "type"=>"success"}
17212
+ [bidi2pdf] ✅ All network events completed.
17213
+ [bidi2pdf_rails] Network was idle after 0.0ms, 1 requests, transferred 112 bytes (status codes: 200: 1)
17214
+ [bidi2pdf_rails] Sending command: browsingContext.print id: #42
17215
+ [bidi2pdf_rails] Sending command: {:id=>42, :method=>"browsingContext.print", :params=>{:background=>true, :orientation=>"portrait", :scale=>1.0, :shrinkToFit=>false, :margin=>{:top=>2.5, :bottom=>2, :left=>2, :right=>2}, :page=>{:width=>21.0, :height=>29.7}, :context=>"742DA749905A7D6CBE875C37B0DBA014"}} (0.3ms)
17216
+ [bidi2pdf] PDF generated successfully.
17217
+ [bidi2pdf_rails] Page printed: 451.5ms
17218
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #43
17219
+ [bidi2pdf_rails] Sending command: {:id=>43, :method=>"browsingContext.close", :params=>{:context=>"742DA749905A7D6CBE875C37B0DBA014"}} (0.1ms)
17220
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"4604044612508649257.-2236804570614156680"}
17221
+ [bidi2pdf] Browsing context closed: 742DA749905A7D6CBE875C37B0DBA014 {"id"=>43, "result"=>{}, "type"=>"success"}
17222
+ [bidi2pdf] Closed tab: 742DA749905A7D6CBE875C37B0DBA014
17223
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #44
17224
+ [bidi2pdf_rails] Sending command: {:id=>44, :method=>"browsingContext.close", :params=>{:context=>"42D84F0FB0D98A9AD88B8266C969CCE4"}} (0.1ms)
17225
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"8240306381638991862.-111870371270496255"}
17226
+ [bidi2pdf] Browsing context closed: 42D84F0FB0D98A9AD88B8266C969CCE4 {"id"=>44, "result"=>{}, "type"=>"success"}
17227
+ [bidi2pdf_rails] Sending command: browser.removeUserContext id: #45
17228
+ [bidi2pdf_rails] Sending command: {:id=>45, :method=>"browser.removeUserContext", :params=>{:userContext=>"A2FD32207CAC844A70FC455597F87825"}} (0.1ms)
17229
+ [bidi2pdf] User context deleted: {}
17230
+ [bidi2pdf_rails] Page rendered and printed: 5973.7ms
17231
+ Rendering text template
17232
+ Rendered text template (Duration: 0.2ms | GC: 0.0ms)
17233
+ Sent data convert-remote-url-cookie.pdf (0.6ms)
17234
+ Completed 200 OK in 5986ms (Views: 5974.8ms | GC: 30.1ms)
17235
+
17236
+
17237
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:57:02 +0200
17238
+ Started GET "/convert-remote-url-error/404" for 127.0.0.1 at 2025-04-22 08:57:29 +0200
17239
+ Processing by ReportsController#convert_remote_url_error as HTML
17240
+ Parameters: {"code"=>"404"}
17241
+ [bidi2pdf_rails] Sending command: browser.createUserContext id: #46
17242
+ [bidi2pdf_rails] Sending command: {:id=>46, :method=>"browser.createUserContext", :params=>{}} (0.1ms)
17243
+ [bidi2pdf] User context created: "72DFF1CF54C341B05C9A291C3CD60C75"
17244
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #47
17245
+ [bidi2pdf_rails] Sending command: {:id=>47, :method=>"browsingContext.create", :params=>{:type=>"window", :userContext=>"72DFF1CF54C341B05C9A291C3CD60C75", :background=>false}} (0.1ms)
17246
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"08E3264AD7DEE516636AB61D3935EF99", "origin"=>"null", "realm"=>"-5663035761611043363.5289225978596176683", "type"=>"window"}
17247
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #48
17248
+ [bidi2pdf_rails] Sending command: {:id=>48, :method=>"browsingContext.create", :params=>{:type=>"tab", :userContext=>"72DFF1CF54C341B05C9A291C3CD60C75", :background=>false}} (0.2ms)
17249
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"F89F582EC9334FFC18EA489C6218D055", "origin"=>"null", "realm"=>"6972266505642995203.6718599992301512691", "type"=>"window"}
17250
+ [bidi2pdf] [D1] Created new browser tab: #<Bidi2pdf::Bidi::BrowserTab:0x000000012893c280 @client=#<Bidi2pdf::Bidi::Client:0x00000001283f4598 @ws_url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @started=true, @connection_manager=#<Bidi2pdf::Bidi::ConnectionManager:0x00000001283f44d0 @logger=#<ActiveSupport::Logger:0x0000000128b76aa0 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x000000012756ac20 @datetime_format=nil>, @formatter=#<ActiveSupport::Logger::SimpleFormatter:0x0000000128bb85b8 @datetime_format=nil, @thread_key="activesupport_tagged_logging_tags:7940", @tag_stack=#<ActiveSupport::TaggedLogging::TagStack:0x0000000128bb84a0 @tags=["bidi2pdf"], @tags_string=nil>>, @logdev=#<Logger::LogDevice:0x000000012772f470 @shift_period_suffix="%Y%m%d", @shift_size=104857600, @shift_age=1, @filename="/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log", @dev=#<File:/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log>, @binmode=false, @reraise_write_errors=[], @skip_header=false, @mon_data=#<Monitor:0x000000012756a3d8>, @mon_data_owner_object_id=5740>, @level_override={}, @local_level_key=:logger_thread_safe_level_8600>, @connected=true, @connection_queue=#<Thread::Queue:0x00000001283f4458>>, @socket=#<WebSocket::Client::Simple::Client:0x00000001283f42f0 @__events=[{:type=>:open, :listener=>#<Proc:0x00000001283f3a80 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x00000001283f3a58 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x00000001283f3a30 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x00000001283f39b8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000128499200 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57244>, @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @key="+BVDHTOaVFDsBkKO6xW8Qw==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x00000001284991b0 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @command_manager=#<Bidi2pdf::Bidi::CommandManager:0x00000001283f4228 @socket=#<WebSocket::Client::Simple::Client:0x00000001283f42f0 @__events=[{:type=>:open, :listener=>#<Proc:0x00000001283f3a80 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x00000001283f3a58 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x00000001283f3a30 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x00000001283f39b8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000128499200 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57244>, @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @key="+BVDHTOaVFDsBkKO6xW8Qw==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x00000001284991b0 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @pending_responses={}, @initiated_cmds={}>, @dispatcher=#<Bidi2pdf::Bidi::WebSocketDispatcher:0x00000001283f4160 @socket=#<WebSocket::Client::Simple::Client:0x00000001283f42f0 @__events=[{:type=>:open, :listener=>#<Proc:0x00000001283f3a80 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x00000001283f3a58 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x00000001283f3a30 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x00000001283f39b8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000128499200 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57244>, @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 @handshake=<WebSocket::Handshake::Client:0x00002940 @url="ws://localhost:57233/session/116783720fd2ad3cdd1faf1ff5fed21e", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"+3LbnphcPbhd84xs9Mc/7gcWhBs="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x00000001283900e8 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @key="+BVDHTOaVFDsBkKO6xW8Qw==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: +3LbnphcPbhd84xs9Mc/7gcWhBs=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57233, @path="/session/116783720fd2ad3cdd1faf1ff5fed21e", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x00000001284991b0 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @socket_events=#<Bidi2pdf::Bidi::EventManager:0x00000001283f40c0 @listeners={:open=>[#<Proc:0x00000001283f3df0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:55>], :message=>[#<Proc:0x00000001283f3d28 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:56>], :close=>[#<Proc:0x0000000128498468 /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/chromedriver_manager_singleton.rb:36>]}, @type="socket-event">, @session_events=#<Bidi2pdf::Bidi::EventManager:0x00000001283f3fd0 @listeners={:"network.beforeRequestSent"=>[#<Proc:0x0000000128c5e418 (lambda)>, #<Proc:0x0000000127b40fa0 (lambda)>, #<Proc:0x00000001275cf8f0 (lambda)>, #<Proc:0x0000000127642080 (lambda)>], :"network.responseStarted"=>[#<Proc:0x0000000128c5e418 (lambda)>, #<Proc:0x0000000127b40fa0 (lambda)>, #<Proc:0x00000001275cf8f0 (lambda)>, #<Proc:0x0000000127642080 (lambda)>], :"network.responseCompleted"=>[#<Proc:0x0000000128c5e418 (lambda)>, #<Proc:0x0000000127b40fa0 (lambda)>, #<Proc:0x00000001275cf8f0 (lambda)>, #<Proc:0x0000000127642080 (lambda)>], :"network.fetchError"=>[#<Proc:0x0000000128c5e418 (lambda)>, #<Proc:0x0000000127b40fa0 (lambda)>, #<Proc:0x00000001275cf8f0 (lambda)>, #<Proc:0x0000000127642080 (lambda)>], :"log.entryAdded"=>[#<Proc:0x0000000128c5b948 (lambda)>, #<Proc:0x00000001278ebca0 (lambda)>, #<Proc:0x000000012746c490 (lambda)>, #<Proc:0x0000000127585688 (lambda)>], :"browsingContext.navigationFailed"=>[#<Proc:0x0000000128c59058 (lambda)>, #<Proc:0x000000012768dbe8 (lambda)>, #<Proc:0x00000001272c24f0 (lambda)>, #<Proc:0x00000001273442e8 (lambda)>], :network=>[]}, @type="session-event">>>, @browsing_context_id="F89F582EC9334FFC18EA489C6218D055", @user_context_id="72DFF1CF54C341B05C9A291C3CD60C75", @tabs=[], @network_events=#<Bidi2pdf::Bidi::NetworkEvents:0x00000001291bab78 @context_id="F89F582EC9334FFC18EA489C6218D055", @events={}, @network_event_formatter=#<Bidi2pdf::Bidi::NetworkEventFormatters::NetworkEventConsoleFormatter:0x00000001291bab50 @color_enabled=true, @logger=#<Logger:0x0000000128b76910 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000000128bb8158 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @logger_events=#<Bidi2pdf::Bidi::LoggerEvents:0x00000001291bab28 @context_id="F89F582EC9334FFC18EA489C6218D055", @browser_console_logger=#<Bidi2pdf::Bidi::BrowserConsoleLogger:0x00000001291bab00 @logger=#<Logger:0x0000000128b76870 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000000128bb80b8 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @navigation_failed_events=#<Bidi2pdf::Bidi::NavigationFailedEvents:0x00000001291baad8 @context_id="F89F582EC9334FFC18EA489C6218D055">, @open=true>
17251
+ [bidi2pdf_rails] Sending command: session.subscribe id: #49
17252
+ [bidi2pdf_rails] Sending command: {:id=>49, :method=>"session.subscribe", :params=>{:events=>["network.beforeRequestSent", "network.responseStarted", "network.responseCompleted", "network.fetchError"]}} (0.1ms)
17253
+ [bidi2pdf_rails] Sending command: session.subscribe id: #50
17254
+ [bidi2pdf_rails] Sending command: {:id=>50, :method=>"session.subscribe", :params=>{:events=>["log.entryAdded"]}} (0.1ms)
17255
+ [bidi2pdf_rails] Sending command: session.subscribe id: #51
17256
+ [bidi2pdf_rails] Sending command: {:id=>51, :method=>"session.subscribe", :params=>{:events=>["browsingContext.navigationFailed"]}} (0.1ms)
17257
+ [bidi2pdf_rails] Sending command: browsingContext.navigate id: #52
17258
+ [bidi2pdf_rails] Sending command: {:id=>52, :method=>"browsingContext.navigate", :params=>{:url=>"http://127.0.0.1:3000/404", :context=>"F89F582EC9334FFC18EA489C6218D055", :wait=>"complete"}} (0.4ms)
17259
+ [bidi2pdf_rails] [network] ┌─ Network Event ──────────────────────────────────────
17260
+ [bidi2pdf_rails] [network] │ Request: GET http://127.0.0.1:3000/404
17261
+ [bidi2pdf_rails] [network] │ State: completed
17262
+ [bidi2pdf_rails] [network] │ Status: HTTP 200
17263
+ [bidi2pdf_rails] [network] │ Started: 2025-04-22 06:57:29.614 UTC
17264
+ [bidi2pdf_rails] [network] │ Ended: 2025-04-22 06:57:29.614 UTC
17265
+ [bidi2pdf_rails] [network] │ Duration: 0.0s
17266
+ [bidi2pdf_rails] [network] │ Received: 112.00 B
17267
+ [bidi2pdf_rails] [network] │
17268
+ [bidi2pdf_rails] [network] │ Timing Phases:
17269
+ [bidi2pdf_rails] [network] │ Request time : 0 ms
17270
+ [bidi2pdf_rails] [network] │ Dns start : 0 ms
17271
+ [bidi2pdf_rails] [network] │ Dns end : 0 ms
17272
+ [bidi2pdf_rails] [network] │ Connect start : 0 ms
17273
+ [bidi2pdf_rails] [network] │ Connect end : 0 ms
17274
+ [bidi2pdf_rails] [network] └──────────────────────────────────────────────────────
17275
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"6972266505642995203.6718599992301512691"}
17276
+ [bidi2pdf] Navigated to page url: http://127.0.0.1:3000/404 response: {"id"=>52, "result"=>{"navigation"=>"2aa809e4-d820-4d35-ae88-6e5c880ac767", "url"=>"http://127.0.0.1:3000/404"}, "type"=>"success"}
17277
+ [bidi2pdf] ✅ All network events completed.
17278
+ [bidi2pdf_rails] Network was idle after 0.1ms, 1 requests, transferred 112 bytes (status codes: 200: 1)
17279
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:57:29 +0200
17280
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"F89F582EC9334FFC18EA489C6218D055", "origin"=>"http://127.0.0.1:3000", "realm"=>"4542459360366209312.4404283589085149978", "type"=>"window"}
17281
+ [bidi2pdf_rails] Sending command: browsingContext.print id: #53
17282
+ [bidi2pdf_rails] Sending command: {:id=>53, :method=>"browsingContext.print", :params=>{:background=>true, :orientation=>"portrait", :scale=>1.0, :shrinkToFit=>false, :margin=>{:top=>2.5, :bottom=>2, :left=>2, :right=>2}, :page=>{:width=>21.0, :height=>29.7}, :context=>"F89F582EC9334FFC18EA489C6218D055"}} (0.1ms)
17283
+ [bidi2pdf] PDF generated successfully.
17284
+ [bidi2pdf_rails] Page printed: 528.4ms
17285
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #54
17286
+ [bidi2pdf_rails] Sending command: {:id=>54, :method=>"browsingContext.close", :params=>{:context=>"F89F582EC9334FFC18EA489C6218D055"}} (0.1ms)
17287
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"4542459360366209312.4404283589085149978"}
17288
+ [bidi2pdf] Browsing context closed: F89F582EC9334FFC18EA489C6218D055 {"id"=>54, "result"=>{}, "type"=>"success"}
17289
+ [bidi2pdf] Closed tab: F89F582EC9334FFC18EA489C6218D055
17290
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #55
17291
+ [bidi2pdf_rails] Sending command: {:id=>55, :method=>"browsingContext.close", :params=>{:context=>"08E3264AD7DEE516636AB61D3935EF99"}} (0.1ms)
17292
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"-5663035761611043363.5289225978596176683"}
17293
+ [bidi2pdf] Browsing context closed: 08E3264AD7DEE516636AB61D3935EF99 {"id"=>55, "result"=>{}, "type"=>"success"}
17294
+ [bidi2pdf_rails] Sending command: browser.removeUserContext id: #56
17295
+ [bidi2pdf_rails] Sending command: {:id=>56, :method=>"browser.removeUserContext", :params=>{:userContext=>"72DFF1CF54C341B05C9A291C3CD60C75"}} (0.2ms)
17296
+ [bidi2pdf] User context deleted: {}
17297
+ [bidi2pdf_rails] Page rendered and printed: 3728.1ms
17298
+ Rendering text template
17299
+ Rendered text template (Duration: 0.2ms | GC: 0.0ms)
17300
+ Sent data convert-remote-url-cookie.pdf (0.7ms)
17301
+ Completed 200 OK in 3741ms (Views: 3730.0ms | GC: 31.3ms)
17302
+
17303
+
17304
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:57:33 +0200
17305
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:57:43 +0200
17306
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:57:50 +0200
17307
+ [bidi2pdf] Closing session
17308
+ [bidi2pdf_rails] Sending command: session.end id: #57
17309
+ [bidi2pdf_rails] Sending command: {:id=>57, :method=>"session.end", :params=>{}} (0.2ms)
17310
+ [bidi2pdf_rails] Error sending command: {} (1003.6ms) - ["Bidi2pdf::CmdTimeoutError", "Timeout waiting for response to command ID 57"]
17311
+ [bidi2pdf_rails] Session close error: #<Bidi2pdf::CmdTimeoutError: Timeout waiting for response to command ID 57>, attempt: 1, retry: true
17312
+ [bidi2pdf-rails] WebSocket session closed
17313
+ [bidi2pdf_rails] Sending command: session.end id: #58
17314
+ [bidi2pdf_rails] Sending command: {:id=>58, :method=>"session.end", :params=>{}} (0.3ms)
17315
+ [bidi2pdf_rails] Error sending command: {} (1005.2ms) - ["Bidi2pdf::CmdTimeoutError", "Timeout waiting for response to command ID 58"]
17316
+ [bidi2pdf_rails] Session close error: #<Bidi2pdf::CmdTimeoutError: Timeout waiting for response to command ID 58>, attempt: 2, retry: false
17317
+ [bidi2pdf] Stopping Chromedriver (PID 13220)
17318
+ [bidi2pdf-rails] Shutting down Bidi2pdf ChromeDriver manager
17319
+ [bidi2pdf] websocket-native available; use enhance performance.
17320
+ [bidi2pdf] websocket-native available; use enhance performance.
17321
+ [bidi2pdf] websocket-native available; use enhance performance.
17322
+ [bidi2pdf-rails] Initializing Bidi2pdf ChromeDriver manager
17323
+ [bidi2pdf] Checking current version
17324
+ [bidi2pdf] /Users/fastjack/.webdrivers/chromedriver is already downloaded
17325
+ [bidi2pdf] making System call: ["/Users/fastjack/.webdrivers/chromedriver", "--version"]
17326
+ [bidi2pdf] System call returned: ChromeDriver 135.0.7049.95 (de2eb485a1951079e63bdb57ce25544d2dc79c15-refs/branch-heads/7049@{#1836})
17327
+
17328
+ [bidi2pdf] Current version of /Users/fastjack/.webdrivers/chromedriver is ChromeDriver 135.0.7049.95 (de2eb485a1951079e63bdb57ce25544d2dc79c15-refs/branch-heads/7049@{#1836})
17329
+
17330
+ [bidi2pdf] making System call: ["/Applications/Google Chrome.app/Contents/MacOS/Google Chrome", "--version"]
17331
+ [bidi2pdf] System call returned: Google Chrome 135.0.7049.96
17332
+
17333
+ [bidi2pdf] Browser version: Google Chrome 135.0.7049.96
17334
+ [bidi2pdf] Checking current version
17335
+ [bidi2pdf] /Users/fastjack/.webdrivers/chromedriver is already downloaded
17336
+ [bidi2pdf] making System call: ["/Users/fastjack/.webdrivers/chromedriver", "--version"]
17337
+ [bidi2pdf] System call returned: ChromeDriver 135.0.7049.95 (de2eb485a1951079e63bdb57ce25544d2dc79c15-refs/branch-heads/7049@{#1836})
17338
+
17339
+ [bidi2pdf] Current version of /Users/fastjack/.webdrivers/chromedriver is ChromeDriver 135.0.7049.95 (de2eb485a1951079e63bdb57ce25544d2dc79c15-refs/branch-heads/7049@{#1836})
17340
+
17341
+ [bidi2pdf] Starting download from: https://googlechromelabs.github.io/chrome-for-testing/latest-patch-versions-per-build.json
17342
+ [bidi2pdf] No proxy is being used.
17343
+ [bidi2pdf] Sending HTTP GET request...
17344
+ [bidi2pdf] making System call: ["/Applications/Google Chrome.app/Contents/MacOS/Google Chrome", "--version"]
17345
+ [bidi2pdf] System call returned: Google Chrome 135.0.7049.96
17346
+
17347
+ [bidi2pdf] Browser version: Google Chrome 135.0.7049.96
17348
+ [bidi2pdf] A working webdriver version is already on the system
17349
+ [bidi2pdf] Starting Chromedriver with command: /Users/fastjack/.webdrivers/chromedriver --user-data-dir /var/folders/pk/6c774xdj36q3l1w84s0c58r40000gp/T/bidi2pdf/user_data/cf9ed0088ef96492
17350
+ [bidi2pdf] [D1] Starting ChromeDriver 135.0.7049.95 (de2eb485a1951079e63bdb57ce25544d2dc79c15-refs/branch-heads/7049@{#1836}) on port 0
17351
+ [bidi2pdf] [D1] Only local connections are allowed.
17352
+ [bidi2pdf] [D1] Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
17353
+ [bidi2pdf] [D1] ChromeDriver was started successfully on port 57627.
17354
+ [bidi2pdf] Found port: 57627 setup port: 0
17355
+ [bidi2pdf] Started Chromedriver on port 57627, PID 16809
17356
+ [bidi2pdf] Session data: {"value"=>{"capabilities"=>{"acceptInsecureCerts"=>true, "browserName"=>"chrome", "browserVersion"=>"135.0.7049.96", "chrome"=>{"chromedriverVersion"=>"135.0.7049.95 (de2eb485a1951079e63bdb57ce25544d2dc79c15-refs/branch-heads/7049@{#1836})", "userDataDir"=>"/var/folders/pk/6c774xdj36q3l1w84s0c58r40000gp/T/.org.chromium.Chromium.Mf3B1u"}, "fedcm:accounts"=>true, "goog:chromeOptions"=>{"debuggerAddress"=>"localhost:57630"}, "networkConnectionEnabled"=>false, "pageLoadStrategy"=>"normal", "platformName"=>"mac", "proxy"=>{}, "setWindowRect"=>true, "strictFileInteractability"=>false, "timeouts"=>{"implicit"=>0, "pageLoad"=>300000, "script"=>30000}, "unhandledPromptBehavior"=>{"default"=>"ignore"}, "webSocketUrl"=>"ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", "webauthn:extension:credBlob"=>true, "webauthn:extension:largeBlob"=>true, "webauthn:extension:minPinLength"=>true, "webauthn:extension:prf"=>true, "webauthn:virtualAuthenticators"=>true}, "sessionId"=>"fd19dec5147c4f41d3ec0f94a662433f"}}
17357
+ [bidi2pdf] Created session with ID: fd19dec5147c4f41d3ec0f94a662433f
17358
+ [bidi2pdf] WebSocket URL: ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f
17359
+ [bidi2pdf] Registering WebSocket event listeners
17360
+ [bidi2pdf] WebSocket connection is open
17361
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:58:28 +0200
17362
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:58:39 +0200
17363
+ Started GET "/403" for 127.0.0.1 at 2025-04-22 08:59:08 +0200
17364
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:59:08 +0200
17365
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:59:13 +0200
17366
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:59:14 +0200
17367
+ Started GET "/convert-remote-url-error/403" for 127.0.0.1 at 2025-04-22 08:59:17 +0200
17368
+ Processing by ReportsController#convert_remote_url_error as HTML
17369
+ Parameters: {"code"=>"403"}
17370
+ [bidi2pdf] Subscribing to events
17371
+ [bidi2pdf] Registering WebSocket event listeners
17372
+ [bidi2pdf] Waiting for WebSocket connection to open
17373
+ [bidi2pdf] WebSocket connection is open
17374
+ [bidi2pdf_rails] Sending command: session.subscribe id: #1
17375
+ [bidi2pdf_rails] Sending command: {:id=>1, :method=>"session.subscribe", :params=>{:events=>["script"]}} (0.8ms)
17376
+ [bidi2pdf_rails] Sending command: browser.createUserContext id: #2
17377
+ [bidi2pdf_rails] Sending command: {:id=>2, :method=>"browser.createUserContext", :params=>{}} (0.1ms)
17378
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"0D1E3FFD3CDEFC97DB6C587977815636", "origin"=>"null", "realm"=>"2562202160699811148.5525085325802509517", "type"=>"window"}
17379
+ [bidi2pdf] User context created: "422303D1BC5F7CEBC6747180E94898C1"
17380
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #3
17381
+ [bidi2pdf_rails] Sending command: {:id=>3, :method=>"browsingContext.create", :params=>{:type=>"window", :userContext=>"422303D1BC5F7CEBC6747180E94898C1", :background=>false}} (0.1ms)
17382
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"8E9307E8E595A7446781181F01F0950B", "origin"=>"null", "realm"=>"1767881902100366471.-3077859419093831274", "type"=>"window"}
17383
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #4
17384
+ [bidi2pdf_rails] Sending command: {:id=>4, :method=>"browsingContext.create", :params=>{:type=>"tab", :userContext=>"422303D1BC5F7CEBC6747180E94898C1", :background=>false}} (0.1ms)
17385
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"9CE005FEF2A8629C5C6A0939CA76B12F", "origin"=>"null", "realm"=>"-5236727766906211638.7278201036197071241", "type"=>"window"}
17386
+ [bidi2pdf] [D1] Created new browser tab: #<Bidi2pdf::Bidi::BrowserTab:0x00000001218a9e28 @client=#<Bidi2pdf::Bidi::Client:0x0000000121c6dd98 @ws_url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @started=true, @connection_manager=#<Bidi2pdf::Bidi::ConnectionManager:0x0000000121c6dc58 @logger=#<ActiveSupport::Logger:0x00000001223c1090 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000000120dd1208 @datetime_format=nil>, @formatter=#<ActiveSupport::Logger::SimpleFormatter:0x0000000122441a38 @datetime_format=nil, @thread_key="activesupport_tagged_logging_tags:7940", @tag_stack=#<ActiveSupport::TaggedLogging::TagStack:0x0000000122441920 @tags=["bidi2pdf"], @tags_string=nil>>, @logdev=#<Logger::LogDevice:0x0000000120fdf1f8 @shift_period_suffix="%Y%m%d", @shift_size=104857600, @shift_age=1, @filename="/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log", @dev=#<File:/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log>, @binmode=false, @reraise_write_errors=[], @skip_header=false, @mon_data=#<Monitor:0x0000000120dd0c18>, @mon_data_owner_object_id=5740>, @level_override={}, @local_level_key=:logger_thread_safe_level_8600>, @connected=true, @connection_queue=#<Thread::Queue:0x0000000121c6db68>>, @socket=#<WebSocket::Client::Simple::Client:0x0000000121c6d9b0 @__events=[{:type=>:open, :listener=>#<Proc:0x0000000121c6c6f0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x0000000121c6c6a0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x0000000121c6c650 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x0000000121c6c560 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000121d24750 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57639>, @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @key="cIY6lq0kL0txX8ArW7zHWA==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x0000000121d246d8 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @command_manager=#<Bidi2pdf::Bidi::CommandManager:0x0000000121c6d8e8 @socket=#<WebSocket::Client::Simple::Client:0x0000000121c6d9b0 @__events=[{:type=>:open, :listener=>#<Proc:0x0000000121c6c6f0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x0000000121c6c6a0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x0000000121c6c650 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x0000000121c6c560 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000121d24750 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57639>, @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @key="cIY6lq0kL0txX8ArW7zHWA==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x0000000121d246d8 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @pending_responses={}, @initiated_cmds={}>, @dispatcher=#<Bidi2pdf::Bidi::WebSocketDispatcher:0x0000000121c6d668 @socket=#<WebSocket::Client::Simple::Client:0x0000000121c6d9b0 @__events=[{:type=>:open, :listener=>#<Proc:0x0000000121c6c6f0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x0000000121c6c6a0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x0000000121c6c650 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x0000000121c6c560 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000121d24750 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57639>, @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @key="cIY6lq0kL0txX8ArW7zHWA==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x0000000121d246d8 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @socket_events=#<Bidi2pdf::Bidi::EventManager:0x0000000121c6d578 @listeners={:open=>[#<Proc:0x0000000121c6cc90 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:55>], :message=>[#<Proc:0x0000000121c6cbc8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:56>], :close=>[#<Proc:0x0000000121d238f0 /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/chromedriver_manager_singleton.rb:36>]}, @type="socket-event">, @session_events=#<Bidi2pdf::Bidi::EventManager:0x0000000121c6ce98 @listeners={}, @type="session-event">>>, @browsing_context_id="9CE005FEF2A8629C5C6A0939CA76B12F", @user_context_id="422303D1BC5F7CEBC6747180E94898C1", @tabs=[], @network_events=#<Bidi2pdf::Bidi::NetworkEvents:0x0000000122546168 @context_id="9CE005FEF2A8629C5C6A0939CA76B12F", @events={}, @network_event_formatter=#<Bidi2pdf::Bidi::NetworkEventFormatters::NetworkEventConsoleFormatter:0x0000000122546140 @color_enabled=true, @logger=#<Logger:0x00000001223c0f00 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x00000001224415d8 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @logger_events=#<Bidi2pdf::Bidi::LoggerEvents:0x0000000122546118 @context_id="9CE005FEF2A8629C5C6A0939CA76B12F", @browser_console_logger=#<Bidi2pdf::Bidi::BrowserConsoleLogger:0x00000001225460f0 @logger=#<Logger:0x00000001223c0e60 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000000122441538 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @navigation_failed_events=#<Bidi2pdf::Bidi::NavigationFailedEvents:0x00000001225460c8 @context_id="9CE005FEF2A8629C5C6A0939CA76B12F">, @open=true>
17387
+ [bidi2pdf_rails] Sending command: session.subscribe id: #5
17388
+ [bidi2pdf_rails] Sending command: {:id=>5, :method=>"session.subscribe", :params=>{:events=>["network.beforeRequestSent", "network.responseStarted", "network.responseCompleted", "network.fetchError"]}} (0.2ms)
17389
+ [bidi2pdf_rails] Sending command: session.subscribe id: #6
17390
+ [bidi2pdf_rails] Sending command: {:id=>6, :method=>"session.subscribe", :params=>{:events=>["log.entryAdded"]}} (0.1ms)
17391
+ [bidi2pdf_rails] Sending command: session.subscribe id: #7
17392
+ [bidi2pdf_rails] Sending command: {:id=>7, :method=>"session.subscribe", :params=>{:events=>["browsingContext.navigationFailed"]}} (0.1ms)
17393
+ [bidi2pdf_rails] Sending command: browsingContext.navigate id: #8
17394
+ [bidi2pdf_rails] Sending command: {:id=>8, :method=>"browsingContext.navigate", :params=>{:url=>"http://127.0.0.1:3000/403", :context=>"9CE005FEF2A8629C5C6A0939CA76B12F", :wait=>"complete"}} (0.1ms)
17395
+ Started GET "/403" for 127.0.0.1 at 2025-04-22 08:59:17 +0200
17396
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"-5236727766906211638.7278201036197071241"}
17397
+ [bidi2pdf_rails] [network] ┌─ Network Event ──────────────────────────────────────
17398
+ [bidi2pdf_rails] [network] │ Request: GET http://127.0.0.1:3000/403
17399
+ [bidi2pdf_rails] [network] │ State: completed
17400
+ [bidi2pdf_rails] [network] │ Status: HTTP 403
17401
+ [bidi2pdf_rails] [network] │ Started: 2025-04-22 06:59:17.831 UTC
17402
+ [bidi2pdf_rails] [network] │ Ended: 2025-04-22 06:59:17.831 UTC
17403
+ [bidi2pdf_rails] [network] │ Duration: 0.0s
17404
+ [bidi2pdf_rails] [network] │ Received: 280.00 B
17405
+ [bidi2pdf_rails] [network] │
17406
+ [bidi2pdf_rails] [network] │ Timing Phases:
17407
+ [bidi2pdf_rails] [network] │ Request time : 0 ms
17408
+ [bidi2pdf_rails] [network] │ Dns start : 0 ms
17409
+ [bidi2pdf_rails] [network] │ Dns end : 0 ms
17410
+ [bidi2pdf_rails] [network] │ Connect start : 0 ms
17411
+ [bidi2pdf_rails] [network] │ Connect end : 0 ms
17412
+ [bidi2pdf_rails] [network] └──────────────────────────────────────────────────────
17413
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:59:17 +0200
17414
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"9CE005FEF2A8629C5C6A0939CA76B12F", "origin"=>"http://127.0.0.1:3000", "realm"=>"-6772847368917188098.-5569180940758153081", "type"=>"window"}
17415
+ [bidi2pdf] Navigated to page url: http://127.0.0.1:3000/403 response: {"id"=>8, "result"=>{"navigation"=>"121fc53a-777b-41a6-91b8-ed85fa16852b", "url"=>"http://127.0.0.1:3000/403"}, "type"=>"success"}
17416
+ [bidi2pdf] ✅ All network events completed.
17417
+ [bidi2pdf_rails] Network was idle after 0.1ms, 1 requests, transferred 280 bytes (status codes: 403: 1)
17418
+ [bidi2pdf_rails] Sending command: browsingContext.print id: #9
17419
+ [bidi2pdf_rails] Sending command: {:id=>9, :method=>"browsingContext.print", :params=>{:background=>true, :orientation=>"portrait", :scale=>1.0, :shrinkToFit=>false, :margin=>{:top=>2.5, :bottom=>2, :left=>2, :right=>2}, :page=>{:width=>21.0, :height=>29.7}, :context=>"9CE005FEF2A8629C5C6A0939CA76B12F"}} (0.3ms)
17420
+ [bidi2pdf] PDF generated successfully.
17421
+ [bidi2pdf_rails] Page printed: 143.5ms
17422
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #10
17423
+ [bidi2pdf_rails] Sending command: {:id=>10, :method=>"browsingContext.close", :params=>{:context=>"9CE005FEF2A8629C5C6A0939CA76B12F"}} (0.1ms)
17424
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"-6772847368917188098.-5569180940758153081"}
17425
+ [bidi2pdf] Browsing context closed: 9CE005FEF2A8629C5C6A0939CA76B12F {"id"=>10, "result"=>{}, "type"=>"success"}
17426
+ [bidi2pdf] Closed tab: 9CE005FEF2A8629C5C6A0939CA76B12F
17427
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #11
17428
+ [bidi2pdf_rails] Sending command: {:id=>11, :method=>"browsingContext.close", :params=>{:context=>"8E9307E8E595A7446781181F01F0950B"}} (0.1ms)
17429
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"1767881902100366471.-3077859419093831274"}
17430
+ [bidi2pdf] Browsing context closed: 8E9307E8E595A7446781181F01F0950B {"id"=>11, "result"=>{}, "type"=>"success"}
17431
+ [bidi2pdf_rails] Sending command: browser.removeUserContext id: #12
17432
+ [bidi2pdf_rails] Sending command: {:id=>12, :method=>"browser.removeUserContext", :params=>{:userContext=>"422303D1BC5F7CEBC6747180E94898C1"}} (0.4ms)
17433
+ [bidi2pdf] User context deleted: {}
17434
+ [bidi2pdf_rails] Page rendered and printed: 3402.2ms
17435
+ Rendering text template
17436
+ Rendered text template (Duration: 0.1ms | GC: 0.0ms)
17437
+ Sent data convert-remote-url-cookie.pdf (8.4ms)
17438
+ Completed 200 OK in 3459ms (Views: 3411.4ms | GC: 23.8ms)
17439
+
17440
+
17441
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:59:21 +0200
17442
+ Started GET "/convert-remote-url-error/401" for 127.0.0.1 at 2025-04-22 08:59:26 +0200
17443
+ Processing by ReportsController#convert_remote_url_error as HTML
17444
+ Parameters: {"code"=>"401"}
17445
+ [bidi2pdf_rails] Sending command: browser.createUserContext id: #13
17446
+ [bidi2pdf_rails] Sending command: {:id=>13, :method=>"browser.createUserContext", :params=>{}} (0.1ms)
17447
+ [bidi2pdf] User context created: "C714136E882DC18C48F505A219A4D34B"
17448
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #14
17449
+ [bidi2pdf_rails] Sending command: {:id=>14, :method=>"browsingContext.create", :params=>{:type=>"window", :userContext=>"C714136E882DC18C48F505A219A4D34B", :background=>false}} (0.1ms)
17450
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"4B7F6CE40FB5D6095E335957325F022E", "origin"=>"null", "realm"=>"86532103537598260.7142844840024596560", "type"=>"window"}
17451
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #15
17452
+ [bidi2pdf_rails] Sending command: {:id=>15, :method=>"browsingContext.create", :params=>{:type=>"tab", :userContext=>"C714136E882DC18C48F505A219A4D34B", :background=>false}} (0.7ms)
17453
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"327B6412B913176790DB8F7729A24F0D", "origin"=>"null", "realm"=>"698041593225574498.8804880120001269191", "type"=>"window"}
17454
+ [bidi2pdf] [D1] Created new browser tab: #<Bidi2pdf::Bidi::BrowserTab:0x000000012216dd48 @client=#<Bidi2pdf::Bidi::Client:0x0000000121c6dd98 @ws_url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @started=true, @connection_manager=#<Bidi2pdf::Bidi::ConnectionManager:0x0000000121c6dc58 @logger=#<ActiveSupport::Logger:0x00000001223c1090 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000000120dd1208 @datetime_format=nil>, @formatter=#<ActiveSupport::Logger::SimpleFormatter:0x0000000122441a38 @datetime_format=nil, @thread_key="activesupport_tagged_logging_tags:7940", @tag_stack=#<ActiveSupport::TaggedLogging::TagStack:0x0000000122441920 @tags=["bidi2pdf"], @tags_string=nil>>, @logdev=#<Logger::LogDevice:0x0000000120fdf1f8 @shift_period_suffix="%Y%m%d", @shift_size=104857600, @shift_age=1, @filename="/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log", @dev=#<File:/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log>, @binmode=false, @reraise_write_errors=[], @skip_header=false, @mon_data=#<Monitor:0x0000000120dd0c18>, @mon_data_owner_object_id=5740>, @level_override={}, @local_level_key=:logger_thread_safe_level_8600>, @connected=true, @connection_queue=#<Thread::Queue:0x0000000121c6db68>>, @socket=#<WebSocket::Client::Simple::Client:0x0000000121c6d9b0 @__events=[{:type=>:open, :listener=>#<Proc:0x0000000121c6c6f0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x0000000121c6c6a0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x0000000121c6c650 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x0000000121c6c560 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000121d24750 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57639>, @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @key="cIY6lq0kL0txX8ArW7zHWA==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x0000000121d246d8 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @command_manager=#<Bidi2pdf::Bidi::CommandManager:0x0000000121c6d8e8 @socket=#<WebSocket::Client::Simple::Client:0x0000000121c6d9b0 @__events=[{:type=>:open, :listener=>#<Proc:0x0000000121c6c6f0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x0000000121c6c6a0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x0000000121c6c650 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x0000000121c6c560 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000121d24750 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57639>, @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @key="cIY6lq0kL0txX8ArW7zHWA==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x0000000121d246d8 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @pending_responses={}, @initiated_cmds={}>, @dispatcher=#<Bidi2pdf::Bidi::WebSocketDispatcher:0x0000000121c6d668 @socket=#<WebSocket::Client::Simple::Client:0x0000000121c6d9b0 @__events=[{:type=>:open, :listener=>#<Proc:0x0000000121c6c6f0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x0000000121c6c6a0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x0000000121c6c650 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x0000000121c6c560 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000121d24750 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57639>, @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @key="cIY6lq0kL0txX8ArW7zHWA==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x0000000121d246d8 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @socket_events=#<Bidi2pdf::Bidi::EventManager:0x0000000121c6d578 @listeners={:open=>[#<Proc:0x0000000121c6cc90 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:55>], :message=>[#<Proc:0x0000000121c6cbc8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:56>], :close=>[#<Proc:0x0000000121d238f0 /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/chromedriver_manager_singleton.rb:36>]}, @type="socket-event">, @session_events=#<Bidi2pdf::Bidi::EventManager:0x0000000121c6ce98 @listeners={:"network.beforeRequestSent"=>[#<Proc:0x0000000122541280 (lambda)>], :"network.responseStarted"=>[#<Proc:0x0000000122541280 (lambda)>], :"network.responseCompleted"=>[#<Proc:0x0000000122541280 (lambda)>], :"network.fetchError"=>[#<Proc:0x0000000122541280 (lambda)>], :"log.entryAdded"=>[#<Proc:0x000000012256e780 (lambda)>], :"browsingContext.navigationFailed"=>[#<Proc:0x000000012256be90 (lambda)>], :network=>[]}, @type="session-event">>>, @browsing_context_id="327B6412B913176790DB8F7729A24F0D", @user_context_id="C714136E882DC18C48F505A219A4D34B", @tabs=[], @network_events=#<Bidi2pdf::Bidi::NetworkEvents:0x0000000122a87e38 @context_id="327B6412B913176790DB8F7729A24F0D", @events={}, @network_event_formatter=#<Bidi2pdf::Bidi::NetworkEventFormatters::NetworkEventConsoleFormatter:0x0000000122a87e10 @color_enabled=true, @logger=#<Logger:0x00000001223c0f00 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x00000001224415d8 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @logger_events=#<Bidi2pdf::Bidi::LoggerEvents:0x0000000122a87de8 @context_id="327B6412B913176790DB8F7729A24F0D", @browser_console_logger=#<Bidi2pdf::Bidi::BrowserConsoleLogger:0x0000000122a87dc0 @logger=#<Logger:0x00000001223c0e60 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000000122441538 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @navigation_failed_events=#<Bidi2pdf::Bidi::NavigationFailedEvents:0x0000000122a87d98 @context_id="327B6412B913176790DB8F7729A24F0D">, @open=true>
17455
+ [bidi2pdf_rails] Sending command: session.subscribe id: #16
17456
+ [bidi2pdf_rails] Sending command: {:id=>16, :method=>"session.subscribe", :params=>{:events=>["network.beforeRequestSent", "network.responseStarted", "network.responseCompleted", "network.fetchError"]}} (0.2ms)
17457
+ [bidi2pdf_rails] Sending command: session.subscribe id: #17
17458
+ [bidi2pdf_rails] Sending command: {:id=>17, :method=>"session.subscribe", :params=>{:events=>["log.entryAdded"]}} (0.1ms)
17459
+ [bidi2pdf_rails] Sending command: session.subscribe id: #18
17460
+ [bidi2pdf_rails] Sending command: {:id=>18, :method=>"session.subscribe", :params=>{:events=>["browsingContext.navigationFailed"]}} (0.2ms)
17461
+ [bidi2pdf_rails] Sending command: browsingContext.navigate id: #19
17462
+ [bidi2pdf_rails] Sending command: {:id=>19, :method=>"browsingContext.navigate", :params=>{:url=>"http://127.0.0.1:3000/401", :context=>"327B6412B913176790DB8F7729A24F0D", :wait=>"complete"}} (0.1ms)
17463
+ Started GET "/401" for 127.0.0.1 at 2025-04-22 08:59:26 +0200
17464
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"698041593225574498.8804880120001269191"}
17465
+ [bidi2pdf_rails] [network] ┌─ Network Event ──────────────────────────────────────
17466
+ [bidi2pdf_rails] [network] │ Request: GET http://127.0.0.1:3000/401
17467
+ [bidi2pdf_rails] [network] │ State: completed
17468
+ [bidi2pdf_rails] [network] │ Status: HTTP 401
17469
+ [bidi2pdf_rails] [network] │ Started: 2025-04-22 06:59:26.430 UTC
17470
+ [bidi2pdf_rails] [network] │ Ended: 2025-04-22 06:59:26.430 UTC
17471
+ [bidi2pdf_rails] [network] │ Duration: 0.0s
17472
+ [bidi2pdf_rails] [network] │ Received: 283.00 B
17473
+ [bidi2pdf_rails] [network] │
17474
+ [bidi2pdf_rails] [network] │ Timing Phases:
17475
+ [bidi2pdf_rails] [network] │ Request time : 0 ms
17476
+ [bidi2pdf_rails] [network] │ Dns start : 0 ms
17477
+ [bidi2pdf_rails] [network] │ Dns end : 0 ms
17478
+ [bidi2pdf_rails] [network] │ Connect start : 0 ms
17479
+ [bidi2pdf_rails] [network] │ Connect end : 0 ms
17480
+ [bidi2pdf_rails] [network] └──────────────────────────────────────────────────────
17481
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:59:26 +0200
17482
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"327B6412B913176790DB8F7729A24F0D", "origin"=>"http://127.0.0.1:3000", "realm"=>"734891237240642014.-6238431996743825094", "type"=>"window"}
17483
+ [bidi2pdf] Navigated to page url: http://127.0.0.1:3000/401 response: {"id"=>19, "result"=>{"navigation"=>"5a275006-562a-40c2-acf3-0e204ae33c13", "url"=>"http://127.0.0.1:3000/401"}, "type"=>"success"}
17484
+ [bidi2pdf] ✅ All network events completed.
17485
+ [bidi2pdf_rails] Network was idle after 0.1ms, 1 requests, transferred 283 bytes (status codes: 401: 1)
17486
+ [bidi2pdf_rails] Sending command: browsingContext.print id: #20
17487
+ [bidi2pdf_rails] Sending command: {:id=>20, :method=>"browsingContext.print", :params=>{:background=>true, :orientation=>"portrait", :scale=>1.0, :shrinkToFit=>false, :margin=>{:top=>2.5, :bottom=>2, :left=>2, :right=>2}, :page=>{:width=>21.0, :height=>29.7}, :context=>"327B6412B913176790DB8F7729A24F0D"}} (0.3ms)
17488
+ [bidi2pdf] PDF generated successfully.
17489
+ [bidi2pdf_rails] Page printed: 189.6ms
17490
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #21
17491
+ [bidi2pdf_rails] Sending command: {:id=>21, :method=>"browsingContext.close", :params=>{:context=>"327B6412B913176790DB8F7729A24F0D"}} (0.1ms)
17492
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"734891237240642014.-6238431996743825094"}
17493
+ [bidi2pdf] Browsing context closed: 327B6412B913176790DB8F7729A24F0D {"id"=>21, "result"=>{}, "type"=>"success"}
17494
+ [bidi2pdf] Closed tab: 327B6412B913176790DB8F7729A24F0D
17495
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #22
17496
+ [bidi2pdf_rails] Sending command: {:id=>22, :method=>"browsingContext.close", :params=>{:context=>"4B7F6CE40FB5D6095E335957325F022E"}} (0.1ms)
17497
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"86532103537598260.7142844840024596560"}
17498
+ [bidi2pdf] Browsing context closed: 4B7F6CE40FB5D6095E335957325F022E {"id"=>22, "result"=>{}, "type"=>"success"}
17499
+ [bidi2pdf_rails] Sending command: browser.removeUserContext id: #23
17500
+ [bidi2pdf_rails] Sending command: {:id=>23, :method=>"browser.removeUserContext", :params=>{:userContext=>"C714136E882DC18C48F505A219A4D34B"}} (0.1ms)
17501
+ [bidi2pdf] User context deleted: {}
17502
+ [bidi2pdf_rails] Page rendered and printed: 3469.2ms
17503
+ Rendering text template
17504
+ Rendered text template (Duration: 0.2ms | GC: 0.0ms)
17505
+ Sent data convert-remote-url-cookie.pdf (0.9ms)
17506
+ Completed 200 OK in 3482ms (Views: 3470.7ms | GC: 46.0ms)
17507
+
17508
+
17509
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 08:59:29 +0200
17510
+ Started GET "/convert-remote-url-error/401" for 127.0.0.1 at 2025-04-22 09:03:35 +0200
17511
+ Processing by ReportsController#convert_remote_url_error as HTML
17512
+ Parameters: {"code"=>"401"}
17513
+ [bidi2pdf_rails] Sending command: browser.createUserContext id: #24
17514
+ [bidi2pdf_rails] Sending command: {:id=>24, :method=>"browser.createUserContext", :params=>{}} (0.1ms)
17515
+ [bidi2pdf] User context created: "FBB734D824B52BC855F90435E261BC0B"
17516
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #25
17517
+ [bidi2pdf_rails] Sending command: {:id=>25, :method=>"browsingContext.create", :params=>{:type=>"window", :userContext=>"FBB734D824B52BC855F90435E261BC0B", :background=>false}} (0.1ms)
17518
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"8C33992B9FA808263D739562AEC8977D", "origin"=>"null", "realm"=>"8411653069127224912.2527699231155503652", "type"=>"window"}
17519
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #26
17520
+ [bidi2pdf_rails] Sending command: {:id=>26, :method=>"browsingContext.create", :params=>{:type=>"tab", :userContext=>"FBB734D824B52BC855F90435E261BC0B", :background=>false}} (0.2ms)
17521
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"A8B22945530196D58B77A46748F73B60", "origin"=>"null", "realm"=>"-3548796235782316142.-8609728115069197643", "type"=>"window"}
17522
+ [bidi2pdf] [D1] Created new browser tab: #<Bidi2pdf::Bidi::BrowserTab:0x000000012210f478 @client=#<Bidi2pdf::Bidi::Client:0x0000000121c6dd98 @ws_url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @started=true, @connection_manager=#<Bidi2pdf::Bidi::ConnectionManager:0x0000000121c6dc58 @logger=#<ActiveSupport::Logger:0x00000001223c1090 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000000120dd1208 @datetime_format=nil>, @formatter=#<ActiveSupport::Logger::SimpleFormatter:0x0000000122441a38 @datetime_format=nil, @thread_key="activesupport_tagged_logging_tags:7940", @tag_stack=#<ActiveSupport::TaggedLogging::TagStack:0x0000000122441920 @tags=["bidi2pdf"], @tags_string=nil>>, @logdev=#<Logger::LogDevice:0x0000000120fdf1f8 @shift_period_suffix="%Y%m%d", @shift_size=104857600, @shift_age=1, @filename="/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log", @dev=#<File:/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log>, @binmode=false, @reraise_write_errors=[], @skip_header=false, @mon_data=#<Monitor:0x0000000120dd0c18>, @mon_data_owner_object_id=5740>, @level_override={}, @local_level_key=:logger_thread_safe_level_8600>, @connected=true, @connection_queue=#<Thread::Queue:0x0000000121c6db68>>, @socket=#<WebSocket::Client::Simple::Client:0x0000000121c6d9b0 @__events=[{:type=>:open, :listener=>#<Proc:0x0000000121c6c6f0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x0000000121c6c6a0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x0000000121c6c650 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x0000000121c6c560 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000121d24750 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57639>, @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @key="cIY6lq0kL0txX8ArW7zHWA==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x0000000121d246d8 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @command_manager=#<Bidi2pdf::Bidi::CommandManager:0x0000000121c6d8e8 @socket=#<WebSocket::Client::Simple::Client:0x0000000121c6d9b0 @__events=[{:type=>:open, :listener=>#<Proc:0x0000000121c6c6f0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x0000000121c6c6a0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x0000000121c6c650 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x0000000121c6c560 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000121d24750 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57639>, @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @key="cIY6lq0kL0txX8ArW7zHWA==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x0000000121d246d8 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @pending_responses={}, @initiated_cmds={}>, @dispatcher=#<Bidi2pdf::Bidi::WebSocketDispatcher:0x0000000121c6d668 @socket=#<WebSocket::Client::Simple::Client:0x0000000121c6d9b0 @__events=[{:type=>:open, :listener=>#<Proc:0x0000000121c6c6f0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x0000000121c6c6a0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x0000000121c6c650 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x0000000121c6c560 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000121d24750 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57639>, @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @key="cIY6lq0kL0txX8ArW7zHWA==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x0000000121d246d8 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @socket_events=#<Bidi2pdf::Bidi::EventManager:0x0000000121c6d578 @listeners={:open=>[#<Proc:0x0000000121c6cc90 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:55>], :message=>[#<Proc:0x0000000121c6cbc8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:56>], :close=>[#<Proc:0x0000000121d238f0 /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/chromedriver_manager_singleton.rb:36>]}, @type="socket-event">, @session_events=#<Bidi2pdf::Bidi::EventManager:0x0000000121c6ce98 @listeners={:"network.beforeRequestSent"=>[#<Proc:0x0000000122541280 (lambda)>, #<Proc:0x0000000122a83608 (lambda)>], :"network.responseStarted"=>[#<Proc:0x0000000122541280 (lambda)>, #<Proc:0x0000000122a83608 (lambda)>], :"network.responseCompleted"=>[#<Proc:0x0000000122541280 (lambda)>, #<Proc:0x0000000122a83608 (lambda)>], :"network.fetchError"=>[#<Proc:0x0000000122541280 (lambda)>, #<Proc:0x0000000122a83608 (lambda)>], :"log.entryAdded"=>[#<Proc:0x000000012256e780 (lambda)>, #<Proc:0x0000000122a80cc8 (lambda)>], :"browsingContext.navigationFailed"=>[#<Proc:0x000000012256be90 (lambda)>, #<Proc:0x0000000122a4e480 (lambda)>], :network=>[]}, @type="session-event">>>, @browsing_context_id="A8B22945530196D58B77A46748F73B60", @user_context_id="FBB734D824B52BC855F90435E261BC0B", @tabs=[], @network_events=#<Bidi2pdf::Bidi::NetworkEvents:0x00000001225e3490 @context_id="A8B22945530196D58B77A46748F73B60", @events={}, @network_event_formatter=#<Bidi2pdf::Bidi::NetworkEventFormatters::NetworkEventConsoleFormatter:0x00000001225e3468 @color_enabled=true, @logger=#<Logger:0x00000001223c0f00 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x00000001224415d8 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @logger_events=#<Bidi2pdf::Bidi::LoggerEvents:0x00000001225e3440 @context_id="A8B22945530196D58B77A46748F73B60", @browser_console_logger=#<Bidi2pdf::Bidi::BrowserConsoleLogger:0x00000001225e3418 @logger=#<Logger:0x00000001223c0e60 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000000122441538 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @navigation_failed_events=#<Bidi2pdf::Bidi::NavigationFailedEvents:0x00000001225e33f0 @context_id="A8B22945530196D58B77A46748F73B60">, @open=true>
17523
+ [bidi2pdf_rails] Sending command: session.subscribe id: #27
17524
+ [bidi2pdf_rails] Sending command: {:id=>27, :method=>"session.subscribe", :params=>{:events=>["network.beforeRequestSent", "network.responseStarted", "network.responseCompleted", "network.fetchError"]}} (0.1ms)
17525
+ [bidi2pdf_rails] Sending command: session.subscribe id: #28
17526
+ [bidi2pdf_rails] Sending command: {:id=>28, :method=>"session.subscribe", :params=>{:events=>["log.entryAdded"]}} (0.1ms)
17527
+ [bidi2pdf_rails] Sending command: session.subscribe id: #29
17528
+ [bidi2pdf_rails] Sending command: {:id=>29, :method=>"session.subscribe", :params=>{:events=>["browsingContext.navigationFailed"]}} (0.3ms)
17529
+ [bidi2pdf_rails] Sending command: browsingContext.navigate id: #30
17530
+ [bidi2pdf_rails] Sending command: {:id=>30, :method=>"browsingContext.navigate", :params=>{:url=>"http://dfdgfsgsdgdfg.com", :context=>"A8B22945530196D58B77A46748F73B60", :wait=>"complete"}} (0.1ms)
17531
+ [bidi2pdf_rails] [network] ┌─ Network Event ──────────────────────────────────────
17532
+ [bidi2pdf_rails] [network] │ Request: GET http://dfdgfsgsdgdfg.com/
17533
+ [bidi2pdf_rails] [network] │ State: completed
17534
+ [bidi2pdf_rails] [network] │ Status: HTTP 307
17535
+ [bidi2pdf_rails] [network] │ Started: 2025-04-22 07:03:35.884 UTC
17536
+ [bidi2pdf_rails] [network] │ Ended: 2025-04-22 07:03:35.884 UTC
17537
+ [bidi2pdf_rails] [network] │ Duration: 0.0s
17538
+ [bidi2pdf_rails] [network] │ Received: 0.00 B
17539
+ [bidi2pdf_rails] [network] │
17540
+ [bidi2pdf_rails] [network] │ Timing Phases:
17541
+ [bidi2pdf_rails] [network] │ Request time : 0 ms
17542
+ [bidi2pdf_rails] [network] │ Dns start : 0 ms
17543
+ [bidi2pdf_rails] [network] │ Dns end : 0 ms
17544
+ [bidi2pdf_rails] [network] │ Connect start : 0 ms
17545
+ [bidi2pdf_rails] [network] │ Connect end : 0 ms
17546
+ [bidi2pdf_rails] [network] └──────────────────────────────────────────────────────
17547
+ [bidi2pdf_rails] [network] ┌─ Network Event ──────────────────────────────────────
17548
+ [bidi2pdf_rails] [network] │ Request: GET http://dfdgfsgsdgdfg.com/
17549
+ [bidi2pdf_rails] [network] │ State: completed
17550
+ [bidi2pdf_rails] [network] │ Status: HTTP 307
17551
+ [bidi2pdf_rails] [network] │ Started: 2025-04-22 07:03:35.884 UTC
17552
+ [bidi2pdf_rails] [network] │ Ended: 2025-04-22 07:03:35.885 UTC
17553
+ [bidi2pdf_rails] [network] │ Duration: 0.001s
17554
+ [bidi2pdf_rails] [network] │ Received: 0.00 B
17555
+ [bidi2pdf_rails] [network] │
17556
+ [bidi2pdf_rails] [network] │ Timing Phases:
17557
+ [bidi2pdf_rails] [network] │ Request time : 0 ms
17558
+ [bidi2pdf_rails] [network] │ Dns start : 0 ms
17559
+ [bidi2pdf_rails] [network] │ Dns end : 0 ms
17560
+ [bidi2pdf_rails] [network] │ Connect start : 0 ms
17561
+ [bidi2pdf_rails] [network] │ Connect end : 0 ms
17562
+ [bidi2pdf_rails] [network] └──────────────────────────────────────────────────────
17563
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"-3548796235782316142.-8609728115069197643"}
17564
+ [bidi2pdf_rails] [network] ┌─ Network Event ──────────────────────────────────────
17565
+ [bidi2pdf_rails] [network] │ Request: GET http://dfdgfsgsdgdfg.com/
17566
+ [bidi2pdf_rails] [network] │ State: error
17567
+ [bidi2pdf_rails] [network] │ Status: HTTP 307
17568
+ [bidi2pdf_rails] [network] │ Started: 2025-04-22 07:03:35.884 UTC
17569
+ [bidi2pdf_rails] [network] │ Ended: 2025-04-22 07:03:35.953 UTC
17570
+ [bidi2pdf_rails] [network] │ Duration: 0.068s
17571
+ [bidi2pdf_rails] [network] │ Received: 0.00 B
17572
+ [bidi2pdf_rails] [network] │
17573
+ [bidi2pdf_rails] [network] │ Timing Phases:
17574
+ [bidi2pdf_rails] [network] │ Request time : 0 ms
17575
+ [bidi2pdf_rails] [network] │ Dns start : 0 ms
17576
+ [bidi2pdf_rails] [network] │ Dns end : 0 ms
17577
+ [bidi2pdf_rails] [network] │ Connect start : 0 ms
17578
+ [bidi2pdf_rails] [network] │ Connect end : 0 ms
17579
+ [bidi2pdf_rails] [network] └──────────────────────────────────────────────────────
17580
+ [bidi2pdf] Navigation failed for URL: http://dfdgfsgsdgdfg.com/, Navigation: bd509887-1e46-4239-b0f0-7805ab0fdc4e
17581
+ [bidi2pdf_rails] Received error: "unknown error" for cmd: 30
17582
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"A8B22945530196D58B77A46748F73B60", "origin"=>"null", "realm"=>"6505525795594061409.2874024092787009555", "type"=>"window"}
17583
+ [bidi2pdf_rails] Error sending command: {:url=>"http://dfdgfsgsdgdfg.com", :context=>"A8B22945530196D58B77A46748F73B60", :wait=>"complete"} (118.7ms) - ["Bidi2pdf::CmdError", "Error response: unknown error #<Bidi2pdf::Bidi::Commands::BrowsingContextNavigate:12920 {:method_name=>\"browsingContext.navigate\", :params=>{:url=>\"http://dfdgfsgsdgdfg.com\", :context=>\"A8B22945530196D58B77A46748F73B60\", :wait=>\"complete\"}}>"]
17584
+ [bidi2pdf_rails] [network] ┌─ Network Event ──────────────────────────────────────
17585
+ [bidi2pdf_rails] [network] │ Request: GET data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABNEAAABkBAMAAABayruYAAAAJFBMVEUAAADa2tr/////9/e6urpTU1O5ubn39/f///9ZWVlfX1/z8/O/OctmAAAACXRSTlMA//////////ZO3iNwAAALPElEQVR4AezdwY6bShMF4GP6krX9Bqgk9kiI/SzyAAir9lnlFfL6N26OWhXckDae9mClj/L7L1czMMbfbYDMOCgpKSkpwelyRmIEd6mEhTQpDabvu1C7vsf2ALM6cLlctquVtq2YDwC1jrfHEVDV8fagvln7p7XOlUKVi9SKWrncY5GQnN0DhLuZ1HZJa7WZPemU0GCc6hUMBtVue4BZHeD3v1caTn9KIyiPSimIvjw8SqtDVaQlvKrT2e91JEVUsEilOtGTNkkNUglWnFLX1oDrWSwGSOZ8V91CRczFDnBkWVEaKG0WBISZDPOTeeD2MIZK/Sz4YESUkbxdRhlkTXTrJ74d+aQ1bFRPSRvYjUuLmLOKmNjIch3/fQesGygrHW/SyO2WWzWmSyvSHjpVE1WJSWsIqwJk0agmSmsb39gnzbGKSaOXyJTGKmFSA6vvv/Nh3NQaDpyjPWaCp22mt0+ahkj+LlTzU4tu3Ujjrt4nrZoIq20qlT8brW/4k7S5sQGq73ZJO+M5aawjc5pHRmmYLxMozY/64llp8oAeeaQrMWkir5EGnSPLg8aZ6OaIrJ3n8WsX0lptPCy5ldOiYaT5xro0p9cEaa7nAENd99DOrEzIK0btxOrDSKMl0JeyCgugtr2DSWunmDR2Xy7tdF7c7MgmrfmLNDa7LWmOX9pllzbSDac0UBqrpTQOHOboeQBpIWJOjU3Oq8dItu+pNZRWLaWFBg+nnyBt6FhxIMIrVGxfFqGujcuDj/lkf6S0EeYC9E5aGDiUtAMcPUNkMZ8xl/Oj0qqJ0tomSFs2xDfkaWlOr1FpZzwrzU5qP3jn1px/qeroQUGVDyR2q/hs9X5auSI44T5nLheTJkppdnDpiNJCY1ta3wVQcB2lceBrpH3Dj29F2qdKO50vEWunl0qb6RDUcO0ojQOGYFya6++gnVlRGiubIO1CXgtq+IFPTZF2AeJvBBeT+Ffz8TlpvJnhZTleSTo+NwOB4Iq0QbvPl/btJz41Rdpanpemf5EWbmZQVheXZgei0m7Fp0v7+Ts/APteqI6savX/Y22XCa3NJVlH9qrP092DSROfv3qUOXdt/t8z0iyo3rjplgMJ0ugkemPjHCobnKK3PPiFnNOOL61Iq95cGq89rZ9aQ6l1MKNYhLqi9XKZX79if0EokqNrk9FZwtZj0EJks01pamYztFYaSz7qXmmue5U0f+0Zs0FpWqR9rbSpIqwGFWEpG0Fau1/a4Fn1r5rTskv7pV5aJeYwA4hKli4UjFXmh2LhGho8mujW1yNzlFE+R7QdpDWUNgGoOHmxQWnazP090nr/R/UV0sLfe2ryGVfcZB1Zkms+qLRKhGki0iTkC6VNglmaNKC0KTSCNAhnvf3SOnT5pW3pwlgnzWnLqwOY9ghKE2nDzuQ7laUL81KMtHlYDC9TtpNIY+xJsrTl1pmnD6I8OeNE1gAsGzZgpIGz3pa0fkvaFe7qpfX5pH18fPyj0sKX6SRipTHKiHyJtIrS0Fppk4ANwgvSpNmW5hOXdu078Cab5pP23/cZx9oZV6I0qI5RaVC9SVO+dwyd5OlCNXKHQ9QsTF5qy8nY0zRp0a2nUiPO1bY9O6O0RaO10hpsSHPb0oD80vzP3AKqutSVfD+NITS7JAnrQaWRFeulNA35ImmVzLAgbZBmGySnKdIwJEjDkH1Oe4U0+94JnWTqQlUNNARpd5napTob2QYU33qqNEbifUn+3ahbK0Ga25bm/JzGhTKep+VOTmlFWpMiDcOmtKEbtLs9aNZrz9dIY+z5fKYu1MTc5dDVTBKlliBtsfWUyNpXiG2nSpvENHiJqT1B9To/dIDjQFSa0+ugvV5d32f7G/Yi7d2lAVYaQ0zMFeAgB0jwThrglDYzSMMXSIOPZOnGpW1Tm5pK2qelIS2yeptXGOB5aZ0zNaXZAaqLSKPNIm21W6TRCakMpqY0/8QNlmNcWpfj9wheElEbydxFVBpE1qVhSS2FkOyTlrDsPmlGVxfQXPuO0swAh1gupdHm+0uT3F1EoGWXJjiANCLqezuJMYMZIEGWVhoHcvwW3uupSfYurLRtapPc0iBOTXywFtkpTZBJGvp+CCdmvJIEYwZIkKWRlu932I8vrUjL8KlWhuDwhtLSr+3zdxGDZqnxdi2LBlhSEwlF+qv6XGkQaWZyImmNHZ815HojLfETYFguoeG0+gkwx5ZWpO3Krk+14tVCzk+1ej01kVd0EYHmNf15a2NOw1FLTSBM6qtKjajgYNJ4upb3k/r+TWki7SRr0iYRlX9Kmh/su8yfPvqa8MglqiKpXeGBzXYlaQ2khntpLX9AyEuLsOFWU+XYrSdHcDxpbtAuDGT6ROV/SVollNZULdcd32oSHZ7OcevKvKc0WGmZPiX+ZRFVgaikd3lgW1JLWsOs7F6a/3yLBmvSBBAh5/2vKn/ySztyji8NVZAW1m1CaXNQpL2vNOFDWjcSEUldAxQxaSLSTg3WpBHYQ9IERdpqijQmLi09qkXaYY+eKqndeBLXAFU+RA6gTcKqd7yq40hzFlS3MRCX1uHoKdJqfG2c86AGb6Wbf1b7ejcAx4GINA68c8Jvhqd240lbw3p4hra66vSoLrZ+gAyDhqnLXZUzlB0gwXnAWWl2IH+KtPeOc/3vdCCoWxYDJEhfHVz4LTwzkJKSEmetDN1ygARvA47/7OfQud4OJKWkxFJxCQOh5pP3S0lJSUlJSYmq4sipVcdF/Y4pqcfbnwNHgXFRv2FKagWgOG74D97a+h1Tonw8ZgiLjxo6nxQteV1GzmzK8NlxYkyMz/lAydGmEEVJSe7Mc0dJrY8uPyaedO4PN5I96Zsr+yp9c6ppKwKjSIuurYAZk48wy4xJb7COO2jU3CIXKPsqcV8dMnXaEjuiO76DL9xLZV/Va9+T6oP/LSVN3yO3wMXzRLEnY9lXyUk8dOquw8R4vHNG1T3fmCa90LKv0vfV/+2dQW6jQBBFEascwyqpL9RSiZO0ejvL4QZDbmB8g/hy0zXwRUPZ0QiRDfwnJ5aesstTCdNNm7yAEEJaWXE7ztQQEnRFPM6Q04+orftuwLS64XaUacjpR5Q7KyQuRirMBt0QjzLNmSHyr7TNSVuFOJuPYRjGifsw/GFp+yCtqBHlnemH4XOcKdH9Ymm7IKIT8eYNShvB/X1p3cYY2RlNznSXKI20CgQmrk2PkWZ8U1remtrBqDddukJpRNxHvxDDaqj1w7hwn0pLKbl5lfOL0pIrzZkuX6A00sYqDwy5sBpq/edYMZWWsxWTC3VpaWsK6o12G5NgmhPD0uRlaQFmKu05Pp6FL5TW5ZxRydSMqbQ1BXXGulqbDNOcFtKqqMoM7q5FM6Eq7WGlGShNp5lmoBm0B4MQVwYzbW0STENOS1AJUTQKLsuso2ARiBRnprfKvsbCo7zdUVpeLrLiG5O6vDX22pguw5y0NIKurDIJqorSROyXvU+ljVaaUZeWXFfedMmX5kyXLlAaCXNkWpcWA0JAaV/PbWkp/09pzmjypek1SmNp0ZWmMEtpoytNfUU7zTVLY2nK0sjPlKa+NGFp5AdKc58INE4/LI0cWloUe6E0TDjxpT1YGtmLaEFEcD8NJkiA6S2xmRGlZYBmDjENOftWDtFCrEyU9WrUBFajsIqElaajTEOuVFpQZKDx3Qr7Mozwx4eYhpyXsJR2m4wsGbzeNcQ9t2QHLf7pKjD1SPM7IVka2UUruKshMMGEISyNHMe8mh6lMrhuc88RDCyN7Gba9xhvlYlaBJ/CI8fSBg0qt9pIEYvpkdrdRhpLI57dXw66Mh+/K3haAuEJMOQ88FQrsoO/etICpT2ul1QAAAAASUVORK5CYII=
17586
+ [bidi2pdf_rails] [network] │ State: completed
17587
+ [bidi2pdf_rails] [network] │ Status: HTTP 200
17588
+ [bidi2pdf_rails] [network] │ Started: 2025-04-22 07:03:35.986 UTC
17589
+ [bidi2pdf_rails] [network] │ Ended: 2025-04-22 07:03:35.986 UTC
17590
+ [bidi2pdf_rails] [network] │ Duration: 0.0s
17591
+ [bidi2pdf_rails] [network] │ Received: 0.00 B
17592
+ [bidi2pdf_rails] [network] │
17593
+ [bidi2pdf_rails] [network] │ Timing Phases:
17594
+ [bidi2pdf_rails] [network] │ Request time : 0 ms
17595
+ [bidi2pdf_rails] [network] │ Dns start : 0 ms
17596
+ [bidi2pdf_rails] [network] │ Dns end : 0 ms
17597
+ [bidi2pdf_rails] [network] │ Connect start : 0 ms
17598
+ [bidi2pdf_rails] [network] │ Connect end : 0 ms
17599
+ [bidi2pdf_rails] [network] └──────────────────────────────────────────────────────
17600
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #31
17601
+ [bidi2pdf_rails] Sending command: {:id=>31, :method=>"browsingContext.close", :params=>{:context=>"A8B22945530196D58B77A46748F73B60"}} (0.1ms)
17602
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"6505525795594061409.2874024092787009555"}
17603
+ [bidi2pdf_rails] [network] ┌─ Network Event ──────────────────────────────────────
17604
+ [bidi2pdf_rails] [network] │ Request: GET data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACY4AAADCCAMAAADT9DSoAAAANlBMVEUAAADa2tr/////9/e5ubn39/dTU1P29vbv7+/+/v74+Pjw8PD///9ZWVlfX1/z8/P5+fn///9RgilMAAAAEnRSTlMA///////////////2////9gn80juWAAAR/UlEQVR4AezdAW+jOBPG8QcgVPv9P+xqHQPvu9nrTWWd1enNuY7D/ydpS+gwdqRq44yN0WUBAAAAAAAA06u/sVPPbZZ0/Ie5LNvIEWbRu11msCsK7duYZM4OcaWzf1+rVk13fbTpj1SctXMWZJHluSLYTmxlUBlVxJlkZz/py2a/txeV/o1qls9B3q55/TALAAAAHa16KeU340nT4+gKZq36LesYPMIsWmR2mbGuqGvZxqkrOsct+wNgOAYA2Gy6bysmEo3N/71HKhWzg+W1haTCZqdr06Blu5tSvS/GpLIhAAzHmsxMWyWsqJA980zxKinb+4zWxh4Zs46RIyoVosWqRGNcYRGOrJE2zCTjjzsD+SwysJLTFXdaRCjf+DA7P74yeTvmrdtUKCTWjr2uaZIAoHR7k5a3H+oLANZX+W4zdf4WjFmHP+IyrM616/ucQ+S1nFO3FWTn/r6Gsbi50Sb+3l+aykxk5Q5Mu9xstTshK20UL5MAMBwbzsmyXgCF22yD5OVx/EthAMBw7NSobP1Yh2qV7X4WyjF/shLMIio5Xrw2tsTrY/3XjQXiLPYMxFktLZ7v3O04azRYA/+z9stL3s0Zk/ibHkqvqUwA2Opzl9ock5B2J2Qtn50t5ky38txW6R8AhmM9xt4w/mrVnyMpB3I8MjyOKyyimqO9+r2O16sRswdZtv+HNN01KGRJK/1tmfdhbZ4Xq67AtoS11wDwcLsLAK49HEvhqvrU9O7Po2HudpVAq0Udn0bocfQ4DuRo0NOB7nXsULPrsG7s9MUZ/zouTV3Wj0lZq6Z7juyclFQe1yYh7ZxxXJvKBJvsd+XvTbKTQHxtc+u8WPXyJp3Fh8kkAAAAhmMxzu/G/WHWccF7HesWazVYswOw0l/L++zAvmP1Oy0BoLr5a8WmIsC9lasdBVgeE8sMgOHYFl4nczZ7lqRsPVez3Nle2/qxXrvhN8hh903CqmB7uGYX3x/sDOdzaLj/2BTNB8Ahf1NerNz+DgAAwHCs/Vox9hdr2Yp/tzFqYw1XrZ1C9KmYSdrKab+tOh+42XXldqxJFf8Q95VrN5lUucuzov4+gP5r3TDrwqb/E4BLur39KI57AYCVfccra7v65Lb1Y4HqU7O9wQbdocvqUezcD3PuR3HcCwCsTGEAYDf+v4+TCkn1M/Wz9d8l/7X1vvj7l+wAAMMxoMeu+vErAhW45nVB92O/JpXOxndVtr+78tTkiiu/fFlctnqvHXcBAOtYS/incq/9oNPyALic27xrmeef6goAVqFc21Vfy9Uot+ptXozVf/y76nuvWKox8Tbsmn2op23i3MW+eAAYjn11YuOsTlUAgN9ttoHt8jj+JQBgOAb+GOKrvLr0yiIWixngaZvUxd5lgf3jyQuGYw5n5RwANH1wW3LHOyNT5WUtvpBav6n2/dwcwR0BDMfy06wb8++XewRzG9aPlfWfwBUXqEpNMqczTq3j2t9dGYg7Ncnisuw/wOkuAGBX/n4A4CYAoDrWFQ5lrboiIGvVdM/Vebq6Mn6TNt+F23u8U1JU8aasqzGBftb7M38y7zA7P86y5SBvPG+p2dxNojoGADyzEsD4qI41GtP3Xze2+r8jxHPHOXKuofqY5aAcG9+hHzyzEgBWCQB4ZmVgpvLr85VXAYDhGLIOzZ9G/HbYfWYNWrFVOtdQ26F/0TMBz6x81uei5Opv6x9buVNe8to3jOSIKSXnWqpDDURaZe0YAAAA1bEOY++ee56tzv3Bao5GuQ9X1coTYfnmSt9irVj+rPUCxVnboZ/a2MjKzV0796RDZ+wO0Jb93AQ8S93p6NVqJR4AAACsHUO80neEIoqVYYEcplihVrRyHfv7g6u1qwTAPbNScXTIS94WNVCbI5r/dSXpGKjVSwKA2zz/tJ8f+efp3GFFZn/+pJbqPazP2Mb7WSYHsI783cYh3F52rvEyJlv+JrmPatQh442o1caiOcor5korPSxda2O2O1m3XrHzmP18QQBm5+gjW2yHVg+75noAYHuTljfpJgBogclKnjdpEcH1Z/5W1kArr10bszrYx9rY0nV3MuS//p3u2b+Va8mCt6EfzFefq03tp0TTp/eUe+cRskrkbZ+3vvfY5pyyTs62Z2ef7QqvDq0yHAOA2ywbHD+OfwnAeKiOdRh793C41niZLHO0zN20PmYttG/le+0d60+7ngfO3Y6zXheA1RmTu7Vq8QAAm698IpvKHsbfVHJflVr2s5yvBBg0Yli2m5cjonUr6wB/XFYfu3Kf8PHvebqrK8SrBtnieuUlb7F+bHMuo9yaDVdW/7vo1SrPrASA25setrcf6gkA1qG+2wzA1sDF16a5cjt2LLGIAFcrSXN9z31qUdW9+JcufcK5T/f1URs7/LNs9cjUOD4itbwqBdImXRpAdQwAbvbzdQFg7RhgtTHqY7YXf3muR5+Qle0nhv94yn3ykjf+2LD4vFn8HXdvdVZHAAAAWIf5bjOALHPE9zYL5u4vh3q7fH4ucMVejVia18aWyrn9S704JU36Y9LpijPt4zzOb42bKnFdAQDVMQC46YUBoDoGHFKz2tiuXYvnCosvrrcIRxvOVmL2IqPvnfyPvXvRkRMHogAKYdT//70ImH3WitHGkTXuCpQ4Z59NsD2iETE3hWGEujHXG/2m9zvwNH9HJVfVUaVjAADSsYajaJ1YOEbfjdl9fNinPWf/Rpv+BG6ZxsnGAOqTjgEASMcgaTWwSIiiRXo2tvf/VL85FYynHP/5d//TlfEsZv7TlXlPS86eqqyv9Yx5hX7123j3pPox6RgAgHRsfO5dp27suKx2Tj62T3tfi9hvMBv7yzJeaZZSMQfEFVm/tfpdJ6RjAABqx9pzb+Rj/VlXTz7WNjBGo0Xs+159Kd+sMqqrygz1Y/pVP7ZdOKp0rD4AQDqmfkySl+1Xb27ce1sM2L+R2oX0fOyNT0PO0+d4f5e9q3J+c38AascAAKRjcL98bBlokZnaLZ0VcNlA/dim39x+k+rH1t9WP7Y1JjsfP9nnuHTUS9MxAAA+Kt3btHGcjuRRd48Cqd1ym7xutN4rnsQc70/dGIDaMQAA6RjXO4rv8YAV1GLbafvy5vX258QkaE5LmGYrjvVSP9ZR8aPf/H5H6sfWod/jfnyjkuvoXGfs2lEvTccAAPi4yb2NNcd4bGYW2VjV+rHoR90YcK3ty+RmKzCqdAwAQO0YyMf2+He4dQXZnNDrrGqshfgzlsbnGv3+4+O/7du/KcjxvX6jz5sfh6gfa30e89E4CltqzXLre/1VJnZIxwAApGO9c+8CDnVjpK1ftk/vE8nV3L9fO0vr769dQfbGGq9ZzRhYmatz/f5zivbP5yNv1NAY9XnpGACAdOz1zRX3X+Nvt4JC9sjGUkXqVZOqMSLnCNtPntk/7t9vvPXw5Bh6X2OkL9cfhz5rZv3YBSsfnEfarMoPACAd60yxeubea5H7NKjh86r9CvysQPm8tMN2bnfNqNIxAABPVgJAQr1OjX4/T/0eb8yFtvPnAsdhzVsF/7K6sZF3TkrHAACkY9mzVwCA4zajSscAAKRjr1MqBgDjq0wd7W236neOVdmz0pcCxyFmAmt72+BR+NH+SZPPw17SMQAA6dga8723zr1hmfb6LULiGPkAkI4BAEjH8r0e+75KCdjS+JW/tu+XtAjtFpliDHiarbGtQL95ChyHtXNblaO9SccAAKRjnV4x/33b3HudeJjIgRrJ1f7PP/kt+jO7aDFc4dU/BgBqxwAAeJt5gjK1Y/uFLZZGiz1anPbaT59O+8W48SuxtWsMAJ6SjgEA4MlKiDqp9pOF+S36K8rO2/f/fQr7lxH209beMQB4cjoGAACwLAVaJIwQbQB4djoGAAAAAAAAYN0xAF5eYEKVM9AZq3YMAEA6BkBCMrF+/XBPOAOdsdIxAADpGAAJNTtrM3qA689AZ6x0DABAOgZAfs1OO4CAa85AZ2zJdAwAgDmmqABU0C7R6WzabgwJZ+D62JNuvWM6BgCA2jEAz8M9sY4H1I4BACAdA+DVX+UCSMcAAKRj+dULNb0S7iQd1fzvBN+d65Wj6jsh/7uTjgEAlDRXmre/prVnteACqxknHIPe1mWOSv5Ryr9H7x+x8qhxtON7zP8ZXK9cr1yv8rleqR0DAFA7RlWvafVzXHt/XOn4q+bBdcL1yvXKk5UAAMzJM92EWXx+zUh+bUD+/D7vT9VlKfXvbOURrleuV2RwvZKOAQAUNZ/v3HJmuu3+3ZlTt0agfX6Pn2PuctvHz/WK+3K9cr2SjgEAAAAAAADFzN6R3vZHe3ew27YORGH4DDHLbu77P2Q3WQ40FygCI0xpj0xJjST8H9A2qugTZ3cwZqiFnDoHAACwdwwAAODKXLfW5JoXWoocci4NAACmYwAAALDVjW3RvD7n3LOxTmghp8jZBgAAeF2guotlvoi5FG/mNDaXAwCAu7OXXcjVianG0/rmF0Vz2q2ONbm2C4mcA+djAADA325CbZkpY95/x1iT80u2pjdm9/WHAAAArsTfH0s1LW+VMY/ht40ipypjD6b88vUvCtkNAABAHWvdrXKwVW8a2zhos+J26qIAAAC8no3ND8ia5FXO7GysY8przscAAAD87RLlkqIcbNWlztcO2kyd+w3IUiYAAMAxsA9t7oWH5dj5Hr6ZqdPKvPjPCAAAdaxNvnJ82zfnmFYyXVdSfgAAoI51166Ce9WjmtzrmDrHtJpduj9lMh8DAIA6doCIuthdj+3byEwAAIA6Nr4salSrY2vxcrHtVWvysz9lKk80I2M+BgAA2pEvdp/rdfuPmVKZn/0idaIOBQAA4IPTJ0r1Ute5WI5bW6pn6+N6OZWjHJ54kXM5gyQpD83ZDgAA+GjcFa512vJ6bBYbc2xw0qu96BCWawpUms4CAADA9c+EXCOuUMW0leV+J7IORm2zOT2bzxm98vic7QAAgI9OuQg9xMxYq41K2CPMV+dY96/likck5Yo+ZtqP6cQAAADTMX+0se8Nz3+w8aRtmo+lCrM5tuf7sR/LmQcAAHWsPa5C8r45DVtUjMdaTUNdMYuvWa4Y5di3NmB5umdXmgAAALbxw1MfTS4e3ev9KVnxO4wm5VSHsj56fi+aTedIUvYJNpUz/g1I2zXnwgAAYCu/y0cb+KN4DynZ3qOvNAEAAJy6jnkMplcuhULyvlK9Fl9iunj/8nFoEZKy2btjtttRZnbOTz3tTDkAAKDQdCh3H5Q+7xb4P+wHZ2tQAAAA7Vkzi/j7KUfuLwPGORqK+BbbqrqTuU9JMqVuzexUOQAAoOA/EuqhCXm/z/IYtAEAAK+fR7mNK/bpY3Qf9o0BAMDescO4CwAAgOnYYfzJ8ysBAADQDhhYub4JjQEAAKDpXwgVKGwAAIA6pkV/iXhy+epVS0TUc7Y6JzUjBQAAwHTM9U0MLwEAAOAvb8W65YWQFN5fO8dWAAAArOlX8VgSmtX1uvDYv3elAAAAOOjitZB3Ba8TAgAAoI5paeGDI/VDz4S0qDfOiaJzjXPS9LacX9Aj504AAGA65uM2BgAAAO/HWk/vx7i7LRpZWl3JipxuPJard46lnjOlaqYCOVcAAADTseiDn3Q6to4BAAD4eEhVKdYvbZ+ctPe2NOXW+Y+pRg4AANiTPzvXohQ80BIAAGA71wZL/XHlfM6EVMW0ATkAAOD4OrY0heT1nq8Ytagu57uYaWNpk20MAACAgy5CXnw3AAAA+MpN+F4OtYqcGGZElZPGcAwAANxaG5WsUCGiaFGj214sHEvaGAAAuLU2u69+WbEg9CkihqUuVuQkbQwAANyZj3pUi683Qp2o21iXUy0qpYw2BgAAbsunTnFdVOtzXPHWtrEP/ZKt3kCWekh9CAAA4Dr8WY8KSfJ+UbxsY0Wv876J+Ts5aYzGAADA7RT769suh7YuiienX0SV08/HZHUZYzZ2DwAAUMeKQrZoqMgJySVFP2KrC9modHnIpc+/eh8CAAC4Fi+24v8Rk2WsL3bR/+e8ePwBAAC4PFOpTRSoI3P+0x+/VWpybRNaTpfTpFO9HwAAsI2rtGjCgTm/BQAAcB+mW2vy7bOfk+U0STrZzwUAAOY1ATgnAADTMfrmcracLuEs7wcAADAdAwAAuLD/AQPLUxmjjeldAAAAAElFTkSuQmCC
17605
+ [bidi2pdf_rails] [network] │ State: completed
17606
+ [bidi2pdf_rails] [network] │ Status: HTTP 200
17607
+ [bidi2pdf_rails] [network] │ Started: 2025-04-22 07:03:35.986 UTC
17608
+ [bidi2pdf_rails] [network] │ Ended: 2025-04-22 07:03:35.986 UTC
17609
+ [bidi2pdf_rails] [network] │ Duration: 0.0s
17610
+ [bidi2pdf_rails] [network] │ Received: 0.00 B
17611
+ [bidi2pdf_rails] [network] │
17612
+ [bidi2pdf_rails] [network] │ Timing Phases:
17613
+ [bidi2pdf_rails] [network] │ Request time : 0 ms
17614
+ [bidi2pdf_rails] [network] │ Dns start : 0 ms
17615
+ [bidi2pdf_rails] [network] │ Dns end : 0 ms
17616
+ [bidi2pdf_rails] [network] │ Connect start : 0 ms
17617
+ [bidi2pdf_rails] [network] │ Connect end : 0 ms
17618
+ [bidi2pdf_rails] [network] └──────────────────────────────────────────────────────
17619
+ [bidi2pdf_rails] [network] ┌─ Network Event ──────────────────────────────────────
17620
+ [bidi2pdf_rails] [network] │ Request: GET data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQAQMAAADdiHD7AAAABlBMVEUAAABTU1OoaSf/AAAAAXRSTlMAQObYZgAAAFJJREFUeF7t0cENgDAMQ9FwYgxG6WjpaIzCCAxQxVggFuDiCvlLOeRdHR9yzjncHVoq3npu+wQUrUuJHylSTmBaespJyJQoObUeyxDQb3bEm5Au81c0pSCD8HYAAAAASUVORK5CYII=
17621
+ [bidi2pdf_rails] [network] │ State: completed
17622
+ [bidi2pdf_rails] [network] │ Status: HTTP 200
17623
+ [bidi2pdf_rails] [network] │ Started: 2025-04-22 07:03:35.990 UTC
17624
+ [bidi2pdf_rails] [network] │ Ended: 2025-04-22 07:03:35.990 UTC
17625
+ [bidi2pdf_rails] [network] │ Duration: 0.0s
17626
+ [bidi2pdf_rails] [network] │ Received: 0.00 B
17627
+ [bidi2pdf_rails] [network] │
17628
+ [bidi2pdf_rails] [network] │ Timing Phases:
17629
+ [bidi2pdf_rails] [network] │ Request time : 0 ms
17630
+ [bidi2pdf_rails] [network] │ Dns start : 0 ms
17631
+ [bidi2pdf_rails] [network] │ Dns end : 0 ms
17632
+ [bidi2pdf_rails] [network] │ Connect start : 0 ms
17633
+ [bidi2pdf_rails] [network] │ Connect end : 0 ms
17634
+ [bidi2pdf_rails] [network] └──────────────────────────────────────────────────────
17635
+ [bidi2pdf] Browsing context closed: A8B22945530196D58B77A46748F73B60 {"id"=>31, "result"=>{}, "type"=>"success"}
17636
+ [bidi2pdf] Closed tab: A8B22945530196D58B77A46748F73B60
17637
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #32
17638
+ [bidi2pdf_rails] Sending command: {:id=>32, :method=>"browsingContext.close", :params=>{:context=>"8C33992B9FA808263D739562AEC8977D"}} (0.1ms)
17639
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"8411653069127224912.2527699231155503652"}
17640
+ [bidi2pdf] Browsing context closed: 8C33992B9FA808263D739562AEC8977D {"id"=>32, "result"=>{}, "type"=>"success"}
17641
+ [bidi2pdf_rails] Sending command: browser.removeUserContext id: #33
17642
+ [bidi2pdf_rails] Sending command: {:id=>33, :method=>"browser.removeUserContext", :params=>{:userContext=>"FBB734D824B52BC855F90435E261BC0B"}} (0.1ms)
17643
+ [bidi2pdf] User context deleted: {}
17644
+ [bidi2pdf_rails] Page rendered and printed: 788.1ms
17645
+ Completed 500 Internal Server Error in 800ms (GC: 32.6ms)
17646
+
17647
+
17648
+
17649
+ Bidi2pdf::NavigationError (Connection error: http://dfdgfsgsdgdfg.com net::ERR_NAME_NOT_RESOLVED):
17650
+
17651
+ Causes:
17652
+ Bidi2pdf::CmdError (Error response: unknown error #<Bidi2pdf::Bidi::Commands::BrowsingContextNavigate:12920 {:method_name=>"browsingContext.navigate", :params=>{:url=>"http://dfdgfsgsdgdfg.com", :context=>"A8B22945530196D58B77A46748F73B60", :wait=>"complete"}}>)
17653
+
17654
+ /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/browser_tab.rb:421:in `rescue in navigate_with_listeners'
17655
+ /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/browser_tab.rb:407:in `navigate_with_listeners'
17656
+ /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/browser_tab.rb:183:in `block in navigate_to'
17657
+ activesupport (7.2.2.1) lib/active_support/notifications.rb:210:in `block in instrument'
17658
+ activesupport (7.2.2.1) lib/active_support/notifications/instrumenter.rb:58:in `instrument'
17659
+ activesupport (7.2.2.1) lib/active_support/notifications.rb:210:in `instrument'
17660
+ /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/browser_tab.rb:182:in `navigate_to'
17661
+ /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/services/url_to_pdf_converter.rb:30:in `prepare_tab'
17662
+ /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/services/pdf_browser_session.rb:16:in `block (2 levels) in run_browser_session'
17663
+ activesupport (7.2.2.1) lib/active_support/execution_wrapper.rb:91:in `wrap'
17664
+ /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/services/pdf_browser_session.rb:9:in `block in run_browser_session'
17665
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 09:03:36 +0200
17666
+ Started GET "/convert-remote-url-error/401" for 127.0.0.1 at 2025-04-22 09:05:35 +0200
17667
+ Processing by ReportsController#convert_remote_url_error as HTML
17668
+ Parameters: {"code"=>"401"}
17669
+ [bidi2pdf_rails] Sending command: browser.createUserContext id: #34
17670
+ [bidi2pdf_rails] Sending command: {:id=>34, :method=>"browser.createUserContext", :params=>{}} (0.1ms)
17671
+ [bidi2pdf] User context created: "CC8584DB1A39940183D95748B4AC4896"
17672
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #35
17673
+ [bidi2pdf_rails] Sending command: {:id=>35, :method=>"browsingContext.create", :params=>{:type=>"window", :userContext=>"CC8584DB1A39940183D95748B4AC4896", :background=>false}} (0.1ms)
17674
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"FDC201E82C867D9A7C5C7A621BADB91D", "origin"=>"null", "realm"=>"9070987391986334392.7822019544863333806", "type"=>"window"}
17675
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #36
17676
+ [bidi2pdf_rails] Sending command: {:id=>36, :method=>"browsingContext.create", :params=>{:type=>"tab", :userContext=>"CC8584DB1A39940183D95748B4AC4896", :background=>false}} (0.2ms)
17677
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"44EFACDF82E3107CBE07F8099B82BA69", "origin"=>"null", "realm"=>"-3842197688941087465.3083083241660141598", "type"=>"window"}
17678
+ [bidi2pdf] [D1] Created new browser tab: #<Bidi2pdf::Bidi::BrowserTab:0x00000001222ae068 @client=#<Bidi2pdf::Bidi::Client:0x0000000121c6dd98 @ws_url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @started=true, @connection_manager=#<Bidi2pdf::Bidi::ConnectionManager:0x0000000121c6dc58 @logger=#<ActiveSupport::Logger:0x00000001223c1090 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000000120dd1208 @datetime_format=nil>, @formatter=#<ActiveSupport::Logger::SimpleFormatter:0x0000000122441a38 @datetime_format=nil, @thread_key="activesupport_tagged_logging_tags:7940", @tag_stack=#<ActiveSupport::TaggedLogging::TagStack:0x0000000122441920 @tags=["bidi2pdf"], @tags_string=nil>>, @logdev=#<Logger::LogDevice:0x0000000120fdf1f8 @shift_period_suffix="%Y%m%d", @shift_size=104857600, @shift_age=1, @filename="/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log", @dev=#<File:/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log>, @binmode=false, @reraise_write_errors=[], @skip_header=false, @mon_data=#<Monitor:0x0000000120dd0c18>, @mon_data_owner_object_id=5740>, @level_override={}, @local_level_key=:logger_thread_safe_level_8600>, @connected=true, @connection_queue=#<Thread::Queue:0x0000000121c6db68>>, @socket=#<WebSocket::Client::Simple::Client:0x0000000121c6d9b0 @__events=[{:type=>:open, :listener=>#<Proc:0x0000000121c6c6f0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x0000000121c6c6a0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x0000000121c6c650 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x0000000121c6c560 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000121d24750 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57639>, @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @key="cIY6lq0kL0txX8ArW7zHWA==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x0000000121d246d8 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @command_manager=#<Bidi2pdf::Bidi::CommandManager:0x0000000121c6d8e8 @socket=#<WebSocket::Client::Simple::Client:0x0000000121c6d9b0 @__events=[{:type=>:open, :listener=>#<Proc:0x0000000121c6c6f0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x0000000121c6c6a0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x0000000121c6c650 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x0000000121c6c560 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000121d24750 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57639>, @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @key="cIY6lq0kL0txX8ArW7zHWA==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x0000000121d246d8 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @pending_responses={}, @initiated_cmds={}>, @dispatcher=#<Bidi2pdf::Bidi::WebSocketDispatcher:0x0000000121c6d668 @socket=#<WebSocket::Client::Simple::Client:0x0000000121c6d9b0 @__events=[{:type=>:open, :listener=>#<Proc:0x0000000121c6c6f0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x0000000121c6c6a0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x0000000121c6c650 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x0000000121c6c560 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000121d24750 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57639>, @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @key="cIY6lq0kL0txX8ArW7zHWA==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x0000000121d246d8 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @socket_events=#<Bidi2pdf::Bidi::EventManager:0x0000000121c6d578 @listeners={:open=>[#<Proc:0x0000000121c6cc90 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:55>], :message=>[#<Proc:0x0000000121c6cbc8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:56>], :close=>[#<Proc:0x0000000121d238f0 /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/chromedriver_manager_singleton.rb:36>]}, @type="socket-event">, @session_events=#<Bidi2pdf::Bidi::EventManager:0x0000000121c6ce98 @listeners={:"network.beforeRequestSent"=>[#<Proc:0x0000000122541280 (lambda)>, #<Proc:0x0000000122a83608 (lambda)>, #<Proc:0x000000012258eb70 (lambda)>], :"network.responseStarted"=>[#<Proc:0x0000000122541280 (lambda)>, #<Proc:0x0000000122a83608 (lambda)>, #<Proc:0x000000012258eb70 (lambda)>], :"network.responseCompleted"=>[#<Proc:0x0000000122541280 (lambda)>, #<Proc:0x0000000122a83608 (lambda)>, #<Proc:0x000000012258eb70 (lambda)>], :"network.fetchError"=>[#<Proc:0x0000000122541280 (lambda)>, #<Proc:0x0000000122a83608 (lambda)>, #<Proc:0x000000012258eb70 (lambda)>], :"log.entryAdded"=>[#<Proc:0x000000012256e780 (lambda)>, #<Proc:0x0000000122a80cc8 (lambda)>, #<Proc:0x000000012258c230 (lambda)>], :"browsingContext.navigationFailed"=>[#<Proc:0x000000012256be90 (lambda)>, #<Proc:0x0000000122a4e480 (lambda)>, #<Proc:0x0000000122589a08 (lambda)>], :network=>[], :browsingContext=>[]}, @type="session-event">>>, @browsing_context_id="44EFACDF82E3107CBE07F8099B82BA69", @user_context_id="CC8584DB1A39940183D95748B4AC4896", @tabs=[], @network_events=#<Bidi2pdf::Bidi::NetworkEvents:0x0000000122b0eb18 @context_id="44EFACDF82E3107CBE07F8099B82BA69", @events={}, @network_event_formatter=#<Bidi2pdf::Bidi::NetworkEventFormatters::NetworkEventConsoleFormatter:0x0000000122b0eaf0 @color_enabled=true, @logger=#<Logger:0x00000001223c0f00 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x00000001224415d8 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @logger_events=#<Bidi2pdf::Bidi::LoggerEvents:0x0000000122b0eac8 @context_id="44EFACDF82E3107CBE07F8099B82BA69", @browser_console_logger=#<Bidi2pdf::Bidi::BrowserConsoleLogger:0x0000000122b0eaa0 @logger=#<Logger:0x00000001223c0e60 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000000122441538 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @navigation_failed_events=#<Bidi2pdf::Bidi::NavigationFailedEvents:0x0000000122b0ea78 @context_id="44EFACDF82E3107CBE07F8099B82BA69">, @open=true>
17679
+ [bidi2pdf_rails] Sending command: session.subscribe id: #37
17680
+ [bidi2pdf_rails] Sending command: {:id=>37, :method=>"session.subscribe", :params=>{:events=>["network.beforeRequestSent", "network.responseStarted", "network.responseCompleted", "network.fetchError"]}} (0.2ms)
17681
+ [bidi2pdf_rails] Sending command: session.subscribe id: #38
17682
+ [bidi2pdf_rails] Sending command: {:id=>38, :method=>"session.subscribe", :params=>{:events=>["log.entryAdded"]}} (0.1ms)
17683
+ [bidi2pdf_rails] Sending command: session.subscribe id: #39
17684
+ [bidi2pdf_rails] Sending command: {:id=>39, :method=>"session.subscribe", :params=>{:events=>["browsingContext.navigationFailed"]}} (2.7ms)
17685
+ [bidi2pdf_rails] Sending command: browsingContext.navigate id: #40
17686
+ [bidi2pdf_rails] Sending command: {:id=>40, :method=>"browsingContext.navigate", :params=>{:url=>"http://dfdgfsgsdgdfg.com", :context=>"44EFACDF82E3107CBE07F8099B82BA69", :wait=>"complete"}} (0.6ms)
17687
+ [bidi2pdf_rails] [network] ┌─ Network Event ──────────────────────────────────────
17688
+ [bidi2pdf_rails] [network] │ Request: GET http://dfdgfsgsdgdfg.com/
17689
+ [bidi2pdf_rails] [network] │ State: completed
17690
+ [bidi2pdf_rails] [network] │ Status: HTTP 307
17691
+ [bidi2pdf_rails] [network] │ Started: 2025-04-22 07:05:36.144 UTC
17692
+ [bidi2pdf_rails] [network] │ Ended: 2025-04-22 07:05:36.144 UTC
17693
+ [bidi2pdf_rails] [network] │ Duration: 0.0s
17694
+ [bidi2pdf_rails] [network] │ Received: 0.00 B
17695
+ [bidi2pdf_rails] [network] │
17696
+ [bidi2pdf_rails] [network] │ Timing Phases:
17697
+ [bidi2pdf_rails] [network] │ Request time : 0 ms
17698
+ [bidi2pdf_rails] [network] │ Dns start : 0 ms
17699
+ [bidi2pdf_rails] [network] │ Dns end : 0 ms
17700
+ [bidi2pdf_rails] [network] │ Connect start : 0 ms
17701
+ [bidi2pdf_rails] [network] │ Connect end : 0 ms
17702
+ [bidi2pdf_rails] [network] └──────────────────────────────────────────────────────
17703
+ [bidi2pdf_rails] [network] ┌─ Network Event ──────────────────────────────────────
17704
+ [bidi2pdf_rails] [network] │ Request: GET http://dfdgfsgsdgdfg.com/
17705
+ [bidi2pdf_rails] [network] │ State: completed
17706
+ [bidi2pdf_rails] [network] │ Status: HTTP 307
17707
+ [bidi2pdf_rails] [network] │ Started: 2025-04-22 07:05:36.144 UTC
17708
+ [bidi2pdf_rails] [network] │ Ended: 2025-04-22 07:05:36.144 UTC
17709
+ [bidi2pdf_rails] [network] │ Duration: 0.001s
17710
+ [bidi2pdf_rails] [network] │ Received: 0.00 B
17711
+ [bidi2pdf_rails] [network] │
17712
+ [bidi2pdf_rails] [network] │ Timing Phases:
17713
+ [bidi2pdf_rails] [network] │ Request time : 0 ms
17714
+ [bidi2pdf_rails] [network] │ Dns start : 0 ms
17715
+ [bidi2pdf_rails] [network] │ Dns end : 0 ms
17716
+ [bidi2pdf_rails] [network] │ Connect start : 0 ms
17717
+ [bidi2pdf_rails] [network] │ Connect end : 0 ms
17718
+ [bidi2pdf_rails] [network] └──────────────────────────────────────────────────────
17719
+ [bidi2pdf_rails] [network] ┌─ Network Event ──────────────────────────────────────
17720
+ [bidi2pdf_rails] [network] │ Request: GET http://dfdgfsgsdgdfg.com/
17721
+ [bidi2pdf_rails] [network] │ State: error
17722
+ [bidi2pdf_rails] [network] │ Status: HTTP 307
17723
+ [bidi2pdf_rails] [network] │ Started: 2025-04-22 07:05:36.144 UTC
17724
+ [bidi2pdf_rails] [network] │ Ended: 2025-04-22 07:05:36.163 UTC
17725
+ [bidi2pdf_rails] [network] │ Duration: 0.019s
17726
+ [bidi2pdf_rails] [network] │ Received: 0.00 B
17727
+ [bidi2pdf_rails] [network] │
17728
+ [bidi2pdf_rails] [network] │ Timing Phases:
17729
+ [bidi2pdf_rails] [network] │ Request time : 0 ms
17730
+ [bidi2pdf_rails] [network] │ Dns start : 0 ms
17731
+ [bidi2pdf_rails] [network] │ Dns end : 0 ms
17732
+ [bidi2pdf_rails] [network] │ Connect start : 0 ms
17733
+ [bidi2pdf_rails] [network] │ Connect end : 0 ms
17734
+ [bidi2pdf_rails] [network] └──────────────────────────────────────────────────────
17735
+ [bidi2pdf] Navigation failed for URL: http://dfdgfsgsdgdfg.com/, Navigation: 9df8c33a-a950-4687-bdb9-597ee8293466
17736
+ [bidi2pdf_rails] Received error: "unknown error" for cmd: 40
17737
+ [bidi2pdf_rails] Error sending command: {:url=>"http://dfdgfsgsdgdfg.com", :context=>"44EFACDF82E3107CBE07F8099B82BA69", :wait=>"complete"} (74.3ms) - ["Bidi2pdf::CmdError", "Error response: unknown error #<Bidi2pdf::Bidi::Commands::BrowsingContextNavigate:13300 {:method_name=>\"browsingContext.navigate\", :params=>{:url=>\"http://dfdgfsgsdgdfg.com\", :context=>\"44EFACDF82E3107CBE07F8099B82BA69\", :wait=>\"complete\"}}>"]
17738
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #41
17739
+ [bidi2pdf_rails] Sending command: {:id=>41, :method=>"browsingContext.close", :params=>{:context=>"44EFACDF82E3107CBE07F8099B82BA69"}} (0.1ms)
17740
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"-3842197688941087465.3083083241660141598"}
17741
+ [bidi2pdf] Browsing context closed: 44EFACDF82E3107CBE07F8099B82BA69 {"id"=>41, "result"=>{}, "type"=>"success"}
17742
+ [bidi2pdf] Closed tab: 44EFACDF82E3107CBE07F8099B82BA69
17743
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #42
17744
+ [bidi2pdf_rails] Sending command: {:id=>42, :method=>"browsingContext.close", :params=>{:context=>"FDC201E82C867D9A7C5C7A621BADB91D"}} (0.1ms)
17745
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"9070987391986334392.7822019544863333806"}
17746
+ [bidi2pdf] Browsing context closed: FDC201E82C867D9A7C5C7A621BADB91D {"id"=>42, "result"=>{}, "type"=>"success"}
17747
+ [bidi2pdf_rails] Sending command: browser.removeUserContext id: #43
17748
+ [bidi2pdf_rails] Sending command: {:id=>43, :method=>"browser.removeUserContext", :params=>{:userContext=>"CC8584DB1A39940183D95748B4AC4896"}} (0.1ms)
17749
+ [bidi2pdf] User context deleted: {}
17750
+ [bidi2pdf_rails] Page rendered and printed: 426.4ms
17751
+ Completed 500 Internal Server Error in 438ms (GC: 7.1ms)
17752
+
17753
+
17754
+
17755
+ Bidi2pdf::NavigationError (Connection error: http://dfdgfsgsdgdfg.com net::ERR_NAME_NOT_RESOLVED):
17756
+
17757
+ Causes:
17758
+ Bidi2pdf::CmdError (Error response: unknown error #<Bidi2pdf::Bidi::Commands::BrowsingContextNavigate:13300 {:method_name=>"browsingContext.navigate", :params=>{:url=>"http://dfdgfsgsdgdfg.com", :context=>"44EFACDF82E3107CBE07F8099B82BA69", :wait=>"complete"}}>)
17759
+
17760
+ /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/browser_tab.rb:421:in `rescue in navigate_with_listeners'
17761
+ /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/browser_tab.rb:407:in `navigate_with_listeners'
17762
+ /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/browser_tab.rb:183:in `block in navigate_to'
17763
+ activesupport (7.2.2.1) lib/active_support/notifications.rb:210:in `block in instrument'
17764
+ activesupport (7.2.2.1) lib/active_support/notifications/instrumenter.rb:58:in `instrument'
17765
+ activesupport (7.2.2.1) lib/active_support/notifications.rb:210:in `instrument'
17766
+ /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/browser_tab.rb:182:in `navigate_to'
17767
+ /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/services/url_to_pdf_converter.rb:30:in `prepare_tab'
17768
+ /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/services/pdf_browser_session.rb:16:in `block (2 levels) in run_browser_session'
17769
+ activesupport (7.2.2.1) lib/active_support/execution_wrapper.rb:91:in `wrap'
17770
+ /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/services/pdf_browser_session.rb:9:in `block in run_browser_session'
17771
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 09:05:36 +0200
17772
+ Started GET "/convert-remote-url-error/401" for 127.0.0.1 at 2025-04-22 09:09:13 +0200
17773
+
17774
+ SyntaxError (/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/app/controllers/reports_controller.rb:49: syntax error, unexpected ':', expecting `end' or dummy end
17775
+ ... wait_for_page_loaded: false
17776
+ ... ^
17777
+ ):
17778
+
17779
+ app/controllers/reports_controller.rb:49: syntax error, unexpected ':', expecting `end' or dummy end
17780
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 09:09:14 +0200
17781
+
17782
+ ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
17783
+
17784
+ Started GET "/convert-remote-url-error/401" for 127.0.0.1 at 2025-04-22 09:09:33 +0200
17785
+ Processing by ReportsController#convert_remote_url_error as HTML
17786
+ Parameters: {"code"=>"401"}
17787
+ [bidi2pdf_rails] Sending command: browser.createUserContext id: #44
17788
+ [bidi2pdf_rails] Sending command: {:id=>44, :method=>"browser.createUserContext", :params=>{}} (0.1ms)
17789
+ [bidi2pdf] User context created: "6892D378335AEFF77A8E4F8E8D0432CA"
17790
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #45
17791
+ [bidi2pdf_rails] Sending command: {:id=>45, :method=>"browsingContext.create", :params=>{:type=>"window", :userContext=>"6892D378335AEFF77A8E4F8E8D0432CA", :background=>false}} (0.1ms)
17792
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"8048B77EE43A4F6D7D98EFC72110C129", "origin"=>"null", "realm"=>"1408442565514678177.2061217096640622491", "type"=>"window"}
17793
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #46
17794
+ [bidi2pdf_rails] Sending command: {:id=>46, :method=>"browsingContext.create", :params=>{:type=>"tab", :userContext=>"6892D378335AEFF77A8E4F8E8D0432CA", :background=>false}} (0.2ms)
17795
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"A489EA6FDF5C514E6315280BD9621C41", "origin"=>"null", "realm"=>"9050207746157721847.7005133194137210470", "type"=>"window"}
17796
+ [bidi2pdf] [D1] Created new browser tab: #<Bidi2pdf::Bidi::BrowserTab:0x00000001220ce9c8 @client=#<Bidi2pdf::Bidi::Client:0x0000000121c6dd98 @ws_url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @started=true, @connection_manager=#<Bidi2pdf::Bidi::ConnectionManager:0x0000000121c6dc58 @logger=#<ActiveSupport::Logger:0x00000001223c1090 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000000120dd1208 @datetime_format=nil>, @formatter=#<ActiveSupport::Logger::SimpleFormatter:0x0000000122441a38 @datetime_format=nil, @thread_key="activesupport_tagged_logging_tags:7940", @tag_stack=#<ActiveSupport::TaggedLogging::TagStack:0x0000000122441920 @tags=["bidi2pdf"], @tags_string=nil>>, @logdev=#<Logger::LogDevice:0x0000000120fdf1f8 @shift_period_suffix="%Y%m%d", @shift_size=104857600, @shift_age=1, @filename="/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log", @dev=#<File:/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log>, @binmode=false, @reraise_write_errors=[], @skip_header=false, @mon_data=#<Monitor:0x0000000120dd0c18>, @mon_data_owner_object_id=5740>, @level_override={}, @local_level_key=:logger_thread_safe_level_8600>, @connected=true, @connection_queue=#<Thread::Queue:0x0000000121c6db68>>, @socket=#<WebSocket::Client::Simple::Client:0x0000000121c6d9b0 @__events=[{:type=>:open, :listener=>#<Proc:0x0000000121c6c6f0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x0000000121c6c6a0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x0000000121c6c650 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x0000000121c6c560 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000121d24750 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57639>, @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @key="cIY6lq0kL0txX8ArW7zHWA==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x0000000121d246d8 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @command_manager=#<Bidi2pdf::Bidi::CommandManager:0x0000000121c6d8e8 @socket=#<WebSocket::Client::Simple::Client:0x0000000121c6d9b0 @__events=[{:type=>:open, :listener=>#<Proc:0x0000000121c6c6f0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x0000000121c6c6a0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x0000000121c6c650 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x0000000121c6c560 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000121d24750 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57639>, @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @key="cIY6lq0kL0txX8ArW7zHWA==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x0000000121d246d8 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @pending_responses={}, @initiated_cmds={}>, @dispatcher=#<Bidi2pdf::Bidi::WebSocketDispatcher:0x0000000121c6d668 @socket=#<WebSocket::Client::Simple::Client:0x0000000121c6d9b0 @__events=[{:type=>:open, :listener=>#<Proc:0x0000000121c6c6f0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x0000000121c6c6a0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x0000000121c6c650 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x0000000121c6c560 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000121d24750 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57639>, @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @key="cIY6lq0kL0txX8ArW7zHWA==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x0000000121d246d8 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @socket_events=#<Bidi2pdf::Bidi::EventManager:0x0000000121c6d578 @listeners={:open=>[#<Proc:0x0000000121c6cc90 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:55>], :message=>[#<Proc:0x0000000121c6cbc8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:56>], :close=>[#<Proc:0x0000000121d238f0 /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/chromedriver_manager_singleton.rb:36>]}, @type="socket-event">, @session_events=#<Bidi2pdf::Bidi::EventManager:0x0000000121c6ce98 @listeners={:"network.beforeRequestSent"=>[#<Proc:0x0000000122541280 (lambda)>, #<Proc:0x0000000122a83608 (lambda)>, #<Proc:0x000000012258eb70 (lambda)>, #<Proc:0x0000000122b0a108 (lambda)>], :"network.responseStarted"=>[#<Proc:0x0000000122541280 (lambda)>, #<Proc:0x0000000122a83608 (lambda)>, #<Proc:0x000000012258eb70 (lambda)>, #<Proc:0x0000000122b0a108 (lambda)>], :"network.responseCompleted"=>[#<Proc:0x0000000122541280 (lambda)>, #<Proc:0x0000000122a83608 (lambda)>, #<Proc:0x000000012258eb70 (lambda)>, #<Proc:0x0000000122b0a108 (lambda)>], :"network.fetchError"=>[#<Proc:0x0000000122541280 (lambda)>, #<Proc:0x0000000122a83608 (lambda)>, #<Proc:0x000000012258eb70 (lambda)>, #<Proc:0x0000000122b0a108 (lambda)>], :"log.entryAdded"=>[#<Proc:0x000000012256e780 (lambda)>, #<Proc:0x0000000122a80cc8 (lambda)>, #<Proc:0x000000012258c230 (lambda)>, #<Proc:0x0000000122b077c8 (lambda)>], :"browsingContext.navigationFailed"=>[#<Proc:0x000000012256be90 (lambda)>, #<Proc:0x0000000122a4e480 (lambda)>, #<Proc:0x0000000122589a08 (lambda)>, #<Proc:0x0000000122b04fa0 (lambda)>], :network=>[], :browsingContext=>[]}, @type="session-event">>>, @browsing_context_id="A489EA6FDF5C514E6315280BD9621C41", @user_context_id="6892D378335AEFF77A8E4F8E8D0432CA", @tabs=[], @network_events=#<Bidi2pdf::Bidi::NetworkEvents:0x000000012268f7e0 @context_id="A489EA6FDF5C514E6315280BD9621C41", @events={}, @network_event_formatter=#<Bidi2pdf::Bidi::NetworkEventFormatters::NetworkEventConsoleFormatter:0x000000012268f7b8 @color_enabled=true, @logger=#<Logger:0x00000001223c0f00 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x00000001224415d8 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @logger_events=#<Bidi2pdf::Bidi::LoggerEvents:0x000000012268f790 @context_id="A489EA6FDF5C514E6315280BD9621C41", @browser_console_logger=#<Bidi2pdf::Bidi::BrowserConsoleLogger:0x000000012268f768 @logger=#<Logger:0x00000001223c0e60 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000000122441538 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @navigation_failed_events=#<Bidi2pdf::Bidi::NavigationFailedEvents:0x000000012268f740 @context_id="A489EA6FDF5C514E6315280BD9621C41">, @open=true>
17797
+ [bidi2pdf_rails] Sending command: session.subscribe id: #47
17798
+ [bidi2pdf_rails] Sending command: {:id=>47, :method=>"session.subscribe", :params=>{:events=>["network.beforeRequestSent", "network.responseStarted", "network.responseCompleted", "network.fetchError"]}} (0.1ms)
17799
+ [bidi2pdf_rails] Sending command: session.subscribe id: #48
17800
+ [bidi2pdf_rails] Sending command: {:id=>48, :method=>"session.subscribe", :params=>{:events=>["log.entryAdded"]}} (0.1ms)
17801
+ [bidi2pdf_rails] Sending command: session.subscribe id: #49
17802
+ [bidi2pdf_rails] Sending command: {:id=>49, :method=>"session.subscribe", :params=>{:events=>["browsingContext.navigationFailed"]}} (0.1ms)
17803
+ [bidi2pdf_rails] Sending command: browsingContext.navigate id: #50
17804
+ [bidi2pdf_rails] Sending command: {:id=>50, :method=>"browsingContext.navigate", :params=>{:url=>"https://httpstat.us/401", :context=>"A489EA6FDF5C514E6315280BD9621C41", :wait=>"complete"}} (0.1ms)
17805
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"9050207746157721847.7005133194137210470"}
17806
+ [bidi2pdf_rails] [network] ┌─ Network Event ──────────────────────────────────────
17807
+ [bidi2pdf_rails] [network] │ Request: GET https://httpstat.us/401
17808
+ [bidi2pdf_rails] [network] │ State: completed
17809
+ [bidi2pdf_rails] [network] │ Status: HTTP 401
17810
+ [bidi2pdf_rails] [network] │ Started: 2025-04-22 07:09:33.782 UTC
17811
+ [bidi2pdf_rails] [network] │ Ended: 2025-04-22 07:09:33.782 UTC
17812
+ [bidi2pdf_rails] [network] │ Duration: 0.0s
17813
+ [bidi2pdf_rails] [network] │ Received: 571.00 B
17814
+ [bidi2pdf_rails] [network] │
17815
+ [bidi2pdf_rails] [network] │ Timing Phases:
17816
+ [bidi2pdf_rails] [network] │ Request time : 0 ms
17817
+ [bidi2pdf_rails] [network] │ Dns start : 0 ms
17818
+ [bidi2pdf_rails] [network] │ Dns end : 7.96 ms
17819
+ [bidi2pdf_rails] [network] │ Connect start : 8.02 ms
17820
+ [bidi2pdf_rails] [network] │ Connect end : 410.86 ms
17821
+ [bidi2pdf_rails] [network] └──────────────────────────────────────────────────────
17822
+ [bidi2pdf] Navigation failed for URL: https://httpstat.us/401, Navigation: c724cd9f-8d20-4d8f-9418-c8c6ae9814dd
17823
+ [bidi2pdf_rails] Received error: "unknown error" for cmd: 50
17824
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"A489EA6FDF5C514E6315280BD9621C41", "origin"=>"null", "realm"=>"937482626571364030.6939155221631295564", "type"=>"window"}
17825
+ [bidi2pdf_rails] Error sending command: {:url=>"https://httpstat.us/401", :context=>"A489EA6FDF5C514E6315280BD9621C41", :wait=>"complete"} (640.3ms) - ["Bidi2pdf::CmdError", "Error response: unknown error #<Bidi2pdf::Bidi::Commands::BrowsingContextNavigate:17220 {:method_name=>\"browsingContext.navigate\", :params=>{:url=>\"https://httpstat.us/401\", :context=>\"A489EA6FDF5C514E6315280BD9621C41\", :wait=>\"complete\"}}>"]
17826
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #51
17827
+ [bidi2pdf_rails] Sending command: {:id=>51, :method=>"browsingContext.close", :params=>{:context=>"A489EA6FDF5C514E6315280BD9621C41"}} (0.1ms)
17828
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"937482626571364030.6939155221631295564"}
17829
+ [bidi2pdf] Browsing context closed: A489EA6FDF5C514E6315280BD9621C41 {"id"=>51, "result"=>{}, "type"=>"success"}
17830
+ [bidi2pdf] Closed tab: A489EA6FDF5C514E6315280BD9621C41
17831
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #52
17832
+ [bidi2pdf_rails] Sending command: {:id=>52, :method=>"browsingContext.close", :params=>{:context=>"8048B77EE43A4F6D7D98EFC72110C129"}} (0.1ms)
17833
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"1408442565514678177.2061217096640622491"}
17834
+ [bidi2pdf] Browsing context closed: 8048B77EE43A4F6D7D98EFC72110C129 {"id"=>52, "result"=>{}, "type"=>"success"}
17835
+ [bidi2pdf_rails] Sending command: browser.removeUserContext id: #53
17836
+ [bidi2pdf_rails] Sending command: {:id=>53, :method=>"browser.removeUserContext", :params=>{:userContext=>"6892D378335AEFF77A8E4F8E8D0432CA"}} (0.1ms)
17837
+ [bidi2pdf] User context deleted: {}
17838
+ [bidi2pdf_rails] Page rendered and printed: 987.3ms
17839
+ Completed 500 Internal Server Error in 998ms (GC: 10.5ms)
17840
+
17841
+
17842
+
17843
+ Bidi2pdf::NavigationAuthError (Navigation to https://httpstat.us/401 failed due to authentication error. net::ERR_INVALID_AUTH_CREDENTIALS):
17844
+
17845
+ Causes:
17846
+ Bidi2pdf::CmdError (Error response: unknown error #<Bidi2pdf::Bidi::Commands::BrowsingContextNavigate:17220 {:method_name=>"browsingContext.navigate", :params=>{:url=>"https://httpstat.us/401", :context=>"A489EA6FDF5C514E6315280BD9621C41", :wait=>"complete"}}>)
17847
+
17848
+ /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/browser_tab.rb:419:in `rescue in navigate_with_listeners'
17849
+ /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/browser_tab.rb:407:in `navigate_with_listeners'
17850
+ /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/browser_tab.rb:183:in `block in navigate_to'
17851
+ activesupport (7.2.2.1) lib/active_support/notifications.rb:210:in `block in instrument'
17852
+ activesupport (7.2.2.1) lib/active_support/notifications/instrumenter.rb:58:in `instrument'
17853
+ activesupport (7.2.2.1) lib/active_support/notifications.rb:210:in `instrument'
17854
+ /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/browser_tab.rb:182:in `navigate_to'
17855
+ /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/services/url_to_pdf_converter.rb:30:in `prepare_tab'
17856
+ /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/services/pdf_browser_session.rb:16:in `block (2 levels) in run_browser_session'
17857
+ activesupport (7.2.2.1) lib/active_support/execution_wrapper.rb:91:in `wrap'
17858
+ /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/services/pdf_browser_session.rb:9:in `block in run_browser_session'
17859
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 09:09:34 +0200
17860
+
17861
+ ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
17862
+
17863
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 09:09:48 +0200
17864
+
17865
+ ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
17866
+
17867
+ Started GET "/convert-remote-url-error/403" for 127.0.0.1 at 2025-04-22 09:09:53 +0200
17868
+ Processing by ReportsController#convert_remote_url_error as HTML
17869
+ Parameters: {"code"=>"403"}
17870
+ [bidi2pdf_rails] Sending command: browser.createUserContext id: #54
17871
+ [bidi2pdf_rails] Sending command: {:id=>54, :method=>"browser.createUserContext", :params=>{}} (0.1ms)
17872
+ [bidi2pdf] User context created: "72C5F526C0D3EA91B7A536BB9B74D459"
17873
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #55
17874
+ [bidi2pdf_rails] Sending command: {:id=>55, :method=>"browsingContext.create", :params=>{:type=>"window", :userContext=>"72C5F526C0D3EA91B7A536BB9B74D459", :background=>false}} (0.1ms)
17875
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"7E4FCF20874CFA8B5D058BD116AD74D0", "origin"=>"null", "realm"=>"4033812769101696359.6121437792274427405", "type"=>"window"}
17876
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #56
17877
+ [bidi2pdf_rails] Sending command: {:id=>56, :method=>"browsingContext.create", :params=>{:type=>"tab", :userContext=>"72C5F526C0D3EA91B7A536BB9B74D459", :background=>false}} (0.2ms)
17878
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"09324182EE5B4385E5F7D2E559D40A03", "origin"=>"null", "realm"=>"-5482277871712665009.-9144137266190777324", "type"=>"window"}
17879
+ [bidi2pdf] [D1] Created new browser tab: #<Bidi2pdf::Bidi::BrowserTab:0x0000000122343488 @client=#<Bidi2pdf::Bidi::Client:0x0000000121c6dd98 @ws_url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @started=true, @connection_manager=#<Bidi2pdf::Bidi::ConnectionManager:0x0000000121c6dc58 @logger=#<ActiveSupport::Logger:0x00000001223c1090 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000000120dd1208 @datetime_format=nil>, @formatter=#<ActiveSupport::Logger::SimpleFormatter:0x0000000122441a38 @datetime_format=nil, @thread_key="activesupport_tagged_logging_tags:7940", @tag_stack=#<ActiveSupport::TaggedLogging::TagStack:0x0000000122441920 @tags=["bidi2pdf"], @tags_string=nil>>, @logdev=#<Logger::LogDevice:0x0000000120fdf1f8 @shift_period_suffix="%Y%m%d", @shift_size=104857600, @shift_age=1, @filename="/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log", @dev=#<File:/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log>, @binmode=false, @reraise_write_errors=[], @skip_header=false, @mon_data=#<Monitor:0x0000000120dd0c18>, @mon_data_owner_object_id=5740>, @level_override={}, @local_level_key=:logger_thread_safe_level_8600>, @connected=true, @connection_queue=#<Thread::Queue:0x0000000121c6db68>>, @socket=#<WebSocket::Client::Simple::Client:0x0000000121c6d9b0 @__events=[{:type=>:open, :listener=>#<Proc:0x0000000121c6c6f0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x0000000121c6c6a0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x0000000121c6c650 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x0000000121c6c560 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000121d24750 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57639>, @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @key="cIY6lq0kL0txX8ArW7zHWA==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x0000000121d246d8 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @command_manager=#<Bidi2pdf::Bidi::CommandManager:0x0000000121c6d8e8 @socket=#<WebSocket::Client::Simple::Client:0x0000000121c6d9b0 @__events=[{:type=>:open, :listener=>#<Proc:0x0000000121c6c6f0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x0000000121c6c6a0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x0000000121c6c650 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x0000000121c6c560 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000121d24750 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57639>, @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @key="cIY6lq0kL0txX8ArW7zHWA==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x0000000121d246d8 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @pending_responses={}, @initiated_cmds={}>, @dispatcher=#<Bidi2pdf::Bidi::WebSocketDispatcher:0x0000000121c6d668 @socket=#<WebSocket::Client::Simple::Client:0x0000000121c6d9b0 @__events=[{:type=>:open, :listener=>#<Proc:0x0000000121c6c6f0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x0000000121c6c6a0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x0000000121c6c650 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x0000000121c6c560 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000121d24750 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57639>, @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @key="cIY6lq0kL0txX8ArW7zHWA==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x0000000121d246d8 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @socket_events=#<Bidi2pdf::Bidi::EventManager:0x0000000121c6d578 @listeners={:open=>[#<Proc:0x0000000121c6cc90 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:55>], :message=>[#<Proc:0x0000000121c6cbc8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:56>], :close=>[#<Proc:0x0000000121d238f0 /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/chromedriver_manager_singleton.rb:36>]}, @type="socket-event">, @session_events=#<Bidi2pdf::Bidi::EventManager:0x0000000121c6ce98 @listeners={:"network.beforeRequestSent"=>[#<Proc:0x0000000122541280 (lambda)>, #<Proc:0x0000000122a83608 (lambda)>, #<Proc:0x000000012258eb70 (lambda)>, #<Proc:0x0000000122b0a108 (lambda)>, #<Proc:0x000000012268ac90 (lambda)>], :"network.responseStarted"=>[#<Proc:0x0000000122541280 (lambda)>, #<Proc:0x0000000122a83608 (lambda)>, #<Proc:0x000000012258eb70 (lambda)>, #<Proc:0x0000000122b0a108 (lambda)>, #<Proc:0x000000012268ac90 (lambda)>], :"network.responseCompleted"=>[#<Proc:0x0000000122541280 (lambda)>, #<Proc:0x0000000122a83608 (lambda)>, #<Proc:0x000000012258eb70 (lambda)>, #<Proc:0x0000000122b0a108 (lambda)>, #<Proc:0x000000012268ac90 (lambda)>], :"network.fetchError"=>[#<Proc:0x0000000122541280 (lambda)>, #<Proc:0x0000000122a83608 (lambda)>, #<Proc:0x000000012258eb70 (lambda)>, #<Proc:0x0000000122b0a108 (lambda)>, #<Proc:0x000000012268ac90 (lambda)>], :"log.entryAdded"=>[#<Proc:0x000000012256e780 (lambda)>, #<Proc:0x0000000122a80cc8 (lambda)>, #<Proc:0x000000012258c230 (lambda)>, #<Proc:0x0000000122b077c8 (lambda)>, #<Proc:0x0000000122688300 (lambda)>], :"browsingContext.navigationFailed"=>[#<Proc:0x000000012256be90 (lambda)>, #<Proc:0x0000000122a4e480 (lambda)>, #<Proc:0x0000000122589a08 (lambda)>, #<Proc:0x0000000122b04fa0 (lambda)>, #<Proc:0x0000000122685ad8 (lambda)>], :network=>[], :browsingContext=>[]}, @type="session-event">>>, @browsing_context_id="09324182EE5B4385E5F7D2E559D40A03", @user_context_id="72C5F526C0D3EA91B7A536BB9B74D459", @tabs=[], @network_events=#<Bidi2pdf::Bidi::NetworkEvents:0x0000000122b276e0 @context_id="09324182EE5B4385E5F7D2E559D40A03", @events={}, @network_event_formatter=#<Bidi2pdf::Bidi::NetworkEventFormatters::NetworkEventConsoleFormatter:0x0000000122b276b8 @color_enabled=true, @logger=#<Logger:0x00000001223c0f00 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x00000001224415d8 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @logger_events=#<Bidi2pdf::Bidi::LoggerEvents:0x0000000122b27690 @context_id="09324182EE5B4385E5F7D2E559D40A03", @browser_console_logger=#<Bidi2pdf::Bidi::BrowserConsoleLogger:0x0000000122b27668 @logger=#<Logger:0x00000001223c0e60 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000000122441538 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @navigation_failed_events=#<Bidi2pdf::Bidi::NavigationFailedEvents:0x0000000122b27640 @context_id="09324182EE5B4385E5F7D2E559D40A03">, @open=true>
17880
+ [bidi2pdf_rails] Sending command: session.subscribe id: #57
17881
+ [bidi2pdf_rails] Sending command: {:id=>57, :method=>"session.subscribe", :params=>{:events=>["network.beforeRequestSent", "network.responseStarted", "network.responseCompleted", "network.fetchError"]}} (0.1ms)
17882
+ [bidi2pdf_rails] Sending command: session.subscribe id: #58
17883
+ [bidi2pdf_rails] Sending command: {:id=>58, :method=>"session.subscribe", :params=>{:events=>["log.entryAdded"]}} (0.6ms)
17884
+ [bidi2pdf_rails] Sending command: session.subscribe id: #59
17885
+ [bidi2pdf_rails] Sending command: {:id=>59, :method=>"session.subscribe", :params=>{:events=>["browsingContext.navigationFailed"]}} (0.2ms)
17886
+ [bidi2pdf_rails] Sending command: browsingContext.navigate id: #60
17887
+ [bidi2pdf_rails] Sending command: {:id=>60, :method=>"browsingContext.navigate", :params=>{:url=>"https://httpstat.us/403", :context=>"09324182EE5B4385E5F7D2E559D40A03", :wait=>"complete"}} (0.1ms)
17888
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"-5482277871712665009.-9144137266190777324"}
17889
+ [bidi2pdf_rails] [network] ┌─ Network Event ──────────────────────────────────────
17890
+ [bidi2pdf_rails] [network] │ Request: GET https://httpstat.us/403
17891
+ [bidi2pdf_rails] [network] │ State: completed
17892
+ [bidi2pdf_rails] [network] │ Status: HTTP 403
17893
+ [bidi2pdf_rails] [network] │ Started: 2025-04-22 07:09:53.384 UTC
17894
+ [bidi2pdf_rails] [network] │ Ended: 2025-04-22 07:09:53.384 UTC
17895
+ [bidi2pdf_rails] [network] │ Duration: 0.0s
17896
+ [bidi2pdf_rails] [network] │ Received: 524.00 B
17897
+ [bidi2pdf_rails] [network] │
17898
+ [bidi2pdf_rails] [network] │ Timing Phases:
17899
+ [bidi2pdf_rails] [network] │ Request time : 0 ms
17900
+ [bidi2pdf_rails] [network] │ Dns start : 0 ms
17901
+ [bidi2pdf_rails] [network] │ Dns end : 8.5 ms
17902
+ [bidi2pdf_rails] [network] │ Connect start : 8.57 ms
17903
+ [bidi2pdf_rails] [network] │ Connect end : 414.33 ms
17904
+ [bidi2pdf_rails] [network] └──────────────────────────────────────────────────────
17905
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"09324182EE5B4385E5F7D2E559D40A03", "origin"=>"https://httpstat.us", "realm"=>"2057882380022816601.1617181802084653743", "type"=>"window"}
17906
+ [bidi2pdf] Navigated to page url: https://httpstat.us/403 response: {"id"=>60, "result"=>{"navigation"=>"7f345bef-9fd9-4a35-9c55-cda9bb671324", "url"=>"https://httpstat.us/403"}, "type"=>"success"}
17907
+ [bidi2pdf] ✅ All network events completed.
17908
+ [bidi2pdf_rails] Network was idle after 0.0ms, 1 requests, transferred 524 bytes (status codes: 403: 1)
17909
+ [bidi2pdf_rails] Sending command: browsingContext.print id: #61
17910
+ [bidi2pdf_rails] Sending command: {:id=>61, :method=>"browsingContext.print", :params=>{:background=>true, :orientation=>"portrait", :scale=>1.0, :shrinkToFit=>false, :margin=>{:top=>2.5, :bottom=>2, :left=>2, :right=>2}, :page=>{:width=>21.0, :height=>29.7}, :context=>"09324182EE5B4385E5F7D2E559D40A03"}} (0.1ms)
17911
+ [bidi2pdf] PDF generated successfully.
17912
+ [bidi2pdf_rails] Page printed: 151.9ms
17913
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #62
17914
+ [bidi2pdf_rails] Sending command: {:id=>62, :method=>"browsingContext.close", :params=>{:context=>"09324182EE5B4385E5F7D2E559D40A03"}} (0.1ms)
17915
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"2057882380022816601.1617181802084653743"}
17916
+ [bidi2pdf] Browsing context closed: 09324182EE5B4385E5F7D2E559D40A03 {"id"=>62, "result"=>{}, "type"=>"success"}
17917
+ [bidi2pdf] Closed tab: 09324182EE5B4385E5F7D2E559D40A03
17918
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #63
17919
+ [bidi2pdf_rails] Sending command: {:id=>63, :method=>"browsingContext.close", :params=>{:context=>"7E4FCF20874CFA8B5D058BD116AD74D0"}} (0.1ms)
17920
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"4033812769101696359.6121437792274427405"}
17921
+ [bidi2pdf] Browsing context closed: 7E4FCF20874CFA8B5D058BD116AD74D0 {"id"=>63, "result"=>{}, "type"=>"success"}
17922
+ [bidi2pdf_rails] Sending command: browser.removeUserContext id: #64
17923
+ [bidi2pdf_rails] Sending command: {:id=>64, :method=>"browser.removeUserContext", :params=>{:userContext=>"72C5F526C0D3EA91B7A536BB9B74D459"}} (0.1ms)
17924
+ [bidi2pdf] User context deleted: {}
17925
+ [bidi2pdf_rails] Page rendered and printed: 5807.8ms
17926
+ Rendering text template
17927
+ Rendered text template (Duration: 0.1ms | GC: 0.0ms)
17928
+ Sent data convert-remote-url-cookie.pdf (0.8ms)
17929
+ Completed 200 OK in 5819ms (Views: 5809.1ms | GC: 9.7ms)
17930
+
17931
+
17932
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 09:09:58 +0200
17933
+
17934
+ ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
17935
+
17936
+ Started GET "/convert-remote-url-error/500" for 127.0.0.1 at 2025-04-22 09:10:07 +0200
17937
+ Processing by ReportsController#convert_remote_url_error as HTML
17938
+ Parameters: {"code"=>"500"}
17939
+ [bidi2pdf_rails] Sending command: browser.createUserContext id: #65
17940
+ [bidi2pdf_rails] Sending command: {:id=>65, :method=>"browser.createUserContext", :params=>{}} (0.1ms)
17941
+ [bidi2pdf] User context created: "67C46BC67CDE288FD0D32075AF503385"
17942
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #66
17943
+ [bidi2pdf_rails] Sending command: {:id=>66, :method=>"browsingContext.create", :params=>{:type=>"window", :userContext=>"67C46BC67CDE288FD0D32075AF503385", :background=>false}} (0.1ms)
17944
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"3C07080784D8E172033EC9DC46CB032A", "origin"=>"null", "realm"=>"-3620191471115024260.-3559783308822269018", "type"=>"window"}
17945
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #67
17946
+ [bidi2pdf_rails] Sending command: {:id=>67, :method=>"browsingContext.create", :params=>{:type=>"tab", :userContext=>"67C46BC67CDE288FD0D32075AF503385", :background=>false}} (0.2ms)
17947
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"04383027146BBE69365530D80510365E", "origin"=>"null", "realm"=>"-6710775238772236040.2312428435457915818", "type"=>"window"}
17948
+ [bidi2pdf] [D1] Created new browser tab: #<Bidi2pdf::Bidi::BrowserTab:0x00000001221ada38 @client=#<Bidi2pdf::Bidi::Client:0x0000000121c6dd98 @ws_url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @started=true, @connection_manager=#<Bidi2pdf::Bidi::ConnectionManager:0x0000000121c6dc58 @logger=#<ActiveSupport::Logger:0x00000001223c1090 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000000120dd1208 @datetime_format=nil>, @formatter=#<ActiveSupport::Logger::SimpleFormatter:0x0000000122441a38 @datetime_format=nil, @thread_key="activesupport_tagged_logging_tags:7940", @tag_stack=#<ActiveSupport::TaggedLogging::TagStack:0x0000000122441920 @tags=["bidi2pdf"], @tags_string=nil>>, @logdev=#<Logger::LogDevice:0x0000000120fdf1f8 @shift_period_suffix="%Y%m%d", @shift_size=104857600, @shift_age=1, @filename="/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log", @dev=#<File:/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log>, @binmode=false, @reraise_write_errors=[], @skip_header=false, @mon_data=#<Monitor:0x0000000120dd0c18>, @mon_data_owner_object_id=5740>, @level_override={}, @local_level_key=:logger_thread_safe_level_8600>, @connected=true, @connection_queue=#<Thread::Queue:0x0000000121c6db68>>, @socket=#<WebSocket::Client::Simple::Client:0x0000000121c6d9b0 @__events=[{:type=>:open, :listener=>#<Proc:0x0000000121c6c6f0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x0000000121c6c6a0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x0000000121c6c650 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x0000000121c6c560 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000121d24750 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57639>, @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @key="cIY6lq0kL0txX8ArW7zHWA==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x0000000121d246d8 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @command_manager=#<Bidi2pdf::Bidi::CommandManager:0x0000000121c6d8e8 @socket=#<WebSocket::Client::Simple::Client:0x0000000121c6d9b0 @__events=[{:type=>:open, :listener=>#<Proc:0x0000000121c6c6f0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x0000000121c6c6a0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x0000000121c6c650 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x0000000121c6c560 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000121d24750 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57639>, @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @key="cIY6lq0kL0txX8ArW7zHWA==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x0000000121d246d8 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @pending_responses={}, @initiated_cmds={}>, @dispatcher=#<Bidi2pdf::Bidi::WebSocketDispatcher:0x0000000121c6d668 @socket=#<WebSocket::Client::Simple::Client:0x0000000121c6d9b0 @__events=[{:type=>:open, :listener=>#<Proc:0x0000000121c6c6f0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x0000000121c6c6a0 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x0000000121c6c650 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x0000000121c6c560 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x0000000121d24750 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57639>, @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 @handshake=<WebSocket::Handshake::Client:0x000029a4 @url="ws://localhost:57627/session/fd19dec5147c4f41d3ec0f94a662433f", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"67+ltF00EWzC8bSZ7Ddoi7eOhWo="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x0000000121be6410 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @key="cIY6lq0kL0txX8ArW7zHWA==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: 67+ltF00EWzC8bSZ7Ddoi7eOhWo=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57627, @path="/session/fd19dec5147c4f41d3ec0f94a662433f", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x0000000121d246d8 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @socket_events=#<Bidi2pdf::Bidi::EventManager:0x0000000121c6d578 @listeners={:open=>[#<Proc:0x0000000121c6cc90 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:55>], :message=>[#<Proc:0x0000000121c6cbc8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:56>], :close=>[#<Proc:0x0000000121d238f0 /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/chromedriver_manager_singleton.rb:36>]}, @type="socket-event">, @session_events=#<Bidi2pdf::Bidi::EventManager:0x0000000121c6ce98 @listeners={:"network.beforeRequestSent"=>[#<Proc:0x0000000122541280 (lambda)>, #<Proc:0x0000000122a83608 (lambda)>, #<Proc:0x000000012258eb70 (lambda)>, #<Proc:0x0000000122b0a108 (lambda)>, #<Proc:0x000000012268ac90 (lambda)>, #<Proc:0x0000000122b22ac8 (lambda)>], :"network.responseStarted"=>[#<Proc:0x0000000122541280 (lambda)>, #<Proc:0x0000000122a83608 (lambda)>, #<Proc:0x000000012258eb70 (lambda)>, #<Proc:0x0000000122b0a108 (lambda)>, #<Proc:0x000000012268ac90 (lambda)>, #<Proc:0x0000000122b22ac8 (lambda)>], :"network.responseCompleted"=>[#<Proc:0x0000000122541280 (lambda)>, #<Proc:0x0000000122a83608 (lambda)>, #<Proc:0x000000012258eb70 (lambda)>, #<Proc:0x0000000122b0a108 (lambda)>, #<Proc:0x000000012268ac90 (lambda)>, #<Proc:0x0000000122b22ac8 (lambda)>], :"network.fetchError"=>[#<Proc:0x0000000122541280 (lambda)>, #<Proc:0x0000000122a83608 (lambda)>, #<Proc:0x000000012258eb70 (lambda)>, #<Proc:0x0000000122b0a108 (lambda)>, #<Proc:0x000000012268ac90 (lambda)>, #<Proc:0x0000000122b22ac8 (lambda)>], :"log.entryAdded"=>[#<Proc:0x000000012256e780 (lambda)>, #<Proc:0x0000000122a80cc8 (lambda)>, #<Proc:0x000000012258c230 (lambda)>, #<Proc:0x0000000122b077c8 (lambda)>, #<Proc:0x0000000122688300 (lambda)>, #<Proc:0x0000000122b20110 (lambda)>], :"browsingContext.navigationFailed"=>[#<Proc:0x000000012256be90 (lambda)>, #<Proc:0x0000000122a4e480 (lambda)>, #<Proc:0x0000000122589a08 (lambda)>, #<Proc:0x0000000122b04fa0 (lambda)>, #<Proc:0x0000000122685ad8 (lambda)>, #<Proc:0x0000000122b0d740 (lambda)>], :network=>[], :browsingContext=>[]}, @type="session-event">>>, @browsing_context_id="04383027146BBE69365530D80510365E", @user_context_id="67C46BC67CDE288FD0D32075AF503385", @tabs=[], @network_events=#<Bidi2pdf::Bidi::NetworkEvents:0x00000001226e6d10 @context_id="04383027146BBE69365530D80510365E", @events={}, @network_event_formatter=#<Bidi2pdf::Bidi::NetworkEventFormatters::NetworkEventConsoleFormatter:0x00000001226e6ce8 @color_enabled=true, @logger=#<Logger:0x00000001223c0f00 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x00000001224415d8 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @logger_events=#<Bidi2pdf::Bidi::LoggerEvents:0x00000001226e6cc0 @context_id="04383027146BBE69365530D80510365E", @browser_console_logger=#<Bidi2pdf::Bidi::BrowserConsoleLogger:0x00000001226e6c98 @logger=#<Logger:0x00000001223c0e60 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000000122441538 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @navigation_failed_events=#<Bidi2pdf::Bidi::NavigationFailedEvents:0x00000001226e6c70 @context_id="04383027146BBE69365530D80510365E">, @open=true>
17949
+ [bidi2pdf_rails] Sending command: session.subscribe id: #68
17950
+ [bidi2pdf_rails] Sending command: {:id=>68, :method=>"session.subscribe", :params=>{:events=>["network.beforeRequestSent", "network.responseStarted", "network.responseCompleted", "network.fetchError"]}} (0.1ms)
17951
+ [bidi2pdf_rails] Sending command: session.subscribe id: #69
17952
+ [bidi2pdf_rails] Sending command: {:id=>69, :method=>"session.subscribe", :params=>{:events=>["log.entryAdded"]}} (0.1ms)
17953
+ [bidi2pdf_rails] Sending command: session.subscribe id: #70
17954
+ [bidi2pdf_rails] Sending command: {:id=>70, :method=>"session.subscribe", :params=>{:events=>["browsingContext.navigationFailed"]}} (0.1ms)
17955
+ [bidi2pdf_rails] Sending command: browsingContext.navigate id: #71
17956
+ [bidi2pdf_rails] Sending command: {:id=>71, :method=>"browsingContext.navigate", :params=>{:url=>"https://httpstat.us/500", :context=>"04383027146BBE69365530D80510365E", :wait=>"complete"}} (0.1ms)
17957
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"-6710775238772236040.2312428435457915818"}
17958
+ [bidi2pdf_rails] [network] ┌─ Network Event ──────────────────────────────────────
17959
+ [bidi2pdf_rails] [network] │ Request: GET https://httpstat.us/500
17960
+ [bidi2pdf_rails] [network] │ State: completed
17961
+ [bidi2pdf_rails] [network] │ Status: HTTP 500
17962
+ [bidi2pdf_rails] [network] │ Started: 2025-04-22 07:10:07.375 UTC
17963
+ [bidi2pdf_rails] [network] │ Ended: 2025-04-22 07:10:07.375 UTC
17964
+ [bidi2pdf_rails] [network] │ Duration: 0.0s
17965
+ [bidi2pdf_rails] [network] │ Received: 536.00 B
17966
+ [bidi2pdf_rails] [network] │
17967
+ [bidi2pdf_rails] [network] │ Timing Phases:
17968
+ [bidi2pdf_rails] [network] │ Request time : 0 ms
17969
+ [bidi2pdf_rails] [network] │ Dns start : 0 ms
17970
+ [bidi2pdf_rails] [network] │ Dns end : 4.87 ms
17971
+ [bidi2pdf_rails] [network] │ Connect start : 4.95 ms
17972
+ [bidi2pdf_rails] [network] │ Connect end : 431.27 ms
17973
+ [bidi2pdf_rails] [network] └──────────────────────────────────────────────────────
17974
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"04383027146BBE69365530D80510365E", "origin"=>"https://httpstat.us", "realm"=>"6324799076284728598.-5766435258205698486", "type"=>"window"}
17975
+ [bidi2pdf] Navigated to page url: https://httpstat.us/500 response: {"id"=>71, "result"=>{"navigation"=>"1b13ca53-c6bc-4963-8dc5-4b53ad90b800", "url"=>"https://httpstat.us/500"}, "type"=>"success"}
17976
+ [bidi2pdf] ✅ All network events completed.
17977
+ [bidi2pdf_rails] Network was idle after 0.0ms, 1 requests, transferred 536 bytes (status codes: 500: 1)
17978
+ [bidi2pdf_rails] Sending command: browsingContext.print id: #72
17979
+ [bidi2pdf_rails] Sending command: {:id=>72, :method=>"browsingContext.print", :params=>{:background=>true, :orientation=>"portrait", :scale=>1.0, :shrinkToFit=>false, :margin=>{:top=>2.5, :bottom=>2, :left=>2, :right=>2}, :page=>{:width=>21.0, :height=>29.7}, :context=>"04383027146BBE69365530D80510365E"}} (0.1ms)
17980
+ [bidi2pdf] PDF generated successfully.
17981
+ [bidi2pdf_rails] Page printed: 151.8ms
17982
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #73
17983
+ [bidi2pdf_rails] Sending command: {:id=>73, :method=>"browsingContext.close", :params=>{:context=>"04383027146BBE69365530D80510365E"}} (0.1ms)
17984
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"6324799076284728598.-5766435258205698486"}
17985
+ [bidi2pdf] Browsing context closed: 04383027146BBE69365530D80510365E {"id"=>73, "result"=>{}, "type"=>"success"}
17986
+ [bidi2pdf] Closed tab: 04383027146BBE69365530D80510365E
17987
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #74
17988
+ [bidi2pdf_rails] Sending command: {:id=>74, :method=>"browsingContext.close", :params=>{:context=>"3C07080784D8E172033EC9DC46CB032A"}} (0.2ms)
17989
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"-3620191471115024260.-3559783308822269018"}
17990
+ [bidi2pdf] Browsing context closed: 3C07080784D8E172033EC9DC46CB032A {"id"=>74, "result"=>{}, "type"=>"success"}
17991
+ [bidi2pdf_rails] Sending command: browser.removeUserContext id: #75
17992
+ [bidi2pdf_rails] Sending command: {:id=>75, :method=>"browser.removeUserContext", :params=>{:userContext=>"67C46BC67CDE288FD0D32075AF503385"}} (0.1ms)
17993
+ [bidi2pdf] User context deleted: {}
17994
+ [bidi2pdf_rails] Page rendered and printed: 3492.7ms
17995
+ Rendering text template
17996
+ Rendered text template (Duration: 0.2ms | GC: 0.0ms)
17997
+ Sent data convert-remote-url-cookie.pdf (0.6ms)
17998
+ Completed 200 OK in 3504ms (Views: 3493.9ms | GC: 10.8ms)
17999
+
18000
+
18001
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 09:10:10 +0200
18002
+
18003
+ ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
18004
+
18005
+ [bidi2pdf] Closing session
18006
+ [bidi2pdf_rails] Sending command: session.end id: #76
18007
+ [bidi2pdf_rails] Sending command: {:id=>76, :method=>"session.end", :params=>{}} (0.2ms)
18008
+ [bidi2pdf_rails] Error sending command: {} (1004.5ms) - ["Bidi2pdf::CmdTimeoutError", "Timeout waiting for response to command ID 76"]
18009
+ [bidi2pdf_rails] Session close error: #<Bidi2pdf::CmdTimeoutError: Timeout waiting for response to command ID 76>, attempt: 1, retry: true
18010
+ [bidi2pdf-rails] WebSocket session closed
18011
+ [bidi2pdf_rails] Sending command: session.end id: #77
18012
+ [bidi2pdf_rails] Sending command: {:id=>77, :method=>"session.end", :params=>{}} (0.3ms)
18013
+ [bidi2pdf_rails] Error sending command: {} (1005.1ms) - ["Bidi2pdf::CmdTimeoutError", "Timeout waiting for response to command ID 77"]
18014
+ [bidi2pdf_rails] Session close error: #<Bidi2pdf::CmdTimeoutError: Timeout waiting for response to command ID 77>, attempt: 2, retry: false
18015
+ [bidi2pdf] Stopping Chromedriver (PID 16809)
18016
+ [bidi2pdf-rails] Shutting down Bidi2pdf ChromeDriver manager
18017
+ [bidi2pdf] websocket-native available; use enhance performance.
18018
+ [bidi2pdf] websocket-native available; use enhance performance.
18019
+ [bidi2pdf] websocket-native available; use enhance performance.
18020
+ [bidi2pdf] websocket-native available; use enhance performance.
18021
+ [bidi2pdf] websocket-native available; use enhance performance.
18022
+ [bidi2pdf] websocket-native available; use enhance performance.
18023
+ [bidi2pdf] websocket-native available; use enhance performance.
18024
+ [bidi2pdf] websocket-native available; use enhance performance.
18025
+ [bidi2pdf] websocket-native available; use enhance performance.
18026
+ [bidi2pdf-rails] Initializing Bidi2pdf ChromeDriver manager
18027
+ [bidi2pdf] Checking current version
18028
+ [bidi2pdf] /Users/fastjack/.webdrivers/chromedriver is already downloaded
18029
+ [bidi2pdf] making System call: ["/Users/fastjack/.webdrivers/chromedriver", "--version"]
18030
+ [bidi2pdf] System call returned: ChromeDriver 135.0.7049.95 (de2eb485a1951079e63bdb57ce25544d2dc79c15-refs/branch-heads/7049@{#1836})
18031
+
18032
+ [bidi2pdf] Current version of /Users/fastjack/.webdrivers/chromedriver is ChromeDriver 135.0.7049.95 (de2eb485a1951079e63bdb57ce25544d2dc79c15-refs/branch-heads/7049@{#1836})
18033
+
18034
+ [bidi2pdf] making System call: ["/Applications/Google Chrome.app/Contents/MacOS/Google Chrome", "--version"]
18035
+ [bidi2pdf] System call returned: Google Chrome 135.0.7049.96
18036
+
18037
+ [bidi2pdf] Browser version: Google Chrome 135.0.7049.96
18038
+ [bidi2pdf] Checking current version
18039
+ [bidi2pdf] /Users/fastjack/.webdrivers/chromedriver is already downloaded
18040
+ [bidi2pdf] making System call: ["/Users/fastjack/.webdrivers/chromedriver", "--version"]
18041
+ [bidi2pdf] System call returned: ChromeDriver 135.0.7049.95 (de2eb485a1951079e63bdb57ce25544d2dc79c15-refs/branch-heads/7049@{#1836})
18042
+
18043
+ [bidi2pdf] Current version of /Users/fastjack/.webdrivers/chromedriver is ChromeDriver 135.0.7049.95 (de2eb485a1951079e63bdb57ce25544d2dc79c15-refs/branch-heads/7049@{#1836})
18044
+
18045
+ [bidi2pdf] Starting download from: https://googlechromelabs.github.io/chrome-for-testing/latest-patch-versions-per-build.json
18046
+ [bidi2pdf] No proxy is being used.
18047
+ [bidi2pdf] Sending HTTP GET request...
18048
+ [bidi2pdf] making System call: ["/Applications/Google Chrome.app/Contents/MacOS/Google Chrome", "--version"]
18049
+ [bidi2pdf] System call returned: Google Chrome 135.0.7049.96
18050
+
18051
+ [bidi2pdf] Browser version: Google Chrome 135.0.7049.96
18052
+ [bidi2pdf] A working webdriver version is already on the system
18053
+ [bidi2pdf] Starting Chromedriver with command: /Users/fastjack/.webdrivers/chromedriver --user-data-dir /var/folders/pk/6c774xdj36q3l1w84s0c58r40000gp/T/bidi2pdf/user_data/dca20dbd8a10ca90
18054
+ [bidi2pdf] [D1] Starting ChromeDriver 135.0.7049.95 (de2eb485a1951079e63bdb57ce25544d2dc79c15-refs/branch-heads/7049@{#1836}) on port 0
18055
+ [bidi2pdf] [D1] Only local connections are allowed.
18056
+ [bidi2pdf] [D1] Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
18057
+ [bidi2pdf] [D1] ChromeDriver was started successfully on port 57896.
18058
+ [bidi2pdf] Found port: 57896 setup port: 0
18059
+ [bidi2pdf] Started Chromedriver on port 57896, PID 18797
18060
+ [bidi2pdf] Session data: {"value"=>{"capabilities"=>{"acceptInsecureCerts"=>true, "browserName"=>"chrome", "browserVersion"=>"135.0.7049.96", "chrome"=>{"chromedriverVersion"=>"135.0.7049.95 (de2eb485a1951079e63bdb57ce25544d2dc79c15-refs/branch-heads/7049@{#1836})", "userDataDir"=>"/var/folders/pk/6c774xdj36q3l1w84s0c58r40000gp/T/.org.chromium.Chromium.Cv6ctf"}, "fedcm:accounts"=>true, "goog:chromeOptions"=>{"debuggerAddress"=>"localhost:57900"}, "networkConnectionEnabled"=>false, "pageLoadStrategy"=>"normal", "platformName"=>"mac", "proxy"=>{}, "setWindowRect"=>true, "strictFileInteractability"=>false, "timeouts"=>{"implicit"=>0, "pageLoad"=>300000, "script"=>30000}, "unhandledPromptBehavior"=>{"default"=>"ignore"}, "webSocketUrl"=>"ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", "webauthn:extension:credBlob"=>true, "webauthn:extension:largeBlob"=>true, "webauthn:extension:minPinLength"=>true, "webauthn:extension:prf"=>true, "webauthn:virtualAuthenticators"=>true}, "sessionId"=>"0c780bcf77d16fed6543db1fb42dfc9a"}}
18061
+ [bidi2pdf] Created session with ID: 0c780bcf77d16fed6543db1fb42dfc9a
18062
+ [bidi2pdf] WebSocket URL: ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a
18063
+ [bidi2pdf] Registering WebSocket event listeners
18064
+ [bidi2pdf] WebSocket connection is open
18065
+ Started GET "/inject-css-raw" for 127.0.0.1 at 2025-04-22 15:44:38 +0200
18066
+ Processing by ReportsController#inject_css_raw as HTML
18067
+ [bidi2pdf_rails] Page rendered and printed: 7.6ms
18068
+ Completed 500 Internal Server Error in 55ms (GC: 0.0ms)
18069
+
18070
+
18071
+
18072
+ ActionView::MissingTemplate (Missing template /simple with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby]}.
18073
+
18074
+ Searched in:
18075
+ * "/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/app/views"
18076
+ ):
18077
+
18078
+ app/controllers/reports_controller.rb:29:in `inject_css_raw'
18079
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 15:44:38 +0200
18080
+
18081
+ ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
18082
+
18083
+ Started GET "/inject-css-raw" for 127.0.0.1 at 2025-04-22 15:45:01 +0200
18084
+ Processing by ReportsController#inject_css_raw as HTML
18085
+ [bidi2pdf_rails] Page rendered and printed: 0.7ms
18086
+ Completed 500 Internal Server Error in 11ms (GC: 0.0ms)
18087
+
18088
+
18089
+
18090
+ ActionView::MissingTemplate (Missing template /simple with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby]}.
18091
+
18092
+ Searched in:
18093
+ * "/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/app/views"
18094
+ ):
18095
+
18096
+ app/controllers/reports_controller.rb:29:in `inject_css_raw'
18097
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 15:45:02 +0200
18098
+
18099
+ ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
18100
+
18101
+ Started GET "/inject-css-raw" for 127.0.0.1 at 2025-04-22 15:45:22 +0200
18102
+ Processing by ReportsController#inject_css_raw as HTML
18103
+ Rendering layout layouts/simple.html.erb
18104
+ Rendering reports/simple.html.erb within layouts/simple
18105
+ Rendered reports/simple.html.erb within layouts/simple (Duration: 0.2ms | GC: 0.0ms)
18106
+ Rendered layout layouts/simple.html.erb (Duration: 1.8ms | GC: 0.6ms)
18107
+ [bidi2pdf] Subscribing to events
18108
+ [bidi2pdf] Registering WebSocket event listeners
18109
+ [bidi2pdf] Waiting for WebSocket connection to open
18110
+ [bidi2pdf] WebSocket connection is open
18111
+ [bidi2pdf_rails] Sending command: session.subscribe id: #1
18112
+ [bidi2pdf_rails] Sending command: {:id=>1, :method=>"session.subscribe", :params=>{:events=>["script"]}} (0.7ms)
18113
+ [bidi2pdf_rails] Sending command: browser.createUserContext id: #2
18114
+ [bidi2pdf_rails] Sending command: {:id=>2, :method=>"browser.createUserContext", :params=>{}} (0.1ms)
18115
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"7B893A50DAC7A815477DE0A04E0D6054", "origin"=>"null", "realm"=>"-9062775466887574526.2230630056790271602", "type"=>"window"}
18116
+ [bidi2pdf] User context created: "7D52A5426B294145FD634E1D0D8C3D4D"
18117
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #3
18118
+ [bidi2pdf_rails] Sending command: {:id=>3, :method=>"browsingContext.create", :params=>{:type=>"window", :userContext=>"7D52A5426B294145FD634E1D0D8C3D4D", :background=>false}} (0.1ms)
18119
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"838C89BEB7424D09DA6C1AFBE0B49CC9", "origin"=>"null", "realm"=>"5819529662728135418.971945809178343592", "type"=>"window"}
18120
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #4
18121
+ [bidi2pdf_rails] Sending command: {:id=>4, :method=>"browsingContext.create", :params=>{:type=>"tab", :userContext=>"7D52A5426B294145FD634E1D0D8C3D4D", :background=>false}} (0.1ms)
18122
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"84DB5589E727F172DA93CB2684634DAB", "origin"=>"null", "realm"=>"-183102756707505012.-3870934743365857345", "type"=>"window"}
18123
+ [bidi2pdf] [D1] Created new browser tab: #<Bidi2pdf::Bidi::BrowserTab:0x000000012050d7c0 @client=#<Bidi2pdf::Bidi::Client:0x000000011fbc6fe0 @ws_url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @started=true, @connection_manager=#<Bidi2pdf::Bidi::ConnectionManager:0x000000011fbc6f18 @logger=#<ActiveSupport::Logger:0x00000001201ab7d0 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x000000011eda1af0 @datetime_format=nil>, @formatter=#<ActiveSupport::Logger::SimpleFormatter:0x000000011f9e7f08 @datetime_format=nil, @thread_key="activesupport_tagged_logging_tags:7940", @tag_stack=#<ActiveSupport::TaggedLogging::TagStack:0x000000011f9e7df0 @tags=["bidi2pdf"], @tags_string=nil>>, @logdev=#<Logger::LogDevice:0x000000011df73f28 @shift_period_suffix="%Y%m%d", @shift_size=104857600, @shift_age=1, @filename="/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log", @dev=#<File:/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log>, @binmode=false, @reraise_write_errors=[], @skip_header=false, @mon_data=#<Monitor:0x000000011eda18e8>, @mon_data_owner_object_id=5740>, @level_override={}, @local_level_key=:logger_thread_safe_level_8600>, @connected=true, @connection_queue=#<Thread::Queue:0x000000011fbc6ea0>>, @socket=#<WebSocket::Client::Simple::Client:0x000000011fbc6d38 @__events=[{:type=>:open, :listener=>#<Proc:0x000000011fbc6590 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x000000011fbc6568 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x000000011fbc6540 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x000000011fbc64c8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x000000011fd8e198 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57907>, @handshake=<WebSocket::Handshake::Client:0x000039a8 @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"O3ppxOEAp8LVAYKxlyb8KJNgenI="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x000000011fd097e0 @handshake=<WebSocket::Handshake::Client:0x000039a8 @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"O3ppxOEAp8LVAYKxlyb8KJNgenI="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x000000011fd097e0 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: O3ppxOEAp8LVAYKxlyb8KJNgenI=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57896, @path="/session/0c780bcf77d16fed6543db1fb42dfc9a", @query=nil, @version=13, @leftovers="">, @key="fXda49l4GBed62Q124HiUg==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: O3ppxOEAp8LVAYKxlyb8KJNgenI=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57896, @path="/session/0c780bcf77d16fed6543db1fb42dfc9a", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x000000011fd8e148 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @command_manager=#<Bidi2pdf::Bidi::CommandManager:0x000000011fbc6c70 @socket=#<WebSocket::Client::Simple::Client:0x000000011fbc6d38 @__events=[{:type=>:open, :listener=>#<Proc:0x000000011fbc6590 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x000000011fbc6568 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x000000011fbc6540 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x000000011fbc64c8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x000000011fd8e198 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57907>, @handshake=<WebSocket::Handshake::Client:0x000039a8 @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"O3ppxOEAp8LVAYKxlyb8KJNgenI="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x000000011fd097e0 @handshake=<WebSocket::Handshake::Client:0x000039a8 @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"O3ppxOEAp8LVAYKxlyb8KJNgenI="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x000000011fd097e0 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: O3ppxOEAp8LVAYKxlyb8KJNgenI=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57896, @path="/session/0c780bcf77d16fed6543db1fb42dfc9a", @query=nil, @version=13, @leftovers="">, @key="fXda49l4GBed62Q124HiUg==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: O3ppxOEAp8LVAYKxlyb8KJNgenI=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57896, @path="/session/0c780bcf77d16fed6543db1fb42dfc9a", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x000000011fd8e148 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @pending_responses={}, @initiated_cmds={}>, @dispatcher=#<Bidi2pdf::Bidi::WebSocketDispatcher:0x000000011fbc6ba8 @socket=#<WebSocket::Client::Simple::Client:0x000000011fbc6d38 @__events=[{:type=>:open, :listener=>#<Proc:0x000000011fbc6590 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x000000011fbc6568 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x000000011fbc6540 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x000000011fbc64c8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x000000011fd8e198 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57907>, @handshake=<WebSocket::Handshake::Client:0x000039a8 @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"O3ppxOEAp8LVAYKxlyb8KJNgenI="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x000000011fd097e0 @handshake=<WebSocket::Handshake::Client:0x000039a8 @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"O3ppxOEAp8LVAYKxlyb8KJNgenI="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x000000011fd097e0 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: O3ppxOEAp8LVAYKxlyb8KJNgenI=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57896, @path="/session/0c780bcf77d16fed6543db1fb42dfc9a", @query=nil, @version=13, @leftovers="">, @key="fXda49l4GBed62Q124HiUg==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: O3ppxOEAp8LVAYKxlyb8KJNgenI=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57896, @path="/session/0c780bcf77d16fed6543db1fb42dfc9a", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x000000011fd8e148 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @socket_events=#<Bidi2pdf::Bidi::EventManager:0x000000011fbc6b08 @listeners={:open=>[#<Proc:0x000000011fbc6888 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:55>], :message=>[#<Proc:0x000000011fbc67e8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:56>], :close=>[#<Proc:0x000000011fd8d4a0 /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/chromedriver_manager_singleton.rb:36>]}, @type="socket-event">, @session_events=#<Bidi2pdf::Bidi::EventManager:0x000000011fbc6a18 @listeners={}, @type="session-event">>>, @browsing_context_id="84DB5589E727F172DA93CB2684634DAB", @user_context_id="7D52A5426B294145FD634E1D0D8C3D4D", @tabs=[], @network_events=#<Bidi2pdf::Bidi::NetworkEvents:0x000000011f54a888 @context_id="84DB5589E727F172DA93CB2684634DAB", @events={}, @network_event_formatter=#<Bidi2pdf::Bidi::NetworkEventFormatters::NetworkEventConsoleFormatter:0x000000011f54a860 @color_enabled=true, @logger=#<Logger:0x00000001201ab640 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x000000011f9e7aa8 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @logger_events=#<Bidi2pdf::Bidi::LoggerEvents:0x000000011f54a838 @context_id="84DB5589E727F172DA93CB2684634DAB", @browser_console_logger=#<Bidi2pdf::Bidi::BrowserConsoleLogger:0x000000011f54a810 @logger=#<Logger:0x00000001201ab5a0 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x000000011f9e7a08 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @navigation_failed_events=#<Bidi2pdf::Bidi::NavigationFailedEvents:0x000000011f54a7e8 @context_id="84DB5589E727F172DA93CB2684634DAB">, @open=true>
18124
+ [bidi2pdf_rails] Sending command: session.subscribe id: #5
18125
+ [bidi2pdf_rails] Sending command: {:id=>5, :method=>"session.subscribe", :params=>{:events=>["network.beforeRequestSent", "network.responseStarted", "network.responseCompleted", "network.fetchError"]}} (0.1ms)
18126
+ [bidi2pdf_rails] Sending command: session.subscribe id: #6
18127
+ [bidi2pdf_rails] Sending command: {:id=>6, :method=>"session.subscribe", :params=>{:events=>["log.entryAdded"]}} (0.1ms)
18128
+ [bidi2pdf_rails] Sending command: session.subscribe id: #7
18129
+ [bidi2pdf_rails] Sending command: {:id=>7, :method=>"session.subscribe", :params=>{:events=>["browsingContext.navigationFailed"]}} (0.1ms)
18130
+ [bidi2pdf_rails] Sending command: browsingContext.navigate id: #8
18131
+ [bidi2pdf_rails] Sending command: {:id=>8, :method=>"browsingContext.navigate", :params=>{:url=>"data:text/html;charset=utf-8;base64,PCEtLSBCRUdJTiBhcHAvdmlld3MvbGF5b3V0cy9zaW1wbGUuaHRtbC5lcmIgLS0+PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KICA8dGl0bGU+RHVtbXk8L3RpdGxlPgogIAogIDxtZXRhIG5hbWU9InZpZXdwb3J0IiBjb250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsaW5pdGlhbC1zY2FsZT0xIj4KICA8bWV0YSBuYW1lPSJhcHBsZS1tb2JpbGUtd2ViLWFwcC1jYXBhYmxlIiBjb250ZW50PSJ5ZXMiPgogIDxtZXRhIG5hbWU9ImNzcmYtcGFyYW0iIGNvbnRlbnQ9ImF1dGhlbnRpY2l0eV90b2tlbiIgLz4KPG1ldGEgbmFtZT0iY3NyZi10b2tlbiIgY29udGVudD0id0RNRXJsTkxXRnZYTVFIN1FpSTVZb0VhR21aUGZmNFFBMUNiTS1XeUFTaXhtd2YtY1JSQ0pGTzRqSHVLWFBtWGZ1bDFPLWpYcVQyUUxtREdpRWx0aVEiIC8+CiAgCgogIAo8L2hlYWQ+Cgo8Ym9keT4KPCEtLSBCRUdJTiBhcHAvdmlld3MvcmVwb3J0cy9zaW1wbGUuaHRtbC5lcmIgLS0+PHA+MTwvcD4KPHA+MjwvcD4KPHA+MzwvcD4KPHA+NDwvcD4KPHA+NTwvcD4KPHA+NjwvcD48IS0tIEVORCBhcHAvdmlld3MvcmVwb3J0cy9zaW1wbGUuaHRtbC5lcmIgLS0+CjwvYm9keT4KPC9odG1sPgo8IS0tIEVORCBhcHAvdmlld3MvbGF5b3V0cy9zaW1wbGUuaHRtbC5lcmIgLS0+", :context=>"84DB5589E727F172DA93CB2684634DAB", :wait=>"complete"}} (0.2ms)
18132
+ [bidi2pdf_rails] [network] ┌─ Network Event ──────────────────────────────────────
18133
+ [bidi2pdf_rails] [network] │ Request: GET data:text/html,...
18134
+ [bidi2pdf_rails] [network] │ State: completed
18135
+ [bidi2pdf_rails] [network] │ Status: HTTP 200
18136
+ [bidi2pdf_rails] [network] │ Started: 2025-04-22 13:45:23.232 UTC
18137
+ [bidi2pdf_rails] [network] │ Ended: 2025-04-22 13:45:23.232 UTC
18138
+ [bidi2pdf_rails] [network] │ Duration: 0.0s
18139
+ [bidi2pdf_rails] [network] │ Received: -1.00 B
18140
+ [bidi2pdf_rails] [network] │
18141
+ [bidi2pdf_rails] [network] │ Timing Phases:
18142
+ [bidi2pdf_rails] [network] │ Request time : 0 ms
18143
+ [bidi2pdf_rails] [network] │ Dns start : 0 ms
18144
+ [bidi2pdf_rails] [network] │ Dns end : 0 ms
18145
+ [bidi2pdf_rails] [network] │ Connect start : 0 ms
18146
+ [bidi2pdf_rails] [network] │ Connect end : 0 ms
18147
+ [bidi2pdf_rails] [network] └──────────────────────────────────────────────────────
18148
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"-183102756707505012.-3870934743365857345"}
18149
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"84DB5589E727F172DA93CB2684634DAB", "origin"=>"null", "realm"=>"-7923663873092391784.5790784421007275098", "type"=>"window"}
18150
+ [bidi2pdf] Navigated to page url: data:text/html;charset=utf-8;base64,PCEtLSBCRUdJTiBhcHAvdmlld3MvbGF5b3V0cy9zaW1wbGUuaHRtbC5lcmIgLS0+PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KICA8dGl0bGU+RHVtbXk8L3RpdGxlPgogIAogIDxtZXRhIG5hbWU9InZpZXdwb3J0IiBjb250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsaW5pdGlhbC1zY2FsZT0xIj4KICA8bWV0YSBuYW1lPSJhcHBsZS1tb2JpbGUtd2ViLWFwcC1jYXBhYmxlIiBjb250ZW50PSJ5ZXMiPgogIDxtZXRhIG5hbWU9ImNzcmYtcGFyYW0iIGNvbnRlbnQ9ImF1dGhlbnRpY2l0eV90b2tlbiIgLz4KPG1ldGEgbmFtZT0iY3NyZi10b2tlbiIgY29udGVudD0id0RNRXJsTkxXRnZYTVFIN1FpSTVZb0VhR21aUGZmNFFBMUNiTS1XeUFTaXhtd2YtY1JSQ0pGTzRqSHVLWFBtWGZ1bDFPLWpYcVQyUUxtREdpRWx0aVEiIC8+CiAgCgogIAo8L2hlYWQ+Cgo8Ym9keT4KPCEtLSBCRUdJTiBhcHAvdmlld3MvcmVwb3J0cy9zaW1wbGUuaHRtbC5lcmIgLS0+PHA+MTwvcD4KPHA+MjwvcD4KPHA+MzwvcD4KPHA+NDwvcD4KPHA+NTwvcD4KPHA+NjwvcD48IS0tIEVORCBhcHAvdmlld3MvcmVwb3J0cy9zaW1wbGUuaHRtbC5lcmIgLS0+CjwvYm9keT4KPC9odG1sPgo8IS0tIEVORCBhcHAvdmlld3MvbGF5b3V0cy9zaW1wbGUuaHRtbC5lcmIgLS0+ response: {"id"=>8, "result"=>{"navigation"=>"5900a8f9-2b66-4ae9-a7d4-12c18568a243", "url"=>"data:text/html;charset=utf-8;base64,PCEtLSBCRUdJTiBhcHAvdmlld3MvbGF5b3V0cy9zaW1wbGUuaHRtbC5lcmIgLS0+PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KICA8dGl0bGU+RHVtbXk8L3RpdGxlPgogIAogIDxtZXRhIG5hbWU9InZpZXdwb3J0IiBjb250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsaW5pdGlhbC1zY2FsZT0xIj4KICA8bWV0YSBuYW1lPSJhcHBsZS1tb2JpbGUtd2ViLWFwcC1jYXBhYmxlIiBjb250ZW50PSJ5ZXMiPgogIDxtZXRhIG5hbWU9ImNzcmYtcGFyYW0iIGNvbnRlbnQ9ImF1dGhlbnRpY2l0eV90b2tlbiIgLz4KPG1ldGEgbmFtZT0iY3NyZi10b2tlbiIgY29udGVudD0id0RNRXJsTkxXRnZYTVFIN1FpSTVZb0VhR21aUGZmNFFBMUNiTS1XeUFTaXhtd2YtY1JSQ0pGTzRqSHVLWFBtWGZ1bDFPLWpYcVQyUUxtREdpRWx0aVEiIC8+CiAgCgogIAo8L2hlYWQ+Cgo8Ym9keT4KPCEtLSBCRUdJTiBhcHAvdmlld3MvcmVwb3J0cy9zaW1wbGUuaHRtbC5lcmIgLS0+PHA+MTwvcD4KPHA+MjwvcD4KPHA+MzwvcD4KPHA+NDwvcD4KPHA+NTwvcD4KPHA+NjwvcD48IS0tIEVORCBhcHAvdmlld3MvcmVwb3J0cy9zaW1wbGUuaHRtbC5lcmIgLS0+CjwvYm9keT4KPC9odG1sPgo8IS0tIEVORCBhcHAvdmlld3MvbGF5b3V0cy9zaW1wbGUuaHRtbC5lcmIgLS0+"}, "type"=>"success"}
18151
+ [bidi2pdf] ✅ All network events completed.
18152
+ [bidi2pdf_rails] Network was idle after 0.1ms, 1 requests, transferred -1 bytes (status codes: 200: 1)
18153
+ [bidi2pdf_rails] Sending command: browsingContext.print id: #9
18154
+ [bidi2pdf_rails] Sending command: {:id=>9, :method=>"browsingContext.print", :params=>{:background=>true, :orientation=>"portrait", :scale=>1.0, :shrinkToFit=>false, :margin=>{:top=>2.5, :bottom=>2, :left=>2, :right=>2}, :page=>{:width=>21.0, :height=>29.7}, :context=>"84DB5589E727F172DA93CB2684634DAB"}} (0.1ms)
18155
+ [bidi2pdf] PDF generated successfully.
18156
+ [bidi2pdf_rails] Page printed: 153.4ms
18157
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #10
18158
+ [bidi2pdf_rails] Sending command: {:id=>10, :method=>"browsingContext.close", :params=>{:context=>"84DB5589E727F172DA93CB2684634DAB"}} (0.1ms)
18159
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"-7923663873092391784.5790784421007275098"}
18160
+ [bidi2pdf] Browsing context closed: 84DB5589E727F172DA93CB2684634DAB {"id"=>10, "result"=>{}, "type"=>"success"}
18161
+ [bidi2pdf] Closed tab: 84DB5589E727F172DA93CB2684634DAB
18162
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #11
18163
+ [bidi2pdf_rails] Sending command: {:id=>11, :method=>"browsingContext.close", :params=>{:context=>"838C89BEB7424D09DA6C1AFBE0B49CC9"}} (0.1ms)
18164
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"5819529662728135418.971945809178343592"}
18165
+ [bidi2pdf] Browsing context closed: 838C89BEB7424D09DA6C1AFBE0B49CC9 {"id"=>11, "result"=>{}, "type"=>"success"}
18166
+ [bidi2pdf_rails] Sending command: browser.removeUserContext id: #12
18167
+ [bidi2pdf_rails] Sending command: {:id=>12, :method=>"browser.removeUserContext", :params=>{:userContext=>"7D52A5426B294145FD634E1D0D8C3D4D"}} (0.1ms)
18168
+ [bidi2pdf] User context deleted: {}
18169
+ [bidi2pdf_rails] Page rendered and printed: 569.7ms
18170
+ Rendering text template
18171
+ Rendered text template (Duration: 0.1ms | GC: 0.0ms)
18172
+ Sent data inject-css-raw.pdf (1.1ms)
18173
+ Completed 200 OK in 583ms (Views: 571.4ms | GC: 8.6ms)
18174
+
18175
+
18176
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 15:45:23 +0200
18177
+
18178
+ ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
18179
+
18180
+ Started GET "/inject-css-raw" for 127.0.0.1 at 2025-04-22 15:52:53 +0200
18181
+ Processing by ReportsController#inject_css_raw as HTML
18182
+ Rendering layout layouts/simple.html.erb
18183
+ Rendering reports/simple.html.erb within layouts/simple
18184
+ Rendered reports/simple.html.erb within layouts/simple (Duration: 0.1ms | GC: 0.0ms)
18185
+ Rendered layout layouts/simple.html.erb (Duration: 0.8ms | GC: 0.1ms)
18186
+ [bidi2pdf_rails] Sending command: browser.createUserContext id: #13
18187
+ [bidi2pdf_rails] Sending command: {:id=>13, :method=>"browser.createUserContext", :params=>{}} (0.1ms)
18188
+ [bidi2pdf] User context created: "5B38C9301710C471A3F570C4F019CFB8"
18189
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #14
18190
+ [bidi2pdf_rails] Sending command: {:id=>14, :method=>"browsingContext.create", :params=>{:type=>"window", :userContext=>"5B38C9301710C471A3F570C4F019CFB8", :background=>false}} (0.1ms)
18191
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"9CD4DD4A52CE84E0150F5A07210DC69A", "origin"=>"null", "realm"=>"5332162171567132949.5859288354961967812", "type"=>"window"}
18192
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #15
18193
+ [bidi2pdf_rails] Sending command: {:id=>15, :method=>"browsingContext.create", :params=>{:type=>"tab", :userContext=>"5B38C9301710C471A3F570C4F019CFB8", :background=>false}} (0.1ms)
18194
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"BD9788842365793E315D9A035F160DD3", "origin"=>"null", "realm"=>"2030297048029925130.1078326812527312269", "type"=>"window"}
18195
+ [bidi2pdf] [D1] Created new browser tab: #<Bidi2pdf::Bidi::BrowserTab:0x00000001202c51e8 @client=#<Bidi2pdf::Bidi::Client:0x000000011fbc6fe0 @ws_url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @started=true, @connection_manager=#<Bidi2pdf::Bidi::ConnectionManager:0x000000011fbc6f18 @logger=#<ActiveSupport::Logger:0x00000001201ab7d0 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x000000011eda1af0 @datetime_format=nil>, @formatter=#<ActiveSupport::Logger::SimpleFormatter:0x000000011f9e7f08 @datetime_format=nil, @thread_key="activesupport_tagged_logging_tags:7940", @tag_stack=#<ActiveSupport::TaggedLogging::TagStack:0x000000011f9e7df0 @tags=["bidi2pdf"], @tags_string=nil>>, @logdev=#<Logger::LogDevice:0x000000011df73f28 @shift_period_suffix="%Y%m%d", @shift_size=104857600, @shift_age=1, @filename="/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log", @dev=#<File:/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log>, @binmode=false, @reraise_write_errors=[], @skip_header=false, @mon_data=#<Monitor:0x000000011eda18e8>, @mon_data_owner_object_id=5740>, @level_override={}, @local_level_key=:logger_thread_safe_level_8600>, @connected=true, @connection_queue=#<Thread::Queue:0x000000011fbc6ea0>>, @socket=#<WebSocket::Client::Simple::Client:0x000000011fbc6d38 @__events=[{:type=>:open, :listener=>#<Proc:0x000000011fbc6590 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x000000011fbc6568 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x000000011fbc6540 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x000000011fbc64c8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x000000011fd8e198 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57907>, @handshake=<WebSocket::Handshake::Client:0x000039a8 @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"O3ppxOEAp8LVAYKxlyb8KJNgenI="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x000000011fd097e0 @handshake=<WebSocket::Handshake::Client:0x000039a8 @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"O3ppxOEAp8LVAYKxlyb8KJNgenI="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x000000011fd097e0 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: O3ppxOEAp8LVAYKxlyb8KJNgenI=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57896, @path="/session/0c780bcf77d16fed6543db1fb42dfc9a", @query=nil, @version=13, @leftovers="">, @key="fXda49l4GBed62Q124HiUg==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: O3ppxOEAp8LVAYKxlyb8KJNgenI=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57896, @path="/session/0c780bcf77d16fed6543db1fb42dfc9a", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x000000011fd8e148 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @command_manager=#<Bidi2pdf::Bidi::CommandManager:0x000000011fbc6c70 @socket=#<WebSocket::Client::Simple::Client:0x000000011fbc6d38 @__events=[{:type=>:open, :listener=>#<Proc:0x000000011fbc6590 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x000000011fbc6568 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x000000011fbc6540 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x000000011fbc64c8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x000000011fd8e198 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57907>, @handshake=<WebSocket::Handshake::Client:0x000039a8 @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"O3ppxOEAp8LVAYKxlyb8KJNgenI="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x000000011fd097e0 @handshake=<WebSocket::Handshake::Client:0x000039a8 @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"O3ppxOEAp8LVAYKxlyb8KJNgenI="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x000000011fd097e0 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: O3ppxOEAp8LVAYKxlyb8KJNgenI=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57896, @path="/session/0c780bcf77d16fed6543db1fb42dfc9a", @query=nil, @version=13, @leftovers="">, @key="fXda49l4GBed62Q124HiUg==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: O3ppxOEAp8LVAYKxlyb8KJNgenI=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57896, @path="/session/0c780bcf77d16fed6543db1fb42dfc9a", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x000000011fd8e148 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @pending_responses={}, @initiated_cmds={}>, @dispatcher=#<Bidi2pdf::Bidi::WebSocketDispatcher:0x000000011fbc6ba8 @socket=#<WebSocket::Client::Simple::Client:0x000000011fbc6d38 @__events=[{:type=>:open, :listener=>#<Proc:0x000000011fbc6590 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x000000011fbc6568 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x000000011fbc6540 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x000000011fbc64c8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x000000011fd8e198 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57907>, @handshake=<WebSocket::Handshake::Client:0x000039a8 @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"O3ppxOEAp8LVAYKxlyb8KJNgenI="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x000000011fd097e0 @handshake=<WebSocket::Handshake::Client:0x000039a8 @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"O3ppxOEAp8LVAYKxlyb8KJNgenI="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x000000011fd097e0 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: O3ppxOEAp8LVAYKxlyb8KJNgenI=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57896, @path="/session/0c780bcf77d16fed6543db1fb42dfc9a", @query=nil, @version=13, @leftovers="">, @key="fXda49l4GBed62Q124HiUg==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: O3ppxOEAp8LVAYKxlyb8KJNgenI=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57896, @path="/session/0c780bcf77d16fed6543db1fb42dfc9a", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x000000011fd8e148 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @socket_events=#<Bidi2pdf::Bidi::EventManager:0x000000011fbc6b08 @listeners={:open=>[#<Proc:0x000000011fbc6888 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:55>], :message=>[#<Proc:0x000000011fbc67e8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:56>], :close=>[#<Proc:0x000000011fd8d4a0 /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/chromedriver_manager_singleton.rb:36>]}, @type="socket-event">, @session_events=#<Bidi2pdf::Bidi::EventManager:0x000000011fbc6a18 @listeners={:"network.beforeRequestSent"=>[#<Proc:0x000000011f545a68 (lambda)>], :"network.responseStarted"=>[#<Proc:0x000000011f545a68 (lambda)>], :"network.responseCompleted"=>[#<Proc:0x000000011f545a68 (lambda)>], :"network.fetchError"=>[#<Proc:0x000000011f545a68 (lambda)>], :"log.entryAdded"=>[#<Proc:0x000000011f542f98 (lambda)>], :"browsingContext.navigationFailed"=>[#<Proc:0x000000011f5406a8 (lambda)>], :network=>[]}, @type="session-event">>>, @browsing_context_id="BD9788842365793E315D9A035F160DD3", @user_context_id="5B38C9301710C471A3F570C4F019CFB8", @tabs=[], @network_events=#<Bidi2pdf::Bidi::NetworkEvents:0x000000011f94d660 @context_id="BD9788842365793E315D9A035F160DD3", @events={}, @network_event_formatter=#<Bidi2pdf::Bidi::NetworkEventFormatters::NetworkEventConsoleFormatter:0x000000011f94d638 @color_enabled=true, @logger=#<Logger:0x00000001201ab640 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x000000011f9e7aa8 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @logger_events=#<Bidi2pdf::Bidi::LoggerEvents:0x000000011f94d610 @context_id="BD9788842365793E315D9A035F160DD3", @browser_console_logger=#<Bidi2pdf::Bidi::BrowserConsoleLogger:0x000000011f94d5e8 @logger=#<Logger:0x00000001201ab5a0 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x000000011f9e7a08 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @navigation_failed_events=#<Bidi2pdf::Bidi::NavigationFailedEvents:0x000000011f94d5c0 @context_id="BD9788842365793E315D9A035F160DD3">, @open=true>
18196
+ [bidi2pdf_rails] Sending command: session.subscribe id: #16
18197
+ [bidi2pdf_rails] Sending command: {:id=>16, :method=>"session.subscribe", :params=>{:events=>["network.beforeRequestSent", "network.responseStarted", "network.responseCompleted", "network.fetchError"]}} (0.1ms)
18198
+ [bidi2pdf_rails] Sending command: session.subscribe id: #17
18199
+ [bidi2pdf_rails] Sending command: {:id=>17, :method=>"session.subscribe", :params=>{:events=>["log.entryAdded"]}} (0.1ms)
18200
+ [bidi2pdf_rails] Sending command: session.subscribe id: #18
18201
+ [bidi2pdf_rails] Sending command: {:id=>18, :method=>"session.subscribe", :params=>{:events=>["browsingContext.navigationFailed"]}} (0.2ms)
18202
+ [bidi2pdf_rails] Sending command: browsingContext.navigate id: #19
18203
+ [bidi2pdf_rails] Sending command: {:id=>19, :method=>"browsingContext.navigate", :params=>{:url=>"data:text/html;charset=utf-8;base64,PCEtLSBCRUdJTiBhcHAvdmlld3MvbGF5b3V0cy9zaW1wbGUuaHRtbC5lcmIgLS0+PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KICA8dGl0bGU+RHVtbXk8L3RpdGxlPgogIAogIDxtZXRhIG5hbWU9InZpZXdwb3J0IiBjb250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsaW5pdGlhbC1zY2FsZT0xIj4KICA8bWV0YSBuYW1lPSJhcHBsZS1tb2JpbGUtd2ViLWFwcC1jYXBhYmxlIiBjb250ZW50PSJ5ZXMiPgogIDxtZXRhIG5hbWU9ImNzcmYtcGFyYW0iIGNvbnRlbnQ9ImF1dGhlbnRpY2l0eV90b2tlbiIgLz4KPG1ldGEgbmFtZT0iY3NyZi10b2tlbiIgY29udGVudD0iWWpzbGZTdGJ5czY1cy12bmVWM1NzTVdoSEZIOXRHZGNHZHFjRWo3XzBZUVRreVl0Q1FUUXNUMDZabWV4SXhKRk9sSnpERm9lTUhHS3BHZm5Vd1M5SlEiIC8+CiAgCgogIAo8L2hlYWQ+Cgo8Ym9keT4KPCEtLSBCRUdJTiBhcHAvdmlld3MvcmVwb3J0cy9zaW1wbGUuaHRtbC5lcmIgLS0+PHA+MTwvcD4KPHA+MjwvcD4KPHA+MzwvcD4KPHA+NDwvcD4KPHA+NTwvcD4KPHA+NjwvcD48IS0tIEVORCBhcHAvdmlld3MvcmVwb3J0cy9zaW1wbGUuaHRtbC5lcmIgLS0+CjwvYm9keT4KPC9odG1sPgo8IS0tIEVORCBhcHAvdmlld3MvbGF5b3V0cy9zaW1wbGUuaHRtbC5lcmIgLS0+", :context=>"BD9788842365793E315D9A035F160DD3", :wait=>"complete"}} (0.2ms)
18204
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"2030297048029925130.1078326812527312269"}
18205
+ [bidi2pdf_rails] [network] ┌─ Network Event ──────────────────────────────────────
18206
+ [bidi2pdf_rails] [network] │ Request: GET data:text/html,...
18207
+ [bidi2pdf_rails] [network] │ State: completed
18208
+ [bidi2pdf_rails] [network] │ Status: HTTP 200
18209
+ [bidi2pdf_rails] [network] │ Started: 2025-04-22 13:52:54.117 UTC
18210
+ [bidi2pdf_rails] [network] │ Ended: 2025-04-22 13:52:54.117 UTC
18211
+ [bidi2pdf_rails] [network] │ Duration: 0.0s
18212
+ [bidi2pdf_rails] [network] │ Received: -1.00 B
18213
+ [bidi2pdf_rails] [network] │
18214
+ [bidi2pdf_rails] [network] │ Timing Phases:
18215
+ [bidi2pdf_rails] [network] │ Request time : 0 ms
18216
+ [bidi2pdf_rails] [network] │ Dns start : 0 ms
18217
+ [bidi2pdf_rails] [network] │ Dns end : 0 ms
18218
+ [bidi2pdf_rails] [network] │ Connect start : 0 ms
18219
+ [bidi2pdf_rails] [network] │ Connect end : 0 ms
18220
+ [bidi2pdf_rails] [network] └──────────────────────────────────────────────────────
18221
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"BD9788842365793E315D9A035F160DD3", "origin"=>"null", "realm"=>"5213158961469965366.-2765224931662239807", "type"=>"window"}
18222
+ [bidi2pdf] Navigated to page url: data:text/html;charset=utf-8;base64,PCEtLSBCRUdJTiBhcHAvdmlld3MvbGF5b3V0cy9zaW1wbGUuaHRtbC5lcmIgLS0+PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KICA8dGl0bGU+RHVtbXk8L3RpdGxlPgogIAogIDxtZXRhIG5hbWU9InZpZXdwb3J0IiBjb250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsaW5pdGlhbC1zY2FsZT0xIj4KICA8bWV0YSBuYW1lPSJhcHBsZS1tb2JpbGUtd2ViLWFwcC1jYXBhYmxlIiBjb250ZW50PSJ5ZXMiPgogIDxtZXRhIG5hbWU9ImNzcmYtcGFyYW0iIGNvbnRlbnQ9ImF1dGhlbnRpY2l0eV90b2tlbiIgLz4KPG1ldGEgbmFtZT0iY3NyZi10b2tlbiIgY29udGVudD0iWWpzbGZTdGJ5czY1cy12bmVWM1NzTVdoSEZIOXRHZGNHZHFjRWo3XzBZUVRreVl0Q1FUUXNUMDZabWV4SXhKRk9sSnpERm9lTUhHS3BHZm5Vd1M5SlEiIC8+CiAgCgogIAo8L2hlYWQ+Cgo8Ym9keT4KPCEtLSBCRUdJTiBhcHAvdmlld3MvcmVwb3J0cy9zaW1wbGUuaHRtbC5lcmIgLS0+PHA+MTwvcD4KPHA+MjwvcD4KPHA+MzwvcD4KPHA+NDwvcD4KPHA+NTwvcD4KPHA+NjwvcD48IS0tIEVORCBhcHAvdmlld3MvcmVwb3J0cy9zaW1wbGUuaHRtbC5lcmIgLS0+CjwvYm9keT4KPC9odG1sPgo8IS0tIEVORCBhcHAvdmlld3MvbGF5b3V0cy9zaW1wbGUuaHRtbC5lcmIgLS0+ response: {"id"=>19, "result"=>{"navigation"=>"887d324d-0bad-44cf-a9a0-9868ba118914", "url"=>"data:text/html;charset=utf-8;base64,PCEtLSBCRUdJTiBhcHAvdmlld3MvbGF5b3V0cy9zaW1wbGUuaHRtbC5lcmIgLS0+PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KICA8dGl0bGU+RHVtbXk8L3RpdGxlPgogIAogIDxtZXRhIG5hbWU9InZpZXdwb3J0IiBjb250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsaW5pdGlhbC1zY2FsZT0xIj4KICA8bWV0YSBuYW1lPSJhcHBsZS1tb2JpbGUtd2ViLWFwcC1jYXBhYmxlIiBjb250ZW50PSJ5ZXMiPgogIDxtZXRhIG5hbWU9ImNzcmYtcGFyYW0iIGNvbnRlbnQ9ImF1dGhlbnRpY2l0eV90b2tlbiIgLz4KPG1ldGEgbmFtZT0iY3NyZi10b2tlbiIgY29udGVudD0iWWpzbGZTdGJ5czY1cy12bmVWM1NzTVdoSEZIOXRHZGNHZHFjRWo3XzBZUVRreVl0Q1FUUXNUMDZabWV4SXhKRk9sSnpERm9lTUhHS3BHZm5Vd1M5SlEiIC8+CiAgCgogIAo8L2hlYWQ+Cgo8Ym9keT4KPCEtLSBCRUdJTiBhcHAvdmlld3MvcmVwb3J0cy9zaW1wbGUuaHRtbC5lcmIgLS0+PHA+MTwvcD4KPHA+MjwvcD4KPHA+MzwvcD4KPHA+NDwvcD4KPHA+NTwvcD4KPHA+NjwvcD48IS0tIEVORCBhcHAvdmlld3MvcmVwb3J0cy9zaW1wbGUuaHRtbC5lcmIgLS0+CjwvYm9keT4KPC9odG1sPgo8IS0tIEVORCBhcHAvdmlld3MvbGF5b3V0cy9zaW1wbGUuaHRtbC5lcmIgLS0+"}, "type"=>"success"}
18223
+ [bidi2pdf] ✅ All network events completed.
18224
+ [bidi2pdf_rails] Network was idle after 0.0ms, 1 requests, transferred -1 bytes (status codes: 200: 1)
18225
+ [bidi2pdf_rails] Sending command: browsingContext.print id: #20
18226
+ [bidi2pdf_rails] Sending command: {:id=>20, :method=>"browsingContext.print", :params=>{:background=>true, :orientation=>"portrait", :scale=>1.0, :shrinkToFit=>false, :margin=>{:top=>2.5, :bottom=>2, :left=>2, :right=>2}, :page=>{:width=>21.0, :height=>29.7}, :context=>"BD9788842365793E315D9A035F160DD3"}} (0.1ms)
18227
+ [bidi2pdf] PDF generated successfully.
18228
+ [bidi2pdf_rails] Page printed: 146.9ms
18229
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #21
18230
+ [bidi2pdf_rails] Sending command: {:id=>21, :method=>"browsingContext.close", :params=>{:context=>"BD9788842365793E315D9A035F160DD3"}} (0.1ms)
18231
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"5213158961469965366.-2765224931662239807"}
18232
+ [bidi2pdf] Browsing context closed: BD9788842365793E315D9A035F160DD3 {"id"=>21, "result"=>{}, "type"=>"success"}
18233
+ [bidi2pdf] Closed tab: BD9788842365793E315D9A035F160DD3
18234
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #22
18235
+ [bidi2pdf_rails] Sending command: {:id=>22, :method=>"browsingContext.close", :params=>{:context=>"9CD4DD4A52CE84E0150F5A07210DC69A"}} (0.1ms)
18236
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"5332162171567132949.5859288354961967812"}
18237
+ [bidi2pdf] Browsing context closed: 9CD4DD4A52CE84E0150F5A07210DC69A {"id"=>22, "result"=>{}, "type"=>"success"}
18238
+ [bidi2pdf_rails] Sending command: browser.removeUserContext id: #23
18239
+ [bidi2pdf_rails] Sending command: {:id=>23, :method=>"browser.removeUserContext", :params=>{:userContext=>"5B38C9301710C471A3F570C4F019CFB8"}} (0.1ms)
18240
+ [bidi2pdf] User context deleted: {}
18241
+ [bidi2pdf_rails] Page rendered and printed: 541.2ms
18242
+ Rendering text template
18243
+ Rendered text template (Duration: 0.1ms | GC: 0.0ms)
18244
+ Sent data inject-css-raw.pdf (0.3ms)
18245
+ Completed 200 OK in 554ms (Views: 542.0ms | GC: 11.2ms)
18246
+
18247
+
18248
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 15:52:54 +0200
18249
+
18250
+ ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
18251
+
18252
+ Started GET "/inject/raw-css" for 127.0.0.1 at 2025-04-22 16:05:16 +0200
18253
+
18254
+ ActionController::RoutingError (No route matches [GET] "/inject/raw-css"):
18255
+
18256
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 16:05:16 +0200
18257
+
18258
+ ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
18259
+
18260
+ Started GET "/inject/raw-css" for 127.0.0.1 at 2025-04-22 16:05:34 +0200
18261
+
18262
+ AbstractController::ActionNotFound (The action 'inject_css' could not be found for ReportsController):
18263
+
18264
+ actionpack (7.2.2.1) lib/abstract_controller/base.rb:158:in `process'
18265
+ actionview (7.2.2.1) lib/action_view/rendering.rb:40:in `process'
18266
+ actionpack (7.2.2.1) lib/action_controller/metal.rb:252:in `dispatch'
18267
+ actionpack (7.2.2.1) lib/action_controller/metal.rb:335:in `dispatch'
18268
+ actionpack (7.2.2.1) lib/action_dispatch/routing/route_set.rb:67:in `dispatch'
18269
+ actionpack (7.2.2.1) lib/action_dispatch/routing/route_set.rb:50:in `serve'
18270
+ actionpack (7.2.2.1) lib/action_dispatch/journey/router.rb:53:in `block in serve'
18271
+ actionpack (7.2.2.1) lib/action_dispatch/journey/router.rb:133:in `block in find_routes'
18272
+ actionpack (7.2.2.1) lib/action_dispatch/journey/router.rb:126:in `each'
18273
+ actionpack (7.2.2.1) lib/action_dispatch/journey/router.rb:126:in `find_routes'
18274
+ actionpack (7.2.2.1) lib/action_dispatch/journey/router.rb:34:in `serve'
18275
+ actionpack (7.2.2.1) lib/action_dispatch/routing/route_set.rb:896:in `call'
18276
+ rack (3.1.13) lib/rack/tempfile_reaper.rb:20:in `call'
18277
+ rack (3.1.13) lib/rack/etag.rb:29:in `call'
18278
+ rack (3.1.13) lib/rack/conditional_get.rb:31:in `call'
18279
+ rack (3.1.13) lib/rack/head.rb:15:in `call'
18280
+ actionpack (7.2.2.1) lib/action_dispatch/http/permissions_policy.rb:38:in `call'
18281
+ actionpack (7.2.2.1) lib/action_dispatch/http/content_security_policy.rb:38:in `call'
18282
+ rack-session (2.1.0) lib/rack/session/abstract/id.rb:274:in `context'
18283
+ rack-session (2.1.0) lib/rack/session/abstract/id.rb:268:in `call'
18284
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/cookies.rb:704:in `call'
18285
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/callbacks.rb:31:in `block in call'
18286
+ activesupport (7.2.2.1) lib/active_support/callbacks.rb:101:in `run_callbacks'
18287
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/callbacks.rb:30:in `call'
18288
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/executor.rb:16:in `call'
18289
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
18290
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:31:in `call'
18291
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/show_exceptions.rb:32:in `call'
18292
+ railties (7.2.2.1) lib/rails/rack/logger.rb:41:in `call_app'
18293
+ railties (7.2.2.1) lib/rails/rack/logger.rb:29:in `call'
18294
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/remote_ip.rb:96:in `call'
18295
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/request_id.rb:33:in `call'
18296
+ rack (3.1.13) lib/rack/method_override.rb:28:in `call'
18297
+ rack (3.1.13) lib/rack/runtime.rb:24:in `call'
18298
+ activesupport (7.2.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
18299
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/server_timing.rb:61:in `block in call'
18300
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/server_timing.rb:26:in `collect_events'
18301
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/server_timing.rb:60:in `call'
18302
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/executor.rb:16:in `call'
18303
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/static.rb:27:in `call'
18304
+ rack (3.1.13) lib/rack/sendfile.rb:114:in `call'
18305
+ actionpack (7.2.2.1) lib/action_dispatch/middleware/host_authorization.rb:143:in `call'
18306
+ rack-cors (2.0.2) lib/rack/cors.rb:102:in `call'
18307
+ railties (7.2.2.1) lib/rails/engine.rb:535:in `call'
18308
+ puma (6.6.0) lib/puma/configuration.rb:279:in `call'
18309
+ puma (6.6.0) lib/puma/request.rb:99:in `block in handle_request'
18310
+ puma (6.6.0) lib/puma/thread_pool.rb:390:in `with_force_shutdown'
18311
+ puma (6.6.0) lib/puma/request.rb:98:in `handle_request'
18312
+ puma (6.6.0) lib/puma/server.rb:472:in `process_client'
18313
+ puma (6.6.0) lib/puma/server.rb:254:in `block in run'
18314
+ puma (6.6.0) lib/puma/thread_pool.rb:167:in `block in spawn_thread'
18315
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 16:05:35 +0200
18316
+
18317
+ ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
18318
+
18319
+ Started GET "/inject/raw-css" for 127.0.0.1 at 2025-04-22 16:05:48 +0200
18320
+ Processing by ReportsController#inject as HTML
18321
+ Parameters: {"kind"=>"raw-css"}
18322
+ Rendering layout layouts/simple.html.erb
18323
+ Rendering reports/simple.html.erb within layouts/simple
18324
+ Rendered reports/simple.html.erb within layouts/simple (Duration: 0.2ms | GC: 0.0ms)
18325
+ Rendered layout layouts/simple.html.erb (Duration: 1.0ms | GC: 0.0ms)
18326
+ [bidi2pdf_rails] Sending command: browser.createUserContext id: #24
18327
+ [bidi2pdf_rails] Sending command: {:id=>24, :method=>"browser.createUserContext", :params=>{}} (0.1ms)
18328
+ [bidi2pdf] User context created: "9297284E7C51B82FE4EEF623DF3BA69E"
18329
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #25
18330
+ [bidi2pdf_rails] Sending command: {:id=>25, :method=>"browsingContext.create", :params=>{:type=>"window", :userContext=>"9297284E7C51B82FE4EEF623DF3BA69E", :background=>false}} (0.1ms)
18331
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"30F5177988FEC4901CD11B5B64655847", "origin"=>"null", "realm"=>"-8891421783268349929.-1844371213794937785", "type"=>"window"}
18332
+ [bidi2pdf_rails] Sending command: browsingContext.create id: #26
18333
+ [bidi2pdf_rails] Sending command: {:id=>26, :method=>"browsingContext.create", :params=>{:type=>"tab", :userContext=>"9297284E7C51B82FE4EEF623DF3BA69E", :background=>false}} (0.1ms)
18334
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"B5D6901FE8A60076B4B7346758CC10CA", "origin"=>"null", "realm"=>"397670667531563819.4874542056884412467", "type"=>"window"}
18335
+ [bidi2pdf] [D1] Created new browser tab: #<Bidi2pdf::Bidi::BrowserTab:0x00000001203a08d8 @client=#<Bidi2pdf::Bidi::Client:0x000000011fbc6fe0 @ws_url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @started=true, @connection_manager=#<Bidi2pdf::Bidi::ConnectionManager:0x000000011fbc6f18 @logger=#<ActiveSupport::Logger:0x00000001201ab7d0 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x000000011eda1af0 @datetime_format=nil>, @formatter=#<ActiveSupport::Logger::SimpleFormatter:0x000000011f9e7f08 @datetime_format=nil, @thread_key="activesupport_tagged_logging_tags:7940", @tag_stack=#<ActiveSupport::TaggedLogging::TagStack:0x000000011f9e7df0 @tags=["bidi2pdf"], @tags_string=nil>>, @logdev=#<Logger::LogDevice:0x000000011df73f28 @shift_period_suffix="%Y%m%d", @shift_size=104857600, @shift_age=1, @filename="/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log", @dev=#<File:/Users/fastjack/sources/ruby/bidi2pdf-rails/spec/dummy/log/development.log>, @binmode=false, @reraise_write_errors=[], @skip_header=false, @mon_data=#<Monitor:0x000000011eda18e8>, @mon_data_owner_object_id=5740>, @level_override={}, @local_level_key=:logger_thread_safe_level_8600>, @connected=true, @connection_queue=#<Thread::Queue:0x000000011fbc6ea0>>, @socket=#<WebSocket::Client::Simple::Client:0x000000011fbc6d38 @__events=[{:type=>:open, :listener=>#<Proc:0x000000011fbc6590 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x000000011fbc6568 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x000000011fbc6540 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x000000011fbc64c8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x000000011fd8e198 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57907>, @handshake=<WebSocket::Handshake::Client:0x000039a8 @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"O3ppxOEAp8LVAYKxlyb8KJNgenI="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x000000011fd097e0 @handshake=<WebSocket::Handshake::Client:0x000039a8 @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"O3ppxOEAp8LVAYKxlyb8KJNgenI="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x000000011fd097e0 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: O3ppxOEAp8LVAYKxlyb8KJNgenI=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57896, @path="/session/0c780bcf77d16fed6543db1fb42dfc9a", @query=nil, @version=13, @leftovers="">, @key="fXda49l4GBed62Q124HiUg==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: O3ppxOEAp8LVAYKxlyb8KJNgenI=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57896, @path="/session/0c780bcf77d16fed6543db1fb42dfc9a", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x000000011fd8e148 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @command_manager=#<Bidi2pdf::Bidi::CommandManager:0x000000011fbc6c70 @socket=#<WebSocket::Client::Simple::Client:0x000000011fbc6d38 @__events=[{:type=>:open, :listener=>#<Proc:0x000000011fbc6590 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x000000011fbc6568 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x000000011fbc6540 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x000000011fbc64c8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x000000011fd8e198 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57907>, @handshake=<WebSocket::Handshake::Client:0x000039a8 @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"O3ppxOEAp8LVAYKxlyb8KJNgenI="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x000000011fd097e0 @handshake=<WebSocket::Handshake::Client:0x000039a8 @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"O3ppxOEAp8LVAYKxlyb8KJNgenI="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x000000011fd097e0 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: O3ppxOEAp8LVAYKxlyb8KJNgenI=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57896, @path="/session/0c780bcf77d16fed6543db1fb42dfc9a", @query=nil, @version=13, @leftovers="">, @key="fXda49l4GBed62Q124HiUg==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: O3ppxOEAp8LVAYKxlyb8KJNgenI=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57896, @path="/session/0c780bcf77d16fed6543db1fb42dfc9a", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x000000011fd8e148 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @pending_responses={}, @initiated_cmds={}>, @dispatcher=#<Bidi2pdf::Bidi::WebSocketDispatcher:0x000000011fbc6ba8 @socket=#<WebSocket::Client::Simple::Client:0x000000011fbc6d38 @__events=[{:type=>:open, :listener=>#<Proc:0x000000011fbc6590 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:66>, :params=>{}, :id=>0}, {:type=>:close, :listener=>#<Proc:0x000000011fbc6568 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:67>, :params=>{}, :id=>1}, {:type=>:error, :listener=>#<Proc:0x000000011fbc6540 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:68>, :params=>{}, :id=>2}, {:type=>:message, :listener=>#<Proc:0x000000011fbc64c8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/web_socket_dispatcher.rb:50>, :params=>{}, :id=>3}, {:type=>:__close, :listener=>#<Proc:0x000000011fd8e198 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:40>, :params=>{:once=>true}, :id=>4}], @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @socket=#<TCPSocket:fd 19, AF_INET6, ::1, 57907>, @handshake=<WebSocket::Handshake::Client:0x000039a8 @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"O3ppxOEAp8LVAYKxlyb8KJNgenI="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x000000011fd097e0 @handshake=<WebSocket::Handshake::Client:0x000039a8 @url="ws://localhost:57896/session/0c780bcf77d16fed6543db1fb42dfc9a", @headers={"upgrade"=>"WebSocket", "connection"=>"Upgrade", "sec-websocket-accept"=>"O3ppxOEAp8LVAYKxlyb8KJNgenI="}, @state=:finished, @handler=#<WebSocket::Handshake::Handler::Client11:0x000000011fd097e0 ...>, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: O3ppxOEAp8LVAYKxlyb8KJNgenI=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57896, @path="/session/0c780bcf77d16fed6543db1fb42dfc9a", @query=nil, @version=13, @leftovers="">, @key="fXda49l4GBed62Q124HiUg==">, @data="HTTP/1.1 101 WebSocket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: O3ppxOEAp8LVAYKxlyb8KJNgenI=\r\n\r\n", @protocols=[], @secure=false, @host="localhost", @port=57896, @path="/session/0c780bcf77d16fed6543db1fb42dfc9a", @query=nil, @version=13, @leftovers="">, @handshaked=true, @pipe_broken=false, @closed=false, @thread=#<Thread:0x000000011fd8e148 /Users/fastjack/.rvm/gems/ruby-3.3.4@bidi2pdf-rails/gems/websocket-client-simple-0.9.0/lib/websocket-client-simple/client.rb:45 sleep>>, @socket_events=#<Bidi2pdf::Bidi::EventManager:0x000000011fbc6b08 @listeners={:open=>[#<Proc:0x000000011fbc6888 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:55>], :message=>[#<Proc:0x000000011fbc67e8 /Users/fastjack/sources/ruby/bidi2pdf/lib/bidi2pdf/bidi/client.rb:56>], :close=>[#<Proc:0x000000011fd8d4a0 /Users/fastjack/sources/ruby/bidi2pdf-rails/lib/bidi2pdf_rails/chromedriver_manager_singleton.rb:36>]}, @type="socket-event">, @session_events=#<Bidi2pdf::Bidi::EventManager:0x000000011fbc6a18 @listeners={:"network.beforeRequestSent"=>[#<Proc:0x000000011f545a68 (lambda)>, #<Proc:0x000000011f948f48 (lambda)>], :"network.responseStarted"=>[#<Proc:0x000000011f545a68 (lambda)>, #<Proc:0x000000011f948f48 (lambda)>], :"network.responseCompleted"=>[#<Proc:0x000000011f545a68 (lambda)>, #<Proc:0x000000011f948f48 (lambda)>], :"network.fetchError"=>[#<Proc:0x000000011f545a68 (lambda)>, #<Proc:0x000000011f948f48 (lambda)>], :"log.entryAdded"=>[#<Proc:0x000000011f542f98 (lambda)>, #<Proc:0x000000011f946608 (lambda)>], :"browsingContext.navigationFailed"=>[#<Proc:0x000000011f5406a8 (lambda)>, #<Proc:0x000000011f943de0 (lambda)>], :network=>[]}, @type="session-event">>>, @browsing_context_id="B5D6901FE8A60076B4B7346758CC10CA", @user_context_id="9297284E7C51B82FE4EEF623DF3BA69E", @tabs=[], @network_events=#<Bidi2pdf::Bidi::NetworkEvents:0x000000011f483148 @context_id="B5D6901FE8A60076B4B7346758CC10CA", @events={}, @network_event_formatter=#<Bidi2pdf::Bidi::NetworkEventFormatters::NetworkEventConsoleFormatter:0x000000011f483120 @color_enabled=true, @logger=#<Logger:0x00000001201ab640 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x000000011f9e7aa8 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @logger_events=#<Bidi2pdf::Bidi::LoggerEvents:0x000000011f4830f8 @context_id="B5D6901FE8A60076B4B7346758CC10CA", @browser_console_logger=#<Bidi2pdf::Bidi::BrowserConsoleLogger:0x000000011f4830d0 @logger=#<Logger:0x00000001201ab5a0 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x000000011f9e7a08 @datetime_format=nil>, @formatter=nil, @logdev=nil, @level_override={}>>>, @navigation_failed_events=#<Bidi2pdf::Bidi::NavigationFailedEvents:0x000000011f4830a8 @context_id="B5D6901FE8A60076B4B7346758CC10CA">, @open=true>
18336
+ [bidi2pdf_rails] Sending command: session.subscribe id: #27
18337
+ [bidi2pdf_rails] Sending command: {:id=>27, :method=>"session.subscribe", :params=>{:events=>["network.beforeRequestSent", "network.responseStarted", "network.responseCompleted", "network.fetchError"]}} (0.1ms)
18338
+ [bidi2pdf_rails] Sending command: session.subscribe id: #28
18339
+ [bidi2pdf_rails] Sending command: {:id=>28, :method=>"session.subscribe", :params=>{:events=>["log.entryAdded"]}} (0.1ms)
18340
+ [bidi2pdf_rails] Sending command: session.subscribe id: #29
18341
+ [bidi2pdf_rails] Sending command: {:id=>29, :method=>"session.subscribe", :params=>{:events=>["browsingContext.navigationFailed"]}} (1.0ms)
18342
+ [bidi2pdf_rails] Sending command: browsingContext.navigate id: #30
18343
+ [bidi2pdf_rails] Sending command: {:id=>30, :method=>"browsingContext.navigate", :params=>{:url=>"data:text/html;charset=utf-8;base64,PCEtLSBCRUdJTiBhcHAvdmlld3MvbGF5b3V0cy9zaW1wbGUuaHRtbC5lcmIgLS0+PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KICA8dGl0bGU+RHVtbXk8L3RpdGxlPgogIAogIDxtZXRhIG5hbWU9InZpZXdwb3J0IiBjb250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsaW5pdGlhbC1zY2FsZT0xIj4KICA8bWV0YSBuYW1lPSJhcHBsZS1tb2JpbGUtd2ViLWFwcC1jYXBhYmxlIiBjb250ZW50PSJ5ZXMiPgogIDxtZXRhIG5hbWU9ImNzcmYtcGFyYW0iIGNvbnRlbnQ9ImF1dGhlbnRpY2l0eV90b2tlbiIgLz4KPG1ldGEgbmFtZT0iY3NyZi10b2tlbiIgY29udGVudD0iYjl1eFc3QW0xd0JCakEzdkpfUm5sd251amlQU093el9CNmUtd0pUQlQ5b2VjN0lMa25uTmY4VUZnR192aXFkaTloM2hmbldSVzlLVTJVVTEtVG9qZXciIC8+CiAgCgogIAo8L2hlYWQ+Cgo8Ym9keT4KPCEtLSBCRUdJTiBhcHAvdmlld3MvcmVwb3J0cy9zaW1wbGUuaHRtbC5lcmIgLS0+PHA+MTwvcD4KPHA+MjwvcD4KPHA+MzwvcD4KPHA+NDwvcD4KPHA+NTwvcD4KPHA+NjwvcD48IS0tIEVORCBhcHAvdmlld3MvcmVwb3J0cy9zaW1wbGUuaHRtbC5lcmIgLS0+CjwvYm9keT4KPC9odG1sPgo8IS0tIEVORCBhcHAvdmlld3MvbGF5b3V0cy9zaW1wbGUuaHRtbC5lcmIgLS0+", :context=>"B5D6901FE8A60076B4B7346758CC10CA", :wait=>"complete"}} (0.5ms)
18344
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"397670667531563819.4874542056884412467"}
18345
+ [bidi2pdf_rails] [network] ┌─ Network Event ──────────────────────────────────────
18346
+ [bidi2pdf_rails] [network] │ Request: GET data:text/html,...
18347
+ [bidi2pdf_rails] [network] │ State: completed
18348
+ [bidi2pdf_rails] [network] │ Status: HTTP 200
18349
+ [bidi2pdf_rails] [network] │ Started: 2025-04-22 14:05:49.121 UTC
18350
+ [bidi2pdf_rails] [network] │ Ended: 2025-04-22 14:05:49.121 UTC
18351
+ [bidi2pdf_rails] [network] │ Duration: 0.0s
18352
+ [bidi2pdf_rails] [network] │ Received: -1.00 B
18353
+ [bidi2pdf_rails] [network] │
18354
+ [bidi2pdf_rails] [network] │ Timing Phases:
18355
+ [bidi2pdf_rails] [network] │ Request time : 0 ms
18356
+ [bidi2pdf_rails] [network] │ Dns start : 0 ms
18357
+ [bidi2pdf_rails] [network] │ Dns end : 0 ms
18358
+ [bidi2pdf_rails] [network] │ Connect start : 0 ms
18359
+ [bidi2pdf_rails] [network] │ Connect end : 0 ms
18360
+ [bidi2pdf_rails] [network] └──────────────────────────────────────────────────────
18361
+ [bidi2pdf] Received event: script.realmCreated, params: {"context"=>"B5D6901FE8A60076B4B7346758CC10CA", "origin"=>"null", "realm"=>"-1493159152755060139.-4074426498350834533", "type"=>"window"}
18362
+ [bidi2pdf] Navigated to page url: data:text/html;charset=utf-8;base64,PCEtLSBCRUdJTiBhcHAvdmlld3MvbGF5b3V0cy9zaW1wbGUuaHRtbC5lcmIgLS0+PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KICA8dGl0bGU+RHVtbXk8L3RpdGxlPgogIAogIDxtZXRhIG5hbWU9InZpZXdwb3J0IiBjb250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsaW5pdGlhbC1zY2FsZT0xIj4KICA8bWV0YSBuYW1lPSJhcHBsZS1tb2JpbGUtd2ViLWFwcC1jYXBhYmxlIiBjb250ZW50PSJ5ZXMiPgogIDxtZXRhIG5hbWU9ImNzcmYtcGFyYW0iIGNvbnRlbnQ9ImF1dGhlbnRpY2l0eV90b2tlbiIgLz4KPG1ldGEgbmFtZT0iY3NyZi10b2tlbiIgY29udGVudD0iYjl1eFc3QW0xd0JCakEzdkpfUm5sd251amlQU093el9CNmUtd0pUQlQ5b2VjN0lMa25uTmY4VUZnR192aXFkaTloM2hmbldSVzlLVTJVVTEtVG9qZXciIC8+CiAgCgogIAo8L2hlYWQ+Cgo8Ym9keT4KPCEtLSBCRUdJTiBhcHAvdmlld3MvcmVwb3J0cy9zaW1wbGUuaHRtbC5lcmIgLS0+PHA+MTwvcD4KPHA+MjwvcD4KPHA+MzwvcD4KPHA+NDwvcD4KPHA+NTwvcD4KPHA+NjwvcD48IS0tIEVORCBhcHAvdmlld3MvcmVwb3J0cy9zaW1wbGUuaHRtbC5lcmIgLS0+CjwvYm9keT4KPC9odG1sPgo8IS0tIEVORCBhcHAvdmlld3MvbGF5b3V0cy9zaW1wbGUuaHRtbC5lcmIgLS0+ response: {"id"=>30, "result"=>{"navigation"=>"27e11bba-b7b6-4d8b-b35a-039c5159f348", "url"=>"data:text/html;charset=utf-8;base64,PCEtLSBCRUdJTiBhcHAvdmlld3MvbGF5b3V0cy9zaW1wbGUuaHRtbC5lcmIgLS0+PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KICA8dGl0bGU+RHVtbXk8L3RpdGxlPgogIAogIDxtZXRhIG5hbWU9InZpZXdwb3J0IiBjb250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsaW5pdGlhbC1zY2FsZT0xIj4KICA8bWV0YSBuYW1lPSJhcHBsZS1tb2JpbGUtd2ViLWFwcC1jYXBhYmxlIiBjb250ZW50PSJ5ZXMiPgogIDxtZXRhIG5hbWU9ImNzcmYtcGFyYW0iIGNvbnRlbnQ9ImF1dGhlbnRpY2l0eV90b2tlbiIgLz4KPG1ldGEgbmFtZT0iY3NyZi10b2tlbiIgY29udGVudD0iYjl1eFc3QW0xd0JCakEzdkpfUm5sd251amlQU093el9CNmUtd0pUQlQ5b2VjN0lMa25uTmY4VUZnR192aXFkaTloM2hmbldSVzlLVTJVVTEtVG9qZXciIC8+CiAgCgogIAo8L2hlYWQ+Cgo8Ym9keT4KPCEtLSBCRUdJTiBhcHAvdmlld3MvcmVwb3J0cy9zaW1wbGUuaHRtbC5lcmIgLS0+PHA+MTwvcD4KPHA+MjwvcD4KPHA+MzwvcD4KPHA+NDwvcD4KPHA+NTwvcD4KPHA+NjwvcD48IS0tIEVORCBhcHAvdmlld3MvcmVwb3J0cy9zaW1wbGUuaHRtbC5lcmIgLS0+CjwvYm9keT4KPC9odG1sPgo8IS0tIEVORCBhcHAvdmlld3MvbGF5b3V0cy9zaW1wbGUuaHRtbC5lcmIgLS0+"}, "type"=>"success"}
18363
+ [bidi2pdf] ✅ All network events completed.
18364
+ [bidi2pdf_rails] Network was idle after 0.0ms, 1 requests, transferred -1 bytes (status codes: 200: 1)
18365
+ [bidi2pdf_rails] Sending command: browsingContext.print id: #31
18366
+ [bidi2pdf_rails] Sending command: {:id=>31, :method=>"browsingContext.print", :params=>{:background=>true, :orientation=>"portrait", :scale=>1.0, :shrinkToFit=>false, :margin=>{:top=>2.5, :bottom=>2, :left=>2, :right=>2}, :page=>{:width=>21.0, :height=>29.7}, :context=>"B5D6901FE8A60076B4B7346758CC10CA"}} (0.1ms)
18367
+ [bidi2pdf] PDF generated successfully.
18368
+ [bidi2pdf_rails] Page printed: 143.7ms
18369
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #32
18370
+ [bidi2pdf_rails] Sending command: {:id=>32, :method=>"browsingContext.close", :params=>{:context=>"B5D6901FE8A60076B4B7346758CC10CA"}} (0.1ms)
18371
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"-1493159152755060139.-4074426498350834533"}
18372
+ [bidi2pdf] Browsing context closed: B5D6901FE8A60076B4B7346758CC10CA {"id"=>32, "result"=>{}, "type"=>"success"}
18373
+ [bidi2pdf] Closed tab: B5D6901FE8A60076B4B7346758CC10CA
18374
+ [bidi2pdf_rails] Sending command: browsingContext.close id: #33
18375
+ [bidi2pdf_rails] Sending command: {:id=>33, :method=>"browsingContext.close", :params=>{:context=>"30F5177988FEC4901CD11B5B64655847"}} (0.1ms)
18376
+ [bidi2pdf] Received event: script.realmDestroyed, params: {"realm"=>"-8891421783268349929.-1844371213794937785"}
18377
+ [bidi2pdf] Browsing context closed: 30F5177988FEC4901CD11B5B64655847 {"id"=>33, "result"=>{}, "type"=>"success"}
18378
+ [bidi2pdf_rails] Sending command: browser.removeUserContext id: #34
18379
+ [bidi2pdf_rails] Sending command: {:id=>34, :method=>"browser.removeUserContext", :params=>{:userContext=>"9297284E7C51B82FE4EEF623DF3BA69E"}} (0.1ms)
18380
+ [bidi2pdf] User context deleted: {}
18381
+ [bidi2pdf_rails] Page rendered and printed: 533.4ms
18382
+ Rendering text template
18383
+ Rendered text template (Duration: 0.1ms | GC: 0.0ms)
18384
+ Sent data inject-raw-css.pdf (0.4ms)
18385
+ Completed 200 OK in 546ms (Views: 534.1ms | GC: 8.6ms)
18386
+
18387
+
18388
+ Started GET "/favicon.ico" for 127.0.0.1 at 2025-04-22 16:05:49 +0200
18389
+
18390
+ ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
18391
+
18392
+ [bidi2pdf] websocket-native available; use enhance performance.
18393
+ [bidi2pdf] websocket-native available; use enhance performance.