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 Handling Errors in Node

Radha Bhambwani
Radha Bhambwani
10,182 Points

Getting error 404 instead of 200..

I'm not sure why but I'm getting error 404 instead of 200. and then a few seconds later I had this question pop up on the console:

"Display all 992 possibilities? (y or n)"

Iris Avalon
Iris Avalon
14,477 Points

For the "Display all 992 possibilities (y or n)" thing, that usually happens when you're trying to get the terminal to autocomplete file names for you. If you start typing a file name and then double-tap tab it will ask you if you want to display all possible files it thinks you might be trying to open. So it shouldn't have anything to do with your code. :)

As for your code, could you paste your code here for us to take a look at?

5 Answers

Hey Radha Bhachu & ryorke:

This is because your privacy settings don't allow public access to your profiles. Since curl is technically a logged out user, you won't be able to access your badge JSON from the terminal. For the purposes of the lesson, you may want to make your profile momentarily public or use someone else's badge data that is public, like Andrew's:

http://teamtreehouse.com/chalkers.json

Carry on! :zap:

Andrew Chalkley
STAFF
Andrew Chalkley
Treehouse Guest Teacher

If you visit http://teamtreehouse.com/ryorke.json it works...when you do a

curl http://teamtreehouse.com/ryorke.json it's not found...strange. I'm going to talk with devs...

I'm also getting a 404 error when using my account name. I've checked the link in a browser (with the .json extension) and it's displaying correctly there. It also confirms that I am using the correct url.

I've notified the support team of the issue.

In the meantime, If you use the author's id: "chalkers", you should instead get back a 200 response, and the exercises should work correctly.

Thank you both Andrew Chalkley and Kyle Meyer for investigating!

Sue Dough
Sue Dough
35,800 Points

I am getting 404 and I am not private.

Andrew Chalkley
Andrew Chalkley
Treehouse Guest Teacher

I curled your URL from your terminal and it returns your JSON. I am assuming there maybe an error in the code somewhere. Can you share a snapshot of your Workspace please?