ASSET_PARSE
An asset downloaded, but its content could not be decoded or parsed, so its lease rejected.
On this page
ASSET_PARSE: cannot decode {url}Why it happens
- An image loaded, but
decode()orcreateImageBitmap()failed: the file is broken, or the browser does not support its format. - A
.glbor.gltffile is not glTF:{url} is not glTF. A server that answers a missing file with an HTML page and status 200, such as a single-page app fallback, causes this. - The three.js loader threw while it parsed a model or a KTX2 texture:
cannot parse {url}. When the error looks like a refused worker or WebAssembly, the code isASSET_DECODERinstead. - A
jsonasset is not valid JSON:{url} is not JSON. - An own loader threw an error that is not an
AssetError. Diorama wraps it with this code and the error text as the message.
Like ASSET_LOAD, the error is reported once per attempt with the target asset:<url>, and the lease’s ready rejects.
How to fix
- Open the URL from the message in the browser and check that the response is the file, not an HTML page.
- Check the
causein the console for the decoder or parser message. - Export the file again from its source tool, or convert the image to a format your target browsers decode.