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

Error: connect ETIMEDOUT snapshot included.

https://w.trhou.se/11sba2yzdh

Error: connect ETIMEDOUT
at exports._errnoException (util.js:746:11)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1010:19)

Any thoughts at all are appreciated.

1 Answer

Stephen Layton
Stephen Layton
8,643 Points

It seems the request to teamtreehouse.com in profile.js is timing out. Maybe someone reversed the firewall rules, I don't seem to have any issues connecting to any other sites.

treehouse:~/workspace$ curl http://teamtreehouse.com/stephenlayton.json                                                                                                                   
curl: (7) Failed connect to teamtreehouse.com:80; Connection timed out  
treehouse:~/workspace$ curl http://google.com                                                                                                                                      
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">                                                                                                     
<TITLE>301 Moved</TITLE></HEAD><BODY>                                                                                                                                              
<H1>301 Moved</H1>                                                                                                                                                                 
The document has moved                                                                                                                                                             
<A HREF="http://www.google.com/">here</A>.                                                                                                                                         
</BODY></HTML>                                      

same here.it connects to google.But has issues connecting to teamtreehouse api. Have you tried running it from localhost ? brb, need more code red.