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

Byte range support fails on noaa-goes16 S3 Bucket #2642

Closed
dopplershift opened this issue Feb 28, 2023 · 2 comments
Closed

Byte range support fails on noaa-goes16 S3 Bucket #2642

dopplershift opened this issue Feb 28, 2023 · 2 comments
Assignees
Labels
Milestone

Comments

@dopplershift
Copy link
Member

As noted on conda-forge/libnetcdf-feedstock#166, the following URL https://noaa-goes16.s3.amazonaws.com/ABI-L1b-RadC/2017/059/03/OR_ABI-L1b-RadC-M3C13_G16_s20170590337505_e20170590340289_c20170590340316.nc#mode=bytes fails when trying to use ncdump -h or netcdf4-python's Dataset class with:

ncdump: https://noaa-goes16.s3.amazonaws.com/ABI-L1b-RadC/2017/059/03/OR_ABI-L1b-RadC-M3C13_G16_s20170590337505_e20170590340289_c20170590340316.nc#mode=bytes: NetCDF: Malformed URL

Adjusting it to https://noaa-goes16.s3.us-east-1.amazonaws.com/ABI-L1b-RadC/2017/059/03/OR_ABI-L1b-RadC-M3C13_G16_s20170590337505_e20170590340289_c20170590340316.nc#mode=bytes fixes the problem, but this should not be necessary based on the AWS S3 docs on supported endpoints for the us-east-1 region.

I'll also note that the URL in question comes from netcdf-c's own tst_byterange.c:

struct TESTURLS {
int format; /* instance of NC_FORMATX_XXX */
const char* url;
} testurls[] = {
{NC_FORMAT_CLASSIC,"https://remotetest.unidata.ucar.edu/thredds/fileServer/testdata/2004050300_eta_211.nc#bytes"},
#ifdef USE_HDF5
{NC_FORMAT_NETCDF4,"https://noaa-goes16.s3.amazonaws.com/ABI-L1b-RadC/2017/059/03/OR_ABI-L1b-RadC-M3C13_G16_s20170590337505_e20170590340289_c20170590340316.nc#mode=bytes"},
#endif
{0,NULL}
};

Before any work is done to correct the URL parsing/checking, that test has to be investigated to identify why it's not already failing.

@DennisHeimbigner
Copy link
Collaborator

Fixed by PR #2649

@WardF WardF modified the milestones: 4.9.2, 4.9.3 May 16, 2023
@zklaus
Copy link

zklaus commented Jul 6, 2023

Should this and its sister issue #2643 be closed following #2649?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants