Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error send data #96

Open
s00d opened this issue Aug 4, 2016 · 0 comments
Open

error send data #96

s00d opened this issue Aug 4, 2016 · 0 comments

Comments

@s00d
Copy link

s00d commented Aug 4, 2016

Hi, all. I have error message "Error: socket hang up"

{ Error: socket hang up
at createHangUpError (_http_client.js:252:15)
at TLSSocket.socketOnEnd (_http_client.js:344:23)
at emitNone (events.js:91:20)
at TLSSocket.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:975:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickDomainCallback (internal/process/next_tick.js:122:9) code: 'ECONNRESET' }

my send function

exports.updateData = function(spreadsheet, data, autoSize, callback) {
    spreadsheet.add(data);
    spreadsheet.send({ autoSize: autoSize }, function(err) {
        if(err) {
            return callback(err);
        }
        console.log('update', data);
        callback(null, spreadsheet, data);
    });
};

Thanks to all who help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant