jpillora / jpillora/node-edit-google-spreadsheet

error send data

Open
#96 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
301
Forks
98
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the updateData function shown in the issue and trace the spreadsheet.send call that reports ECONNRESET and "socket hang up." Reproduce the send operation if possible, then determine whether the error can be handled or explained; done requires a verified diagnosis and a corresponding fix or documented resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.