read ECONNRESET ExpressJS and Amazon S3

Im using Knox S3 plugin in ExpressJS web application to display image uploaded in Amazon S3. When displaying the image, I sometimes have the error below. I don’t have idea on the error. What caused the error?

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: read ECONNRESET
    at errnoException (net.js:884:11)
    at TCP.onread (net.js:539:19)

This is how I render the image from Amazon S3:

var data="";
client.get(url).on('response', function(s3res) {
    s3res.setEncoding('binary');
    s3res.on('data', function(chunk){
        data += chunk;
    });
    s3res.on('end', function() {
        res.contentType('image/jpg');
        res.write(data, encoding='binary');
        res.end();
    });
}).end();

Read more here: Source link