ioos / erddapy

Python interface for ERDDAP
https://ioos.github.io/erddapy/
BSD 3-Clause "New" or "Revised" License
77 stars 30 forks source link

Use lazy loading when response type is OPeNDAP #252

Closed vinisalazar closed 2 years ago

vinisalazar commented 2 years ago

Hi,

this closes #250.

Summary of changes

Please feel free to request any changes.

Thank you, Vini

vinisalazar commented 2 years ago

Not sure what went wrong with the Windows tests... Should we skip this for Windows and macOS like it's done with the iris tests? I'm also wondering why it worked on Py 3.10.

ocefpaf commented 2 years ago

The failures are happening b/c that ERDDAP server is too restrictive. I need to figure out a way to use VCR there, or change the server, or mock the test. For now, we can just re-start the test and get it working from a fresh GH VM (and new IP).

E   OSError: [Errno -78] NetCDF: Authorization failure: b'https://coastwatch.pfeg.noaa.gov/erddap/griddap/jplAquariusSSS3MonthV5'
src\netCDF4\_netCDF4.pyx:1925: OSError
---------------------------- Captured stderr call -----------------------------
syntax error, unexpected $end, expecting ';'
context: Error { code=403; message="Forbidden: Access Forbidden -- Your IP address is on this ERDDAP's request blacklist.Did you often submit more than one request at a time?Did you often submit identical requests in a short period of time?Did you submit a large number of invalid requests?If you are ready to avoid these problems, please email bob.simons@noaa.gov to request to be taken off of the blacklist.";}^