web-ui icon indicating copy to clipboard operation
web-ui copied to clipboard

Error:Error using own browser

Open garfield5200 opened this issue 8 months ago • 2 comments

Thank you for your wonderful work! But when I use the Edge browser as the default browser to execute the program, it can normally open the Edge browser, but there is no operation on the page, and the terminal has such an error:

`ERROR [browser] Failed to start a new Chrome instance.: BrowserType.connect_over_cdp: connect ECONNREFUSED ::1:9222 Call log:

  • retrieving websocket url from http://localhost:9222

ERROR [browser] Failed to initialize Playwright browser: To start chrome in Debug mode, you need to close all existing Chrome instances and try again otherwise we can not connect to the instance. WARNING [browser] Page load failed, continuing...`

My .env file is as follows, ` CHROME_PATH="C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" CHROME_USER_DATA="C:\Users\lyc\AppData\Local\Microsoft\Edge\User Data" CHROME_DEBUGGING_PORT=9222

CHROME_DEBUGGING_HOST=localhost

CHROME_PERSISTENT_SESSION=false `

So what should I do to make the edge browser or Baidu browser as the default browser? This is very important for Chinese researchers. Thank you again!

garfield5200 avatar Mar 20 '25 09:03 garfield5200

I found that this error seems to be caused by the remote debugging mode. When I use the edge browser, it seems that it cannot enter the remote debugging mode. But if I input a command in the terminal first, then the edge will into remote debugging mode, and the program will run normally. "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --remote-debugging-port=9222 --user-data-dir="C:\EdgeDebug" --no-first-run --disable-gpu So how to make edge automatically enter remote debugging mode? My question is similar to question #409 .

garfield5200 avatar Mar 21 '25 03:03 garfield5200

To start chrome in Debug mode, you need to close all existing Chrome instances and try again otherwise we can not connect to the instance

Did you do this?

SmartManoj avatar Apr 09 '25 13:04 SmartManoj