error running the script
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 373
- Forks
- 80
- PR merge metrics
- No merged PRs in 30d
Description
csv2geojson osmose-planet-latest.csv > osmose_geodata.geojson
buffer.js:11
super(arg1, arg2, arg3);
^
RangeError: Invalid typed array length
at Buffer.Uint8Array (native)
at FastBuffer (buffer.js:11:5)
at createUnsafeBuffer (buffer.js:38:12)
at allocate (buffer.js:181:12)
at Function.Buffer.allocUnsafe (buffer.js:141:10)
at Function.Buffer.concat (buffer.js:309:23)
at bufferConcat (/usr/lib/node_modules/csv2geojson/node_modules/concat-stream/index.js:116:17)
at ConcatStream.getBody (/usr/lib/node_modules/csv2geojson/node_modules/concat-stream/index.js:63:42)
at ConcatStream. (/usr/lib/node_modules/csv2geojson/node_modules/concat-stream/index.js:36:51)
at emitNone (events.js:91:20)
Contributor guide
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
Reproduce the command `csv2geojson osmose-planet-latest.csv > osmose_geodata.geojson` and start with the reported `buffer.js` stack trace. Inspect the `concat-stream` path at `/usr/lib/node_modules/csv2geojson/node_modules/concat-stream/index.js`, then determine what input or processing condition causes the invalid typed-array length. Done means the command completes successfully or the failure is handled with a clear, actionable 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
- 25/100