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 REST API Validation with Express The Importance of Data Validation Get Started with the Project

Absolutely baffled why I am getting Error: read ECONNRESET when trying a simple GET request

Long story short, I've already finished the FSJS Techdegree and before deploying my full stack app to Heroku / Netlify, I'm trying to get this project working locally on a new PC. For some reason, I cannot get the API running on this new computer. I've even gone back to the API validation course and when I try to make a simple GET request from the starter code, I am getting the Error: read ECONNRESET in the log in Postman. This is beyond frustrating because as mentioned, I had this working on an older computer. Google has not provided me much guidance on this as I know it isn't an issue with the code, but rather some sort of setting on my PC. Willing to provide any more information as necessary since I realize this is an awfully difficult issue to diagnose. Thanks so much.

1 Answer

Mark Westerweel
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Mark Westerweel
Full Stack JavaScript Techdegree Graduate 22,378 Points

Error: read ECONNRESET is a problem in Node.js. There seesm to be something wrong yout TCP connection setup.

Can you share a code snippet, or error stack trace?

The other day I found an interesting post (had issues with a deprecated MongoDB version)

https://stackoverflow.com/questions/17245881/how-do-i-debug-error-econnreset-in-node-js