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 Build a Simple Dynamic Site with Node.js HTTP Methods and Headers Sending Content Type Headers in Node.js

There was an error getting the profile for chalkers. (Unauthorized)

Unfortunately, I couldn't see the application working as intended because the request for the JSON of the users returns an Unauthorized error.

1 Answer

Steven Parker
Steven Parker
230,248 Points

As I pointed out in the answer to another recent question, it seems the site has been reoganized since the video.

Instead of something like https://teamtreehouse.com/${username}.json to get user data, try https://teamtreehouse.com/profiles/${username}.json instead.

matt duBurg
matt duBurg
5,712 Points

Thank you!!! I have been struggling with this for weeks.