Improve error messages when loading .riv files
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript, wasm
- Domain
- web-dev
Research direction
Start at the web runtime's .riv file loading and parsing entry point, then reproduce the incorrect-path case described in the issue. Trace how the server's 404 text or HTML becomes the current Bad header and Problem loading file: may be corrupt errors. Done means an invalid or missing .riv path produces a descriptive error that helps users identify the failed request.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- TypeScript
- Stars
- 968
- Forks
- 85
- Avg merge
- 15h 1m
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rive-app/rive-wasm
-
Typo fix Open
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
-
Feature Request: Decouple getRuntime to Allow Dynamic Runtime Switching and Improve Performance Opentriage
Difficulty 5/5 Over a week Newbie friendliness 30/100
All issues in rive-app/rive-wasm
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·