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 Getting the Response Body

weylin wagnon
weylin wagnon
2,857 Points

I keep seeing the message "BODY: not found" i have fixed the https issue, but it still doesnt work

if i console.log( "body", chunk) i see "body <buffer....>"

but when I concatenate console.log("body" + chunk) it returns "body not found"

please help

Kevin Faust
Kevin Faust
15,353 Points

can you post your entire code?

1 Answer

weylin wagnon
weylin wagnon
2,857 Points

i fixed it, it was a username error, I had a space in between my first and last name

Kevin Faust
Kevin Faust
15,353 Points

oh ok. it was just that from the context of your small code snippet in your question above, it was hard to identify what the problem was