title: Failed to load resource: net::ERR_CONNECTION_REFUSED on NodeJs ,AngularJs Web Application
body: <p>when i run my web application i get this error.this was happened suddenly.my application is MEAN stack appllication whicj has a end to end connection through APIs.</p>
  
  <pre><code>Error: Can't set headers after they are sent.
  at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:344:11)
  at ServerResponse.res.set.res.header (D:
  </code></pre>
  
  <p>this is an API that is being exposed.</p>
  
  <pre><code>app.post('/api/filesReadUpload', function(req, res) {
  
      var eventReadUpload=new filesReadUpload({
        //id:req.body.id,
          dat:req.body.dat,
          details:req.body.details,
          tim:req.body.tim,
        //  space:req.body.space
  
      });
  
      eventReadUpload.save(function(err) {
        if (err)
            res.send(err);
  
        res.json({ message: 'Read file!' });
  });
          });
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/pqzsh.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pqzsh.jpg" alt="enter image description here"></a></p>
  
  <p>can anyone support with this.if this information is not enough please inform me.</p>
  
  <p>Thanks</p>