- Más nuevo
- Más votos
- Más comentarios
The syn-python-selenium-1.0 runtime version by default launches browser with the --ignore-certificate-errors option set. The reason for the error might be a different error. It might help to log the response prior to the "if not response_code or response_code < 200 or response_code > 299" check
Perhaps your right, an AWS rep said it was due to the self signed cert. I'll try something else.
So this morning I created a new syn-python-selenium-1.0 canary and I picked a url with a valid 3party signed cert and it worked. Then I created a 2nd canary, with the same runtime with a self-signed cert and it failed. I have also tried to log the "response_code" but it says it's not set. And I'm presuming it's not set because it can't get past the cert to get a response code. User-3302110, how can you be certain that it launches with --ignore-certificate-errors? Thank you
ERROR: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)> ERROR: Canary execution exception. Traceback (most recent call last):
File "/var/task/index.py", line 76, in handle_canary
response = customer_canary.handler(event, context)
File "/opt/python/pageLoadBlueprint.py", line 26, in handler
return main()
File "/opt/python/pageLoadBlueprint.py", line 19, in main
if not response_code or response_code < 200 or response_code > 299: TypeError: '<' not supported between instances of 'str' and 'int'I am currently using syn-python-selenium-1.3 and I am having similar certificate issues as well. I even added the --ignore-certificates-errors argument and still no luck. Any updates or workaround for this issue yet?
What about 1.3? Does it also use --ignore-certificate-errors? I'm getting this error:
ERROR: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)>
I tried to use
from selenium.webdriver.chrome.options import Options
options = Options()
options.add_argument('--ignore-certificate-errors')
browser = syn_webdriver.Chrome(chrome_options=options)
but I'm still getting the error above.
I am getting the same error were you able to find a possible solution by any chance?
Contenido relevante
- OFICIAL DE AWSActualizada hace 4 meses
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace 2 años
Have you verified this hypothesis by changing the URL to a different HTTPS url?
In fact I did, originally the self signed cert url errored, while a 3rd part signed cert worked. But it's possible user-3302110 was right and I'll try some other things.