-
Notifications
You must be signed in to change notification settings - Fork 15
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
[BUG] Humidity value must be in [0, 100] range error #59
Comments
Hello @boblepepeur . Do you have information on what value is passed to that method? |
Hey hey Prominence, just a gps position, nothing more |
The exceptoin is here -> openweathermap-java-api/src/main/java/com/github/prominence/openweathermap/api/model/Humidity.java Line 53 in 249ee09
I just make the call with rest api, it appear that openweather call sometimes set 101 in humidity I recommend to fix it by include 101 in the if at ligne 52 or include all value over 100 = 100 |
Strange behavior. 101 percent? I'll recheck their documentation. |
@boblepepeur Hello. Do you have exact request parameters for this issue? Or maybe full response logs? |
Their support said that it is not a normal response. It must be from 0 to 100%. So, if it is possible, can you share detailed information that I asked above? |
@Prominence Hello, i just did this call when its a rainy forecast -> https://api.openweathermap.org/data/3.0/onecall?lat=46.2368511111&lon=6.7914966667&appid=? |
OWM support answer:
|
Sometimes, when its raining, calling the free & onecall api cause an exception
The text was updated successfully, but these errors were encountered: