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 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!