-
Notifications
You must be signed in to change notification settings - Fork 211
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
Gracefully handle 404 on VectorTile #524
Comments
Good suggestion! |
@ahokinson a quick fix for you might be to check for 404s here:
and either log them as warnings (like we do with aborted requests) or shallow them ( if 404 return; ).
That's a good idea and I think verbosity levels should be implemented throughout the whole SDK not just tile requests, but that would be a big lift as we would have to go through the entire SDK and attach the verbosity level to all the places where errors/warnings could occur. But we could start with the @apavani do you have resources to take a stab at that? I'm thinking about exposing a dropdown setting in the config dialog like this:
With the default set to We still might have to have additional checks/dedicated handling of aborted requests as they happen quite frequently during rapid panning or fast changing of zoom levels. |
Closing this for now, let us know if you need anything else. |
@MiroMuse, I don't understand why this issue was closed. While I could make the changes to my code locally, as @BergWerkGIS suggested, the issue persists in the SDK. I wouldn't mind doing another PR for this as long as someone agrees with my proposal. |
@ahokinson That was perhaps by accident. @BergWerkGIS and I agree with you suggestion. |
@ahokinson sorry about that! @apavani is right, closed in error. Looking forward to your PR! |
When using a VectorTileFactory, it should be expected that some tiles do not have vector tile data and thus return a 404 error. This happens a lot in my own use.
Would it be possible to add an enum to the VectorTileFactory that could get passed to the TileErrorHandler which could control the debug level of exceptions?
The argument I can make in favor of this is that WebGL builds could end up with lots of errors in the JS console which looks bad to anyone looking.
The text was updated successfully, but these errors were encountered: