chrome-php / chrome

Instrument headless chrome/chromium instances from PHP
MIT License
2.25k stars 276 forks source link

Persistent Browser Connection Issue: Stalling at chrome-php/Browser.php:84 #608

Closed gregsparrow closed 7 months ago

gregsparrow commented 7 months ago

I have an issue with a persistent browser. Initially, the browser starts successfully, and then the PDF is generated successfully. However, the next time I try to connect to the existing browser, it connects but does not progress beyond this point in the code: chrome-php/chrome/src/Browser.php:84

Browser Factory: connecting using ws://127.0.0.1:39777/devtools/browser/4497c4c8-529c-4f27-aeca-2405b55ce148
socket(1): connecting
socket(1): ✓ connected
socket(1): → sending data:{"id":1,"method":"Target.setDiscoverTargets","params":{"discover":true}}
socket(1): ← receiving data:{"id":1,"result":{}}