Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Build a Simple Dynamic Site with Node.js Creating a Simple Server in Node.js Preparing & Planning

Maria Campbell
Maria Campbell
8,641 Points

In the stage 1 video 3 of 'build a dynamic site with node.js', example_profile.js throws an error in the terminal.

In the stage 1 video 3 of 'build a dynamic site with node.js', example_profile.js throws an error in the terminal. Here, as in node.js-basics, there is reference to http in profile.js, and treehouse is no longer on http server but https. Is this why the error has been thrown? And did Treehouse forget that this course also needs modifications to it?

2 Answers

Ernesto Emmanuel Gutierrez Muñoz
Ernesto Emmanuel Gutierrez Muñoz
13,520 Points

Yes you're right i have same problems with last exercises First you have to change the http to https in profile.js var https = require("https");

and also the url in the get method like this "https://teamtreehouse.com/"

i hope i help you

Thank you Ernesto!