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 Errors with try and catch

Launched new workspace. Didn't touch the code. get undefined:1 and Unexpected end of JSON input

treehouse:~/workspace$ node app.js chalkers                                      
chalkers has 209 total badge(s) and 5991 points in JavaScript                    
treehouse:~/workspace$ node app.js chalkers-not                                  
undefined:1                                                                      
Not found  

SyntaxError: Unexpected token N in JSON at position 0                            
    at JSON.parse (<anonymous>)                                                  
    at IncomingMessage.response.on (/home/treehouse/workspace/app.js:25:52)      
    at emitNone (events.js:111:20)                                               
    at IncomingMessage.emit (events.js:208:7)                                    
    at endReadableNT (_stream_readable.js:1064:12)                               
    at _combinedTickCallback (internal/process/next_tick.js:139:11)              
    at process._tickCallback (internal/process/next_tick.js:181:9)    

Is this fixable?

Have the exact same error! Sorry I am of no help but hopefully someone can answer soon!