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 (2014) Building a Command Line Application Making a GET Request with http

Aurora Ruggieri
Aurora Ruggieri
4,361 Points

Problem with output

The output is different from the teacher, but the code is the same. Where is the mistake?

My output is : socket: [Object], incoming: [Circular], outgoing: [Circular], maxHeaderPairs: 2000 etc.

https://w.trhou.se/658s36ocyy

2 Answers

Steven Parker
Steven Parker
231,269 Points

:point_right: The video example shows a successful return, you are seeing an unsuccessful one.

The results you see are data items associated with a "not found" return status. This is because there is (currently) no Treehouse user with the username "aurora".

If you want to see the results from looking up your own information, set the username to "auroraruggieri" instead.

Aurora Ruggieri
Aurora Ruggieri
4,361 Points

Hello Steven, thanks so much for the tip, I believed that my username was aurora, it is now fully functional.

Have a good day!!