-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MacOS - Message: disconnected: not connected to DevTools (failed to check if window was closed: disconnected: not connected to DevTools) #357
Comments
Updated all packages and chrome - and error still presents |
Hi @miklyx , What are you using as the |
Hi! also, I run it directly from terminal. |
Hi @miklyx , You can try changing |
Hi! Done it. Result is - it starts to open search page at immoscout24. After some cycles it throws error again
|
I'm experiencing the same |
I have the same issue too |
@silasburger @taraskatsora1998 can you share more about your setup? What platform are you running on? Are you running inside docker? How much RAM is available to the processes? What browser (Chrome or Chromium) are you using and at what version? Do you have the latest code? |
Same issue here. |
Facing same issue. Is there solution for this? |
@arpitpaliwaldh the solution is collecting more data. Can you confirm what platform you're using? |
I'm facing the same issue and I've got a similar setup to @cibanez-teladoc. I encounter this issue as soon as it's trying to interact with the page i.e. it goes to the webpage OK but as soon as it tryings to type something it, it fails. Platform: macOS Ventura 13.4 (22F66) |
Yes i think the issue is with the latest chrome version and chrome driver not compatible. Downgraded chrome and chromedriver version on my machine now test is working. Platform: macOS Ventura 13.3 |
Hi! Actually - It's floating error. Sometimes it presents, sometimes process is working well for a couple of days. |
@miklyx Thanks for the info. Are you also running on Mac with Chrome? |
Following having same error :( |
@TomerLankri Please share your platform details to help us with the debugging |
1 similar comment
@TomerLankri Please share your platform details to help us with the debugging |
Platform: macOS Ventura 13.3.1 |
I'm running latest mac OS with latest chrome |
Just wanted to confirm that the Stacktrace is the same as above but was cut of and continues as the referenced issue #52
For now what works for me is a good old bash loop that automatically retries |
At fresh repo version and updated selenium and IMDBTraktSyncer I've got [2023/06/26 23:16:17|patcher.py |INFO ]: patching driver executable /Users/mrashkovskiy/Library/Application Support/undetected_chromedriver/undetected_chromedriver |
This is my pip list aiohttp 3.8.3 |
Hi @miklyx , Not sure what IMDBTraktSyncer has to do with it - that's not in the pipfile. Are you using |
If you're not using |
Sorry, with pipenv it still works. I'll write if it'll be an errors |
With pipenv - It worked yesterday all day and dropped today - kinda record! no falls in 24 hours. MacOs Ventura 13.4.1, Python 3.9.7, all other from pipenv. `[2023/06/28 10:30:29|immobilienscout.py |DEBUG ]: Got search URL https://www.immobilienscout24.de/Suche/de/berlin/berlin/wohnung-mieten?haspromotion=false&price=-1100.0&livingspace=50.0-&exclusioncriteria=projectlisting,swapflat&pricetype=rentpermonth&geocodes=110000000703,110000000101,110000000201,110000000102,110000000301,110000000202,110000000401,110000000105,110000000701&sorting=2&enteredFrom=result_list&pagenumber={0} [2023/06/28 10:30:29|init.py |INFO ]: ensuring close` |
Hello Guys, I am facing the same issue as yours, I am working under did u get any chance to fix this issue ? Thanks :) |
Hey guys. Same issue for M1 Pro Ventura 13.4.1 |
Hey Guys, |
Actually that works! No fails all the day |
Early I was delighted - it fell. But it worked for almost 2 days |
Hi Guys, After chrome browser updated to v115. I have faced same issue. my system config is: I'm able to execute it on my PC using "locust -f ./locust.py -u 1 -r 1 --headless" I'm facing Devtools error. |
Just ran into this issue, it seems that the argument |
@filipopo - Thanks for the report! Does that work for any of the other Mac OS users? (I only have Linux to test on here). |
I'm facing the same problem on a Linux server. It seems to be working when restarting the server but after a few cycles the problem reappears, I'll try removing the argument "--disable-gpu" and tell you if it works. |
Error still persists after a few hours of running right, "--disable-gpu" didn't seem to fix the issue for me. The error I'm getting is: These are my actual arguments: |
I have the same problem |
I've found a version that seems to work, I've been testing it for a couple of weeks. Try with Google Chrome for Testing 117.0.5938.62 and ChromeDriver 117.0.5938.62. These are my arguments: |
@A1exMiranda |
@A1exMiranda again facing the same issue with Google Chrome for Testing. |
@anees1221 @A1exMiranda I am facing the same issue did you able to fix it? |
@kothaaridarshi Unfortunately no. |
Mandatory XKCD: https://xkcd.com/2881 |
Try updating selenium too. The version I have is 4.12.0. ChromeDriver 119.0.6045.105 I really hope upgrading fixes your issues. |
same here |
same in win10 & chrome 124 & java 11 & selenium 4.19.1
|
Help- I need this not to happen. MacOS : Monterey M1 version 12.6 options.headless = True Error fetching page content: Message: disconnected: not connected to DevTools Stacktrace: |
HI!
Today I've got fresh repo update and latest chrome update.
And every 20 mins getting bot fail just after immoscout24 link
Traceback (most recent call last): File "/Users/kristina/Documents/python/flathunter_bot/flathunter/flathunt.py", line 118, in <module> main() File "/Users/kristina/Documents/python/flathunter_bot/flathunter/flathunt.py", line 114, in main launch_flat_hunt(config, heartbeat) File "/Users/kristina/Documents/python/flathunter_bot/flathunter/flathunt.py", line 45, in launch_flat_hunt hunter.hunt_flats() File "/Users/kristina/Documents/python/flathunter_bot/flathunter/flathunter/hunter.py", line 56, in hunt_flats for expose in processor_chain.process(self.crawl_for_exposes(max_pages)): File "/Users/kristina/Documents/python/flathunter_bot/flathunter/flathunter/hunter.py", line 35, in crawl_for_exposes return chain(*[try_crawl(searcher, url, max_pages) File "/Users/kristina/Documents/python/flathunter_bot/flathunter/flathunter/hunter.py", line 35, in <listcomp> return chain(*[try_crawl(searcher, url, max_pages) File "/Users/kristina/Documents/python/flathunter_bot/flathunter/flathunter/hunter.py", line 27, in try_crawl return searcher.crawl(url, max_pages) File "/Users/kristina/Documents/python/flathunter_bot/flathunter/flathunter/abstract_crawler.py", line 150, in crawl return self.get_results(url, max_pages) File "/Users/kristina/Documents/python/flathunter_bot/flathunter/flathunter/crawler/immobilienscout.py", line 90, in get_results soup = self.get_page(search_url, self.get_driver(), page_no) File "/Users/kristina/Documents/python/flathunter_bot/flathunter/flathunter/crawler/immobilienscout.py", line 175, in get_page return self.get_soup_from_url( File "/Users/kristina/.local/share/virtualenvs/flathunter-Ytmhlxpi/lib/python3.9/site-packages/backoff/_sync.py", line 105, in retry ret = target(*args, **kwargs) File "/Users/kristina/Documents/python/flathunter_bot/flathunter/flathunter/abstract_crawler.py", line 80, in get_soup_from_url driver.get(url) File "/Users/kristina/.local/share/virtualenvs/flathunter-Ytmhlxpi/lib/python3.9/site-packages/undetected_chromedriver/__init__.py", line 476, in get_wrapped if self.execute_script("return navigator.webdriver"): File "/Users/kristina/.local/share/virtualenvs/flathunter-Ytmhlxpi/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 500, in execute_script return self.execute(command, {"script": script, "args": converted_args})["value"] File "/Users/kristina/.local/share/virtualenvs/flathunter-Ytmhlxpi/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute self.error_handler.check_response(response) File "/Users/kristina/.local/share/virtualenvs/flathunter-Ytmhlxpi/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: disconnected: not connected to DevTools (failed to check if window was closed: disconnected: not connected to DevTools) (Session info: chrome=112.0.5615.49)
The text was updated successfully, but these errors were encountered: