Skip to content

Add basic error handling and input validation to backend endpoints #4

@bhoomiiee

Description

@bhoomiiee

The backend currently lacks explicit error handling and input validation, which may lead to unexpected crashes or unclear error responses when invalid input is provided.

Why this is an issue?

  • Application may fail silently or crash on invalid input
  • Error responses may be unclear to users
  • Reduces reliability and robustness of the backend

Proposed Solution / Plan

  • Identify exposed routes or functions in app.py
  • Add basic input validation checks
    -Wrap critical logic in try/except blocks
    -Return meaningful error messages and status codes
    -Log errors for easier debugging

I would like to work upon it if it aligns with the project direction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions