-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Sometimes, when its raining, calling the free & onecall api cause an exception
CurrentWeatherData forecast = this.owm
.oneCall3()
.current()
.byCoordinate(Coordinate.of(position.lat, position.lng))
.unitSystem(UnitSystem.METRIC)
.exclude(OneCallResultOptions.DAILY, OneCallResultOptions.MINUTELY, OneCallResultOptions.ALERTS)
.retrieve()
.asJava();
at com.github.prominence.openweathermap.api.request.forecast.free.FiveDayThreeHourStepForecastRequestTerminator$asJava.call(Unknown Source)
2025-02-13T05:29:41.432961206Z stderr F at com.github.prominence.openweathermap.api.request.forecast.free.FiveDayThreeHourStepForecastRequestTerminator.asJava(FiveDayThreeHourStepForecastRequestTerminator.java:47)
2025-02-13T05:29:41.43295702Z stderr F at com.github.prominence.openweathermap.api.mapper.FiveDayThreeHourStepForecastResponseMapper.mapToForecast(FiveDayThreeHourStepForecastResponseMapper.java:112)
2025-02-13T05:29:41.432953116Z stderr F at com.github.prominence.openweathermap.api.mapper.FiveDayThreeHourStepForecastResponseMapper.mapToForecast(FiveDayThreeHourStepForecastResponseMapper.java:127)
2025-02-13T05:29:41.432949039Z stderr F at java.lang.Iterable.forEach(Iterable.java:75)
2025-02-13T05:29:41.432944624Z stderr F at com.github.prominence.openweathermap.api.mapper.FiveDayThreeHourStepForecastResponseMapper.lambda$mapToForecast$0(FiveDayThreeHourStepForecastResponseMapper.java:127)
2025-02-13T05:29:41.432933149Z stderr F at com.github.prominence.openweathermap.api.mapper.FiveDayThreeHourStepForecastResponseMapper.parseWeatherForecast(FiveDayThreeHourStepForecastResponseMapper.java:145)
2025-02-13T05:29:41.432927668Z stderr F at com.github.prominence.openweathermap.api.mapper.FiveDayThreeHourStepForecastResponseMapper.parseHumidity(FiveDayThreeHourStepForecastResponseMapper.java:212)
2025-02-13T05:29:41.432903262Z stderr F at com.github.prominence.openweathermap.api.model.Humidity.withValue(Humidity.java:53)
2025-02-13T05:29:41.432470066Z stderr F java.lang.IllegalArgumentException: Humidity value must be in [0, 100] range.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working