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 Handling Routes in Node.js Populating User Information

Samuel Kleos
seal-mask
.a{fill-rule:evenodd;}techdegree
Samuel Kleos
Front End Web Development Techdegree Student 13,307 Points

There was an error getting the profile for Chalkers (Found)

Here is the snapshot: https://w.trhou.se/ql4u0uxdej

This error happens when I request the url treehouse-app.com/chalkers or modify the home url to the chalkers path.

Feel free to load the profile JSON: https://teamtreehouse.com/profiles/chalkers.json

2 Answers

Samuel Kleos
seal-mask
.a{fill-rule:evenodd;}techdegree
Samuel Kleos
Front End Web Development Techdegree Student 13,307 Points

I just resolved this issue!

The API URL path has recently changed to include a /profiles before the username.

E.g:

https://teamtreehouse.com/profiles/chalkers.json

You just need to update the interpolation in the https.get method for the Profile class in profile.js and it works fine!

Steven Parker
Steven Parker
231,236 Points

There should be something in the Teacher's Notes to let folks know that the API has been changed to include that "profiles" part of the URL. Perhaps you'd like to make a suggestion to the Support folks. It might even get you a "special Exterminator badge". :beetle: