Describe the bug
Having issues with /get-sessions after a session is connected to via devtools using tracking_id. We can still connect and spin up new browser connections, but are unable to retrieve the active sessions list and thus cannot connect to devtools for that session. This process all seemed to work fine before we were trying to connect to devtools during sessions.
self.driver = webdriver.Remote( command_executor=settings.BROWSERLESS_URL, desired_capabilities=self.chrome_options.to_capabilities(), options=self.options )
/sessionsand find the URL for devtools for this session
/sessionsreturns the following error message:
request to http://127.0.0.1:36405/json/list failed, reason: connect ECONNREFUSED 127.0.0.1:36405
/sessions should go back to returning an empty list.
driver.quit()while using python selenium drivers.
I was able to clear whatever issue this is by calling
/kill/all. Not exactly ideal to do that, but may give some indication of where the issue is occuring.
Sure... our internal setup is a bit more complicated but i was able to replicate the issue through a terminal using only the code provided in the examples.
I was able to get it with the below sequence. Of course with my api token replaced. If there's other info you want lmk!
# Selenium 4 from selenium import webdriver chrome_options = webdriver.ChromeOptions() chrome_options.set_capability('browserless:token', 'YOUR-API-TOKEN') chrome_options.add_argument("--no-sandbox") chrome_options.add_argument("--headless") driver = webdriver.Remote( command_executor='https://chrome.browserless.io/webdriver', options=chrome_options ) driver.get("https://www.example.com") print(driver.title) driver.quit()
Then call the
api and it returns the error. I am using the dedicated hosted browserless with 1 medium instance.
This should be fixed now in #2718, going to close this out. We'll have production tags for the hosted service ready by mid-week next week!
Great to hear! Thanks @joelgriffith for the quick fix - this will make things much smoother for us.
|Issue Title||Created Date||Updated Date|