Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Unimplemented Type: 3 #582

Closed
stdmn opened this issue Jun 2, 2018 · 5 comments
Closed

Error: Unimplemented Type: 3 #582

stdmn opened this issue Jun 2, 2018 · 5 comments

Comments

@stdmn
Copy link

stdmn commented Jun 2, 2018

I'm having problems with the new build of Tippecanoe. When trying to open Mapbox tiles, I'm getting the following error:

screen shot 2018-06-02 at 11 57 22 am

From blob:
skip: function(t) { var e = 7 & t; if (e === aa.Varint) for (; this.buf[this.pos++] > 127; ) ; else if (e === aa.Bytes) this.pos = this.readVarint() + this.pos; else if (e === aa.Fixed32) this.pos += 4; else { if (e !== aa.Fixed64) throw new Error("Unimplemented type: " + e); this.pos += 8; } },

...but only at higher zoom levels (13+). On Mapbox tiles created with older versions of Tippecanoe I'm not having any problems.

Self-contained version of JS Fiddle: https://jsfiddle.net/jncmz6qy/

I've tried with different settings on the Tippecanoe output. The current command line code is: tippecanoe -pk -pf -pt -ps --output-to-directory /path_to_directory/test /path_to_input/transit.geojson

This worked as of last week without any problems.

@andrewharvey
Copy link
Contributor

Every time I've seen Error: Unimplemented Type: 3 it's been because the vector tiles were gzipped but weren't unzipped before trying to parse them.

@stdmn
Copy link
Author

stdmn commented Jun 3, 2018

Sorry. You are correct. I have the tiles streaming from an Amazon S3 instance and for some reason S3 was only applying content-encoding metadata to some tiles. Closing issue.

@roblabs
Copy link

roblabs commented Feb 7, 2021

The Mapbox Mobile SDK's do not report an error when .pbf are gzipped. Which makes debugging why a set of tile data doesn't render somewhat challenging.

On mobile, if you have .pbf that you are adding as{z}/{x}/{y}.pbf tiles be sure that the call to tippecanoe includes the --no-tile-compression format option (see Setting or disabling tile size limits)

For anyone debugging the validity of .pbf that was already processed for you and you want to know its compression state:

  • port you Mobile style to a web page and check for error code: Error: Unimplemented Type: 3 in the browser. Example.
  • As well, you can simply change the name to 0/0/0.pbf.gzip and see if the file gets larger. Then your tile at zoom 0 should be rendered.

image

@qwertguy
Copy link

How do you configure s3 metadata?

@Jesperpaulsen
Copy link

@stdmn could you elaborate on what kind of metadata that needs to be added?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants