WeatherLib icon indicating copy to clipboard operation
WeatherLib copied to clipboard

WeatherUndergroundProvider : org.json.JSONException: No value for hourly_forecast

Open ClementHard opened this issue 10 years ago • 0 comments

I have trouble getting Hour Forecast from WeatherUndergroundProvider. Here is the error :

Error getting forecast data
 com.survivingwithandroid.weather.lib.exception.WeatherLibException: org.json.JSONException: No value for hourly_forecast
 com.survivingwithandroid.weather.lib.provider.wunderground.WeatherUndergroundProvider.getHourForecastWeather(WeatherUndergroundProvider.java:329)
 com.survivingwithandroid.weather.lib.client.okhttp.WeatherDefaultClient$6.onResponse(WeatherDefaultClient.java:476)
 com.squareup.okhttp.Call$AsyncCall.execute(Call.java:162)
 com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33)
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
 java.lang.Thread.run(Thread.java:818)
Caused by: org.json.JSONException: No value for hourly_forecast
 org.json.JSONObject.get(JSONObject.java:389)
 org.json.JSONObject.getJSONArray(JSONObject.java:584)
 com.survivingwithandroid.weather.lib.provider.wunderground.WeatherUndergroundProvider.getHourForecastWeather(WeatherUndergroundProvider.java:290)
 com.survivingwithandroid.weather.lib.client.okhttp.WeatherDefaultClient$6.onResponse(WeatherDefaultClient.java:476) 
 com.squareup.okhttp.Call$AsyncCall.execute(Call.java:162) 
 com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33) 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
 java.lang.Thread.run(Thread.java:818) 

ClementHard avatar Oct 19 '15 22:10 ClementHard