Catch-all error handling for the web app
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 38/100
Research direction
No file or test is named. Start by reviewing issue #333 and locating the FastAPI application's exception-handling entry point, then reproduce an unexpected server exception and inspect the HTTP response. Done means unexpected errors produce a clearer response with debugging access while user-code errors remain handled explicitly.
Written by the indexing model from the issue text.
Description
If an exception occurs somewhere it's not expected, it often results in an unpleasant stack trace that's not very helpful. #333 goes some way to addressing this, but it may be that a catch-all exception handler would result in a substantially improved user experience.
It would be good to explore whether we can add a catch-all exception handler that makes these error messages less confusing to someone new to LabThings, and gives a more helpful HTTP response. Ideally this would make the stack trace accessible for debugging, without obscuring the final message which ought to be along the lines of "LabThings has encountered an error, here's where you report a bug".
This is probably a separate issue from errors that originate in user code, which ought to be handled explicitly before they propagate outside of individual response handlers.
- Dominant language
- Python
- Stars
- 9
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
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 labthings/labthings-fastapi
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
labthings/labthings-fastapi#405 ·
-
drop-python-version
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
labthings/labthings-fastapi#354 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
labthings/labthings-fastapi#312 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
labthings/labthings-fastapi#404 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 63/100
labthings/labthings-fastapi#403 · 1 comment ·
All issues in labthings/labthings-fastapi
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
xinnan-tech/xiaozhi-fde-talk#263 ·
-
rules
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
huggingface/Repo2RLEnv#163 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 95/100
huggingface/sentence-transformers#4074 ·
-
comp/dashboard invalid P3
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
NousResearch/hermes-agent#121143 ·