APPEEARS API SSL ERROR
APPEEARS API SSL ERROR
Hello.
When working with Appeears API directly, I constantly receive :
SSLError: HTTPSConnectionPool(host='appeears.earthdatacloud.nasa.gov', port=443): Max retries exceeded with url: /api/task (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1122)')))
Is there any similar experience?
Regards
When working with Appeears API directly, I constantly receive :
SSLError: HTTPSConnectionPool(host='appeears.earthdatacloud.nasa.gov', port=443): Max retries exceeded with url: /api/task (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1122)')))
Is there any similar experience?
Regards
Filters:
-
- Subject Matter Expert
- Posts: 4
- Joined: Thu Apr 02, 2020 1:15 pm America/New_York
Re: APPEEARS API SSL ERROR
The issue you have experienced is an SSLError from the HTTP client you are using, which seems to be Python's requests package. It appears that your system does not trust our server, even though it has a valid TLS certificate (issued by the certificate authority 'Amazon Root CA 1').
It's possible that when making these HTTP calls, you are using a system or network with a firewall/proxy that does not trust the AppEEARS certificate issuer.
As a troubleshooting step, you can try pointing to a specific CA bundle file that includes 'Amazon Root CA 1' as a trusted authority. Our developer team recommends following these steps to troubleshoot the error:
1- Download the most updated version of cacert.pem from https://curl.se/docs/caextract.html and save it locally on your system.
2 - Make a direct call to the AppEEARS Product API using the code below to test this solution. Replace the placeholder with the absolute path to the .pem file you stored locally.
If you receive <Response [200]>, you can add to your code to successfully call the AppEEARS API. Alternatively, you can incorporate the CA bundle into your system's CA trust store. If you have access to an IT department, they will be able to assist you. You can refer to the instructions I found here: https://www.keytos.io/docs/azure-pki/learning-about-pki/how-to-trust-a-root-ca-in-windows-and-mac
If you continue to encounter issues when working with the AppEEARS API, please do not hesitate to reach out.
It's possible that when making these HTTP calls, you are using a system or network with a firewall/proxy that does not trust the AppEEARS certificate issuer.
As a troubleshooting step, you can try pointing to a specific CA bundle file that includes 'Amazon Root CA 1' as a trusted authority. Our developer team recommends following these steps to troubleshoot the error:
1- Download the most updated version of cacert.pem from https://curl.se/docs/caextract.html and save it locally on your system.
2 - Make a direct call to the AppEEARS Product API using the code below to test this solution. Replace the placeholder with the absolute path to the .pem file you stored locally.
Code: Select all
import requests
ca_path = 'Insert/Your/Path/To/cacert-2024-11-26.pem'
url = 'https://appeears.earthdatacloud.nasa.gov/api/product'
response = requests.get(url, verify=ca_path)
print(response)
Code: Select all
verify=ca_path
If you continue to encounter issues when working with the AppEEARS API, please do not hesitate to reach out.
Re: APPEEARS API SSL ERROR
Thanks mahsa for your complete answer.
I followed your steps. But it seems now i am experiencing another issue.
there was no problem with product url (which you mentioned in your answer). I could request without even certify parameters. it was abit wierd to me. But that issue does not exist now.
But for the case authentication, i can not still authenticate using Appeears api. I receive 504 error.
I even tried to skip authentication step by simply copy paste the token (which we access from our account or via other tools like earthaccess). even in this case, i recieved this message :
"You don't have the permission to access the requested resource. It is either read-protected or not readable by the server."
Thanks again
I followed your steps. But it seems now i am experiencing another issue.
there was no problem with product url (which you mentioned in your answer). I could request without even certify parameters. it was abit wierd to me. But that issue does not exist now.
But for the case authentication, i can not still authenticate using Appeears api. I receive 504 error.
I even tried to skip authentication step by simply copy paste the token (which we access from our account or via other tools like earthaccess). even in this case, i recieved this message :
"You don't have the permission to access the requested resource. It is either read-protected or not readable by the server."
Thanks again
Re: APPEEARS API SSL ERROR
It seems my problem was with the username. It seems email is not allowed in Appeears same as EDL!
It is described here :
viewtopic.php?t=2670
Thanks again
It is described here :
viewtopic.php?t=2670
Thanks again