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

[SSL: CERTIFICATE_VERIFY_FAILED] #5

Open
franfurey opened this issue Jan 6, 2024 · 0 comments
Open

[SSL: CERTIFICATE_VERIFY_FAILED] #5

franfurey opened this issue Jan 6, 2024 · 0 comments

Comments

@franfurey
Copy link

franfurey commented Jan 6, 2024

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.
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