Closed gbittmann closed 5 years ago
When a response like the above is received, line 180 of app.js throws because results
is null
;
Think Yahoo weather has changed it's query system. The app is sending a http request like the follow:
https://query.yahooapis.com/v1/public/yql?format=json&q=select%20*%20from%20weather.forecast%20where%20woeid=2459115
Might need to find a new api to query the weather from. I'd suggest http://api.openweathermap.org but the tutorial would need to be re-coded to fit their api and an appid would need to be acquired for the tutorial. They have a 5 day weather forecast api endpoint and their free plan allows up to 60 queries per minute which should fit the tutorial nicely. (for more info: http://openweathermap.org/price)
I was thinking there was something wrong with the examples, but then I checked the yahoo weather API calls and most of the time this is what you get obviously the created part changes. It works so infrequently it makes the example itself seem broken.