#Error when loading HTTPS assets (WebP)

3 messages · Page 1 of 1 (latest)

plain sierra
#

Hi, I'm trying to load map tiles from URLs into the asset server and getting this not too helpful error:

2026-06-01T19:19:52.220094Z ERROR bevy_asset::server: Failed to deserialize meta for asset https://tiles.versatiles.org/tiles/satellite/3/7/4: Failed to deserialize minimal asset meta: SpannedError { code: Utf8Error(Utf8Error { valid_up_to: 5, error_len: Some(1) }), span: Span { start: Position { line: 1, col: 1 }, end: Position { line: 1, col: 6 } } }

My code basically looks like this:

let url = format!(
    "https://tiles.versatiles.org/tiles/satellite/{}/{}/{}",
    zoom, x as u32, y as u32
);
info!("requesting URL {url}");
let texture_handle = asset_server.load(url);
bevy = { version = "0.18.1", features = ["3d", "jpeg", "webp", "dev", "https", "web_asset_cache"] }
exotic marlin
# plain sierra Hi, I'm trying to load map tiles from URLs into the asset server and getting thi...

Since it seems you're trying to load map tiles from an API, i assume they're images. You might need to disalbe asset meta checks. But when i was helping out with https://crates.io/crates/bevy_geo_tiles we found that it was too limited, settling on using manual requests

crates.io serves as a central registry for sharing crates, which are packages or libraries written in Rust that you can use to enhance your projects

plain sierra
#

i ended up using bevy_slippy_tiles, which seems to work fine for the OSM default tiles, which are .png, but the satellite images are sent in .webp, which it doesn't support