udacity/Sunshine-Version-2

Getting FileNotFoundException

Opened this issue · 0 comments

I am getting the following exception after granting the permission of accessing the Internet and as I click the "Refresh" in menu i get the following exception

java.io.FileNotFoundException: http://api.openweathermap.org/data/2.5/forecast/daily?q=94043&mode=json&units=metric&cnt=7&APPID=yourApiKey
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:238)
at com.example.tarunkukreja.weather.ForecastFragment$FetchWeatherTask.doInBackground(ForecastFragment.java:126)
at com.example.tarunkukreja.weather.ForecastFragment$FetchWeatherTask.doInBackground(ForecastFragment.java:97)
at android.os.AsyncTask$2.call(AsyncTask.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)