jpillora / jpillora/node-edit-google-spreadsheet
error send data
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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