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 Building a Command Line Application Parsing JSON

Nathan Kim
Nathan Kim
3,837 Points

There is a syntax error about my code and I cannot figure it out. Help Appreciated!

There is an error in my code and I am not able to figure it out. Thank you.

https://w.trhou.se/g98ap6gtvp

Steven Parker
Steven Parker
231,236 Points

To make it possible for someone to help, either show your code here, or make a snapshot of your workspace and post the link to it here.

Providing a link to the course page involved would also be useful.

Nathan Kim
Nathan Kim
3,837 Points

This is the link to the code. Sorry for the inconvenience. https://w.trhou.se/g98ap6gtvp

1 Answer

Steven Parker
Steven Parker
231,236 Points

On line 18 there is a "console.log" statement, but nothing else in that handler to do anything with the data chunk.

Did you perhaps intend to have something there like "body += data;"?

Nathan Kim
Nathan Kim
3,837 Points

Thank you so much! That fixed the problem.