gdal icon indicating copy to clipboard operation
gdal copied to clipboard

/vsicurl/: Read(): emit error message when receiving HTTP 416 Range Not Satisfiable error

Open rouault opened this issue 1 year ago • 1 comments

will now get:

$ gdalinfo /vsicurl/https://erddap.emodnet.eu/erddap/files/biology_6640_benthos_NorthSea_e4af_0f0e_6a73/04_2021_6640_diva_benthos_erddap.nc
ERROR 1: 416: Range downloading not supported by this server: Error {
    code=416;
    message="Requested Range Not Satisfiable: REQUESTED_RANGE_NOT_SATISFIABLE: Don't try to connect to .nc or .hdf files on ERDDAP's /files/ system as if they were local files. It is horribly inefficient and often causes other problems. Instead: a) Use (OPeN)DAP client software to connect to ERDDAP's DAP services for this dataset (which have /griddap/ or /tabledap/ in the URL). That's what DAP is for. b) Or, use the dataset's Data Access Form to request a subset of data. c) Or, if you need the entire file or repeated access over a long period of time, use curl, wget, or your browser to download the entire file, then access the data from your local copy of the file.";
}

gdalinfo failed - unable to open '/vsicurl/https://erddap.emodnet.eu/erddap/files/biology_6640_benthos_NorthSea_e4af_0f0e_6a73/04_2021_6640_diva_benthos_erddap.nc'.

rouault avatar Feb 18 '24 18:02 rouault

Coverage Status

coverage: 68.801%. remained the same when pulling 877fc71bfad3a44b0ddfbff79044f7ee2ea319d9 on rouault:vsicurl_416 into 32f73d7bad039d1d10d9bc6db77c52a429ad6472 on OSGeo:master.

coveralls avatar Feb 18 '24 19:02 coveralls