I'm currently struggling to use the AppEEARS API, following the 'Getting started with the AρρEEARS API' tutorial (in python) . Querying available products and layers works fine, but when I try to get a request token, I get a 504 server error. I tried generating a request token on my Earthdata Login page , but when I use this token in a task request, I get the message: 'You don't have the permission to access the requested resource. It is either read-protected or not readable by the server.'
Any ideas what might be causing these issues and how to get around them?
Thanks a lot!
 https://urs.earthdata.nasa.gov/home > Generate Token
The token generated from the AppEEARS API to 'login' is separate from the tokens generated from the Earthdata Login. Here are a couple things to consider. First, if you ran your request on Wednesday, you may have bumped into the LP DAAC's planned maintenance window. If that's the case, please try again and see if it works. Second, if it's still not working please verify that you are using the proper endpoint, i.e., https://lpdaacsvc.cr.usgs.gov/appeears/api/login. For a quick verification try the following from the command line/terminal:
Code: Select all
curl -v --request POST --user <username>:<password> --header "Content-Length: 0" "https://lpdaacsvc.cr.usgs.gov/appeears/api/login"
If your problem persists please reach out to LP DAAC User Services (https://lpdaac.usgs.gov/user_services/contact_us) and we can try to set up a call to troubleshoot.