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 Perfection Suggestions

Jason Williams
Jason Williams
6,691 Points

HELP ALERT :( Server displays There was an error getting the profile for chalkers. (Moved Permanently)

I have spent several days on this module. I have experienced many issues with 1. The syntax in the node documentation seeming to have changed somewhat and 2. The server having issues retrieving data and displaying it intermittently. I have re watched the videos and cross referenced my coding against that from the final downloaded files. It makes no difference if I use my code or the final downloaded files from the course I end up with the same issue :

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

To note I am rebooting my server and secondly my localhost is set to the correct 3000 port as set in my code.

The page displays but I can't retrieve the data even with his code downloaded. Ive also changed my coding interface with no change.

Any advice would be gladly received. Also I note from the doc API new and updated syntax , would this grossly affect things e.g const declaration.

1 Answer

Jason Williams
Jason Williams
6,691 Points

Seth Kroger many thanks for your swift and helpful reply. Ive pulled my hair out over this so its much appreciated thank you.