Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJonathan Ambriz
Courses Plus Student 3,902 PointsWas getting unhandled error event.
When following the instructions, I first got the following error:
events.js:183
throw er; // Unhandled 'error' event
^
Error: getaddrinfo ENOTFOUND api_wunderground.com api_wunderground.co
m:443
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
I corrected the URL for the API, and now get no errors, but it doesn't output the same string as the video. Instead, it just runs the code and opens another cursor. How would you troubleshoot this?
Here's the snapshot: http://w.trhou.se/qhnd5qucat
1 Answer
Steven Parker
231,236 PointsAs mentioned in the Teacher's Notes section of the Project Overview page (and these previous postings from 2018 and 2019), Weather Underground no longer offers free API keys.
The same note suggests using OpenWeatherMap instead.