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

GET tiles 404 (Not Found) and evented.js:104 Error #5093

Closed
Roxyi opened this issue Aug 3, 2017 · 6 comments
Closed

GET tiles 404 (Not Found) and evented.js:104 Error #5093

Roxyi opened this issue Aug 3, 2017 · 6 comments
Labels

Comments

@Roxyi
Copy link

Roxyi commented Aug 3, 2017

mapbox-gl-js version: mapbox-gl.js v0.39.1

Steps to Trigger Behavior

  1. Upload a shapefile to Mabox Studio and it automatically converted my shapefile to vector tiles
    image

  2. Use mapbox gl js to add the vector tiles to the map
    example: js bin

  3. Continue zooming out the map

Expected Behavior

no error

Actual Behavior

image
It gave me 404 and evented.js:104 error
image

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.

@Roxyi
Copy link
Author

Roxyi commented Aug 3, 2017

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.
image
image

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.

@Roxyi Roxyi closed this as completed Aug 3, 2017
@Roxyi Roxyi reopened this Aug 3, 2017
@Roxyi
Copy link
Author

Roxyi commented Aug 3, 2017

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.

@lbud
Copy link
Contributor

lbud commented Aug 3, 2017

Hi @Roxyi, thanks for the report. This is expected browser behavior — see #1800 (comment) for further explanation.

@lbud lbud closed this as completed Aug 3, 2017
@lbud
Copy link
Contributor

lbud commented Aug 3, 2017

Er, sorry, spoke too soon — Mapbox GL shouldn't be logging that as an error anymore, only the browser.

@lbud lbud reopened this Aug 3, 2017
@Roxyi
Copy link
Author

Roxyi commented Aug 3, 2017

@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.

@jfirebaugh
Copy link
Contributor

#5574

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

No branches or pull requests

4 participants