You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So it seems like there is some logic to handle 404 errors specially, however as the network fetches are usually done by the source workers, the status code doesn't make it back to that code.
The text was updated successfully, but these errors were encountered:
When one of the web workers makes an AJAX request that fails, it will throw an AJAXError (with status: Number) back to the callback. Ex:
mapbox-gl-js/src/source/vector_tile_source.js
Line 107 in 25e5f1d
However, when this goes through the actor, this AJAXError is simply converted to a string for the message posted back to the main thread:
mapbox-gl-js/src/util/actor.js
Line 68 in 25e5f1d
It looks like _tileLoaded however is specifically trying to handle the condition for 404:
mapbox-gl-js/src/source/source_cache.js
Line 228 in 25e5f1d
However the
err
object will have just been a genericError
recreated from the string:mapbox-gl-js/src/util/actor.js
Line 77 in 25e5f1d
So it seems like there is some logic to handle 404 errors specially, however as the network fetches are usually done by the source workers, the status code doesn't make it back to that code.
The text was updated successfully, but these errors were encountered: