Skip to content
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

Not able to close window after hanging #288

Open
QMetrics opened this issue Feb 22, 2024 · 0 comments
Open

Not able to close window after hanging #288

QMetrics opened this issue Feb 22, 2024 · 0 comments

Comments

@QMetrics
Copy link

QMetrics commented Feb 22, 2024

All,

I have the following issue. Hopefully, someone can help me with this. After hanging on a website for some minutes, I get the following error message:

_Error in .Call(R_curl_fetch_memory, enc2utf8(url), handle, nonblocking) :
reached elapsed time limit

After applying an error handler, I want to close the current window and start a new webdriver. Unfortunately, I can't find a way to close this window because the operation was aborted because of an application callback. I suspect that the connection is reset. I have attempted the following ways to close the window, but nothing helps:
remDr$close()
remDr$quit()
remDr$closeWindow()
remDr$closeall()

I get a message that no connection could be made to server

Since the website I am scraping hangs quite often. After a while, tens of windows are open, which slows down everything.

Every help is appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant