Skip to content

[SSL: CERTIFICATE_VERIFY_FAILED] #5

@franfurey

Description

@franfurey

Hi team! I try to use your API, but its failling i dont know why, could some one help me?

To my co-worker its working fine the same code.

I recieve this error:

New Script Run
About to process scripted job item now.
New Job Submitted to the Server: New JobID: d507ab41-1ccc-49cd-a55a-2cbd4612d5e1
<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)>
get_JobProgressValue_FromResponse: Something went wrong..Generic Catch All Error. 'NoneType' object is not subscriptable
Current Job Progress: -1. JobID: d507ab41-1ccc-49cd-a55a-2cbd4612d5e1
Result of Job Status Cycle: error_generic
Job, d507ab41-1ccc-49cd-a55a-2cbd4612d5e1 is done, did it succeed? : False
ERROR. There was an error with this job.
(The error may have been caused by an error on the server.)
Double check the parameters you set and try again. If the error persists, please contact the ClimateSERV Staff and be sure to send the parameters you used. Thank you!
ERROR. There was an error with this job.
(The error may have been caused by an error on the server.)
Double check the parameters you set and try again. If the error persists, please contact the ClimateSERV Staff and be sure to send the parameters you used. Thank you!

I was thinking ok, it is related with the SSL certificate but then i run this code:

`import requests

def test_ssl_certificates():
"""Test SSL certificates by making an HTTPS request."""
test_url = 'https://www.google.com' # A simple test URL
try:
response = requests.get(test_url)
print(f"Success: Response code {response.status_code}")
except requests.exceptions.SSLError as e:
print(f"SSL Error: {e}")
except Exception as e:
print(f"Error: {e}")

if name == "main":
test_ssl_certificates()`

And i get a: Success: Response code 200. 

Any body know why could be happening? Im using MAC and a python version of 3.9.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions