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

[websocket] ERROR: [Errno 111] Connection refused - goodbye #210

Open
jfzlma opened this issue Dec 10, 2024 · 1 comment
Open

[websocket] ERROR: [Errno 111] Connection refused - goodbye #210

jfzlma opened this issue Dec 10, 2024 · 1 comment

Comments

@jfzlma
Copy link

jfzlma commented Dec 10, 2024

I am encountering the following error message when calling: driver.google_get("https://daftar-hitam.inaproc.id/", bypass_cloudflare=True)

code:
I am using botasaurus with Scrapy and running the crawler in Scrapyd. Below is the relevant code snippet:

from botasaurus.browser import browser, Driver
from pyvirtualdisplay import Display
display = Display(visible=1, size=(1920, 1080), backend="xvfb")
display.start()
driver = Driver()
driver.google_get("https://daftar-hitam.inaproc.id/", bypass_cloudflare=True)
cookies = driver.get_cookies()

I also tried using the @browser decorator, but I still get the same response.

Here is the error log I receive:

2024-12-10 05:43:53 [websocket] INFO: Websocket connected
2024-12-10 05:43:54 [websocket] ERROR: Connection to remote host was lost. - goodbye
2024-12-10 05:43:54 [websocket] ERROR: [Errno 111] Connection refused - goodbye
2024-12-10 05:43:54 [websocket] ERROR: [Errno 111] Connection refused - goodbye
2024-12-10 05:43:54 [websocket] ERROR: [Errno 111] Connection refused - goodbye
2024-12-10 05:43:54 [websocket] ERROR: [Errno 111] Connection refused - goodbye
@sonupandey228
Copy link

I am also getting same error. Tried to run in WSL environment.
image

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

2 participants