mapbox / mapbox/csv2geojson

error running the script

Open
#56 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs information :pray:
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

Open the contributing guide

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.