You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using selenium wire which requires certificate + key. I just followed https://docs.zyte.com/misc/ca.html for certificate creation but key is out of discussion.
According to this https://github.com/wkeeling/selenium-wire#using-your-own-certificate, selenium Wire sets it mandatory for my own certificates.
And now I'm getting 127.0.0.1:61202: Invalid certificate, closing connection. Pass --ssl-insecure to disable validation.
This issue when running
selenium-wire
in scrapy cloud is caused because of a call tosocket.setdefaulttimeout
insh_scrapy.crawl
.The related issue in
pyOpenSSL
pyca/pyopenssl#168The cause of the issue is this call
https://github.com/scrapinghub/scrapinghub-entrypoint-scrapy/blob/master/sh_scrapy/crawl.py#L27
A minimal example to reproduce the issue
Clone https://github.com/pawelmhm/quotesbot/tree/selenium
Working case
It should finish properly scraping 100 items and no errors
Now, update
settings.py
and add the following to the top of the fileThen rebuild and rerun the container
Now it should fail, scraping only 10 items and showing an error
net::ERR_SSL_PROTOCOL_ERROR
in the logsThe text was updated successfully, but these errors were encountered: