mapbox / mapbox/mvtview

UnhandledPromiseRejectionWarning: Error: Unimplemented type: 3

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

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
49
Forks
10
PR merge metrics
No merged PRs in 30d

Description

download https://water-map.org/gridFountain/fullgrid2_0003_0045_0006_0048.json

```
#build vector tiles
tippecanoe -f -zg --drop-densest-as-needed in.geojson -e water-map fullgrid2_0003_0045_0006_0048.json

#display one tile
mvtview water-map/6/33/22.pbf
```

mvtview display the following errors:
```
(node:28422) UnhandledPromiseRejectionWarning: Error: Unimplemented type: 3
at Pbf.skip (.nvm/versions/node/v8.17.0/lib/node_modules/@mapbox/mvtview/node_modules/pbf/index.js:211:20)
at Pbf.readFields (.nvm/versions/node/v8.17.0/lib/node_modules/@mapbox/mvtview/node_modules/pbf/index.js:46:45)
at new VectorTileLayer (.nvm/versions/node/v8.17.0/lib/node_modules/@mapbox/mvtview/node_modules/@mapbox/vector-tile/lib/vectortilelayer.js:20:9)
at readTile (.nvm/versions/node/v8.17.0/lib/node_modules/@mapbox/mvtview/node_modules/@mapbox/vector-tile/lib/vectortile.js:13:21)
at Pbf.readFields (.nvm/versions/node/v8.17.0/lib/node_modules/@mapbox/mvtview/node_modules/pbf/index.js:44:13)
at new VectorTile (.nvm/versions/node/v8.17.0/lib/node_modules/@mapbox/mvtview/node_modules/@mapbox/vector-tile/lib/vectortile.js:8:23)
at Object.makeStyle (.nvm/versions/node/v8.17.0/lib/node_modules/@mapbox/mvtview/utils.js:18:12)
at app.get (.nvm/versions/node/v8.17.0/lib/node_modules/@mapbox/mvtview/mvtview.js:20:13)
at Layer.handle [as handle_request] (.nvm/versions/node/v8.17.0/lib/node_modules/@mapbox/mvtview/node_modules/express/lib/router/layer.js:95:5)
at next (.nvm/versions/node/v8.17.0/lib/node_modules/@mapbox/mvtview/node_modules/express/lib/router/route.js:137:13)
(node:28422) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:28422) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

```

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 failure with the provided JSON URL, tippecanoe command, and mvtview command. Start from mvtview.js and utils.js, then inspect the vector-tile and pbf stack-trace locations; done means the generated water-map/6/33/22.pbf displays without the Unimplemented type: 3 rejection.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.