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

getLandsat_records fails to connect to server (HTTP 500) #104

Closed
rphamer opened this issue Jun 13, 2022 · 1 comment
Closed

getLandsat_records fails to connect to server (HTTP 500) #104

rphamer opened this issue Jun 13, 2022 · 1 comment

Comments

@rphamer
Copy link

rphamer commented Jun 13, 2022

Thanks so much for this package, it's incredibly useful!

Unfortunately, I am having problems downloading Landsat data (Sentinel is working fine). I can log-in successfully with my USGS account, but when I try to access records I get the following error: "Error in .post(url = paste0(getOption("gSD.api")$ee, "scene-search?"), : Internal Server Error (HTTP 500). Failed to connect to server.."

Code below

library(getSpatialData)

# login
login_USGS(name, pword)

# session settings
set_archive("./01_Spatial_data/LANDSAT/")
set_aoi(aoi_data[[2]])

# query landsat records
records <- get_records(time_range = c("2018-05-15", "2018-05-25"), 
                       products = "LANDSAT_8_C1") 

In case relevant/helpful:

  • when I check services() USGS EarthExplorer is listed as 'unknown' and 'NA', while all other servers are listed as 'available' and 'Connection successfully established'.
* ESA Copernicus Open Hub:  'available'     'Connection successfully established.'
* ESA Copernicus S5P Hub:   'available'     'Connection successfully established.'
* ESA Copernicus GNSS Hub:  'available'     'Connection successfully established.'
* USGS-EROS ESPA:           'available'     'Connection successfully established.'
* USGS EarthExplorer:       'unknown'       'NA'
* AWS Landsat 8:            'available'     'Connection successfully established.'
* NASA DAAC LAADS:          'available'     'Connection successfully established.'

Thanks so much for any help you can give

@rphamer
Copy link
Author

rphamer commented Jun 29, 2022

Answered my own question - getting the machine-to-machine access approved fixed my problem

@rphamer rphamer closed this as completed Jun 29, 2022
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