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!
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
Jeffrey Davidson26,147 Points
Nodejs Basics - Profile (Moved Permanately)
I'm trying to figure out with the my code why I would be getting the following error when I run node in the console.
There was an error getting the profile for jeffreydavidson. (Moved Permanently)
My profile json response works just fine.
Sean T. Unwin28,688 Points
//Replace var http = require("http"); // with var https = require("https");
-- Add an 's' to 'http'. Then update all references to the
http variable to
https. Such as in the
var request line.
As to the reason why, please see the Teacher's Notes for the lesson - Making a GET Request with http