labthings / labthings/labthings-fastapi

Revisit and improve error handling/fallback server when the server fails to start.

Open
#192 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
9
Forks
4
PR merge metrics
No merged PRs in 30d

Description

I recently revisited serve_from_cli and realised it raises a bunch of unhandled exceptions, which is less than helpful.

It would be nice to improve error handling, both on the CLI and in the fallback server if it's used.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the serve_from_cli entry point and tracing how the fallback server is used when startup fails. Identify the unhandled exceptions in both paths and define completion as providing helpful CLI and fallback-server error handling without leaving startup failures unhandled.

Written by the indexing model from the issue text.

Assessment

Tech stack
fastapi, python
Domain
backend, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.