getSpatialData
getSpatialData copied to clipboard
getSentinel_data() generates HTTP 404 error
This code:
getSentinel_data(records)
results in this error:
Column 'download_available' not present, calling check_availabilty() to check download availability of records... Error in .get(paste0(cred[3], "/odata/v1/Products('", x, "')/", field), : Not Found (HTTP 404). Failed to process request.
It also appears to have happened to @egrabska on a webinar this morning, where she reports this as happening in the last few days, possibly due to a change at the ESA end?:
https://youtu.be/k1K6nqgtRL8?t=1030
I'm happy to provide more details (code etc.) if this is not obvious where the problem lies.
I have loaded my code to github as a repo and script here. It can be run up to line 112 without error (though your own passwords are required, which i have stored as variables for myself).
I am experiencing a similar problem. get_records(..., products = c("Sentinel-1", "Sentinel-2"), ...) returns the following error;
"Error in .get(url = cop.url(ext.xy = aoi, url.root = cred[3], product_name = product_name, : Internal Server Error (HTTP 500). Failed to process request."
@ckukunda , I think your issue is different, as you are trying to get records, whereas I am getting data. I have had no trouble getting records. Perhaps log a separate issue with more explicit code?
I am having the same issue of 1) I can get records and 2) and I cannot download using get data, same error I attempted to download using wget instead of R and getSpatialData package and it works, so it doesn't look like it's Sentinel server issue
My error:
Column 'download_available' not present, calling check_availabilty() to check download availability of records... Error in .get(paste0(cred[3], "/odata/v1/Products('", x, "')/", field), : Not Found (HTTP 404). Failed to process request.
Is the problem as simple as a change in the directory/path format in the paste0()? If so, it might not be that difficult to fix with a pull request, though I'm not sure myself how to work out what the new correct path is?
I managed to solve this problem in parts. I added records$download_available<-T but the check after the download was very slow.
I have the same issue, also with the example given on the main page of this repo. On windows I get a path error when I use: records$download_available<-T as solution. On Ubuntu the solution works.
Additionally, due to the dependency on check_availability(), order_data() from LTA does not work.
I am having similar problem:
getSentinel_data(records = records_filtered[1,],dir_out=outdir_raw)
Column 'download_available' not present, calling check_availabilty() to check download availability of records...
Error in .get(paste0(cred[3], "/odata/v1/Products('", x, "')/", field), :
Not Found (HTTP 404). Failed to process request.
I have no problem downloading the records. It was working fine even a week back!
The interesting thing is when I try wget on the url with userid and password in terminal, it gives me `401 Unauthorized' error. Have you faced a similar issue?
@markbneal I have tried the script you provided and I can not get passed
view_aoi()
get_aoi()
That is after setting the aoi. Could you try and let me know. Thanks.