Git Product home page Git Product logo

Comments (3)

mroberge avatar mroberge commented on June 1, 2024

Hi @mrranck !
Thank you for filing this issue.

I tried :

test = hf.NWIS(['03352988'], 'iv', start_date='2021-06-07', end_date='2021-07-08')

...and everything seemed to work as expected.

Looking at your error, it says that 'Max retries exceeded'... The NWIS does not want to be bombarded with the same request over and over, so I've created a 'file' parameter for hf.NWIS that you can use to store your data after your first request and then use the stored values after that. It is also possible to set up a caching system in the background so you don't spam the NWIS with your requests.

However, you got an error from requests, not an error message from the USGS NWIS. ???

As far as the certificate issue goes... I don't know anything about that! I searched online and came up with this: https://stackoverflow.com/a/12864892/2600766

I don't know anything about Siphon, but I looked it up and it looks interesting. I didn't design my interface for hydrofunctions to manage sessions- I organized it around individual requests for data.

I'm sorry that I don't have any answers for you!

If you can describe the problem in more detail or explain some of the issues you raised, perhaps I can help you with a work around?

from hydrofunctions.

mrranck avatar mrranck commented on June 1, 2024

Thanks for the quick response! The reason the max retries were exceeded is that it kept trying again and again to access NWIS but failed to very certificate and and connect to the https at NWIS. What's in the stack overflow post would work:

requests.get('https://example.com', verify=False)

But I would need to know where to put that line.

from hydrofunctions.

mroberge avatar mroberge commented on June 1, 2024

from hydrofunctions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.