Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3349028
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:36:52+00:00 2026-05-18T01:36:52+00:00

A lot of my node.js processes are crashing with the ECONNRESET error. Here’s the

  • 0

A lot of my node.js processes are crashing with the ECONNRESET error. Here’s the output I can see:

node.js:50
    throw e;
    ^
Error: ECONNRESET, Connection reset by peer
    at Client._readImpl (net:320:14)
    at IOWatcher.callback (net:470:24)
    at node.js:607:9

Does anyone know how to handle this? It’s not a very useful stack trace so I have no idea where it’s happening. Should I just wrap any and all access to a remote source via http with a try/catch block? Or is there a better way?

In general I don’t care if this does happen or if some task does not get completed because of this. What I do care about is that the process should just shrug it off and work on the next task.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T01:36:53+00:00Added an answer on May 18, 2026 at 1:36 am

    You need to attach to the error Event for your socket. If you don’t, then the default action is to throw an exception when an error occurs.

    socket.on('error', function (exc) {
        sys.log("ignoring exception: " + exc);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I see a lot of potential of doing Node.JS-like development on the JVM, with
I see a lot of Node.js modules out there that sends mail through SMTP.
I see a lot of use next in node.js. What is it, where does
I've been getting a lot of strange error message lately, and now I can't
I stumbled over node.js sometime ago and like it a lot. But soon I
Is Lua event-based or thread-based? I've been reading a lot about Node.js lately, and
There have been a lot of other posts related to this but I can't
I'm writing an application which processes a lot of xml files (>1000) with deep
I have heard a lot about Node . Recently Microsoft released a driver for
I saw a lot of examples of nowjs that uses a node.js server and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.