Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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
218,528 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!!