protomaps / PMTiles

Cloud-optimized + compressed single-file tile archives for vector and raster maps
https://protomaps.com/docs/pmtiles/
BSD 3-Clause "New" or "Revised" License
2.02k stars 118 forks source link

Content-Length mismatch indicates byte serving not supported; aborting. #93

Closed wipfli closed 1 year ago

wipfli commented 1 year ago

When I update my .pmtiles file on GitHub pages and reload my maplibre map, I get this error from time to time:

image

wipfli commented 1 year ago

Sorry for not posting steps to reproduce, I don't know how I can reproduce this really...

wipfli commented 1 year ago

Here is the commit that I did before this crash: https://github.com/wipfli/swiss-map/commit/035aa35c540bc45900ec372f9337ddd5ebd3bba2

bdon commented 1 year ago

Does this appear randomly only after a new commit or update to the file? What browser are you using?

wipfli commented 1 year ago

I use chrome on ubuntu. Sometimes I get the error when I update the pmtiles file, and sometimes not. I can have a look if I find a way to reproduce this.

bdon commented 1 year ago

@wipfli can you upgrade to 2.6.0 and observe to see if this still happens? The logic for fetch is a bit more tolerant, but mostly affects archives less than 16 kb (very small)

wipfli commented 1 year ago

Ah interesting. For the map where I saw this problem I switched to the cloudflare z/x/y endpoints. But next time I use the maplibre plugin will use v2.6.0. Since I never made a good reproduction of this bug, I wonder if I should keep the issue open or just close it?

bdon commented 1 year ago

I'm going to close it for now, the new error messages should give us a better idea of what's happening.