FileErrorCode
Copy as MarkdownFileErrorCode =
"unsupported"|"network"|"size"|"integrity"|"gzip"|"json"|"format"|"version"|"internal"
What a failed load or mount tells (error.code), and what to do:
unsupported: the browser or the page lacks what the player needs (DecompressionStream,DOMParser,FontFace, constructable stylesheets), the root is in another document than the player’s (an iframe’s), anintegritywas given outside a secure context (it needscrypto.subtle: serve the page over https), or the page’s Trusted Types refused therupa-playerpolicy (allow it intrusted-types).network: the file could not be fetched, or the server answered with an error status (in the message): check the URL, and that another origin allows the request (CORS).size: the download is over 25 MB, the file unpacks to over 50 MB, or its CSS holds over 20000 rules and selectors: export a smaller file.integrity: theintegrityoption is malformed (it must besha256-<base64>), does not match the file’s bytes, or was given with a file already parsed (RupaFile), whose bytes are gone.gzip: the bytes are not gzip, or are cut short: the file is damaged or is not a.rupaplayfile.json: the bytes unpack to text that is not JSON.format: the JSON is not a.rupaplayfile (the message names the field that fails), or its markup has no root element of its root class.version: the file is of a newer format, or needs a newer player (itsplayerfield): update the player.internal: an unexpected error inside the player (inerror.cause);mountFileleft the root as it was.