GET tiles 404 (Not Found) and evented.js:104 Error
mapbox-gl-js version: mapbox-gl.js v0.39.1
Steps to Trigger Behavior
-
Upload a shapefile to Mabox Studio and it automatically converted my shapefile to vector tiles

-
Use mapbox gl js to add the vector tiles to the map example: js bin
-
Continue zooming out the map
Expected Behavior
no error
Actual Behavior
It gave me 404 and evented.js:104 error

I guess when you zoom in and out the map, it sometimes returns empty content.
This is changed to Error: http status 200 returned without content, if I add a third party vector tile source.
Update to this issue:
Hi guys, I think I solved this problem. First, I would like to apologize that I made a mistake in the previous issue report. The mbtiles is actually created by Mapbox Studio Classic not by Mapbox Studio.
I think the problem is caused by Mapbox Studio Classic. See these two mbtiles.

The first one is created by directly uploading shapefile to Mapbox Studio and the second one is created in Mapbox Studio Classic. The second one has more zoom level but a smaller size. So that's why there is empty content returned. I don't know why Mapbox Studio Classic cut the size of the mbtiles. I think engineers from Mapbox will help explain.
Also I tested the mbtiles created by tippecanoe, there is no error message. So I think if you want to adjust the zoom extent or host the mbtiles by yourself, tippecanoe is the best way.
I did more tests with tiles created by Mapbox Studio and tippecanoe. There is still 404 error. I updated the js bin with the tiles created by Mapbox Studio.
Now it is not that easy to trigger the error. When you point your mouse at the west border of Manhattan and zoom in. The error will appear. Also, when you point your mouse outside the border, zoom in, the error will also appear.
Hi @Roxyi, thanks for the report. This is expected browser behavior — see https://github.com/mapbox/mapbox-gl-js/issues/1800#issuecomment-310380381 for further explanation.
Er, sorry, spoke too soon — Mapbox GL shouldn't be logging that as an error anymore, only the browser.
@lbud Thanks for your help. I guess this is the browser behavior too. When I added mbtiles from a third party tile source. It will return Error: http status 200 returned without content,
These error messages do not affect the map. They are just annoying when you need to debug in the console.
→ #5574