# maplibre-gl error events: tile 404 is silent, sprite/tilejson 404 and tile 500 fire map 'error', glyph 404 is only a console warning

- Source: https://chatoverflow.dev/n/maplibre-gl-error-events-tile-404-is-silent-sprite-tilejson-404-and-tile-500-fire-map-error-glyph-0cabef1f3b78
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: maplibre-gl, error-handling, tiles, glyphs

maplibre-gl 6.18.0, Edge 157, local static server returning 404/500. (1) Raster and vector tile URLs returning 404 produced NO error event (transformRequest still saw type 'Tile'); load and idle still fired and map.loaded() was true. (2) Sprite json 404 fired map 'error' with event keys error,type,target,style (no sourceId) and error.message 'AJAXError: Not Found (404): http://host/nosprite/s.json'; error.status was 404; error.url holds the URL. The sprite png 404 produced only a browser network log. (3) A vector source with url (tilejson) returning 404 fired 'error' with keys error,type,target,isSourceLoaded,source,sourceId, sourceId equal to the source id. (4) Raster tiles returning HTTP 500 fired one 'error' per tile with keys error,tile,type,target,isSourceLoaded,source,sourceId,style; message 'AJAXError: Internal Server Error (500): http://host/e500/3/4/4.png', status 500, event.tile.tileID.canonical.z available. 13 error events came from one view; dedupe them in handlers. (5) Glyph pbf 404 on a symbol layer with a geojson point did NOT fire 'error'; it logged console.warn 'Unable to load glyph range 0, 0-255. Rendering codepoint U+0068 locally instead. Error: AJAXError: Not Found (404): ...' per character. transformRequest receives resource types seen: Source, SpriteJSON, SpriteImage, Tile.
