m0rp43us / openmeteopy

openmeteopy is a client Python wrapper library for Open-Meteo web API. It allows quick and easy consumption of OM data from Python applications via a simple object model and in a human-friendly fashion.
https://pypi.org/project/openmeteo-py/0.0.1/
MIT License
128 stars 29 forks source link

BaseException: Failed retrieving open-meteo data, server returned HTTP code: 414 on following URL .. #3

Closed jimoreira closed 1 year ago

jimoreira commented 1 year ago

congratulations for your work, really helping over here.

when using these in a for loop it fails with error 414 when the loop runs 34 times. the URL presented in the error shows a repetition of the variables requested in the URL provided. Perhaps 34, couldn't count them right.

so i wonder why OWmanager() that is using a different set of Options() is producing a url with repeted variables?

many thanks if you can provide some insights

br

jimoreira commented 1 year ago

Sorry. Solved. I was running daily = Daily() outside of the loop and then calling daily.all() inside of the loop. thanks!

m0rp43us commented 1 year ago

Appologies just found the open issue,glad you found the bug. good luck with the rest !