Automattic / Automattic/cloudup-cli

Fix sporadic error

Open
#39 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
84
Forks
14
PR merge metrics
No merged PRs in 30d

Description

Happens occasionally...

```
Error: Offset is out of bounds
at Object.fs.readSync (fs.js:476:19)
at sync (/Users/nrajlich/cloudup-cli/node_modules/head/index.js:38:14)
at module.exports (/Users/nrajlich/cloudup-cli/node_modules/head/index.js:19:10)
at textual (/Users/nrajlich/cloudup-cli/bin/up:153:13)
at Socket.files.forEach.ind (/Users/nrajlich/cloudup-cli/bin/up:105:11)
at Socket.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:920:16
at process._tickCallback (node.js:415:13)
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading bin/up around lines 105 and 153, then inspect the head module at node_modules/head/index.js where the stack trace reaches fs.readSync. Reproduce the command that triggers the sporadic error and determine the relevant input conditions. Done means the reported operation no longer raises the offset error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.