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 trial

JavaScript Node.js Basics 2017 Handling Errors in Node Handling Parsing and Status Code Errors

Justin Gaskin
Justin Gaskin
3,583 Points

The question is asking for https.get, but the answer asks for http.

This module is confusing.

1 Answer

Steven Parker
Steven Parker
231,269 Points

The quiz feedback message you're seeing is incorrect.

The actual response of the code shown (assuming the "https" module had been loaded) would be the error message about the connection, but not because of the "http:" — it's due to the URL having "wwwteamtreehouse" with no period after the "www" part.

You might want to report this as a bug using the method described on the Support page.