rive-wasm icon indicating copy to clipboard operation
rive-wasm copied to clipboard

Improve error messages when loading .riv files

Open avivian opened this issue 2 years ago • 1 comments

If an incorrect path is provided to a .riv file, we return an errors stating: Bad header and Problem loading file: may be corrupt. This is caused by the runtime trying to parse the response from the server that is not a .riv file, probably some sort of text or html along with the 404 status code.

A large amount of issues raised on our web runtimes are related to this issue, as it causes confusion for our users.

We should give more meaningful, descriptive errors here to help our users debug their problems

avivian avatar Mar 17 '23 09:03 avivian

tbf, i did get caught up on this but quickly rebounded after I noticed the 404 right before the error Screenshot 2024-07-12 at 2 48 48 PM

eballeste avatar Jul 12 '24 20:07 eballeste