maheshj01 / maheshj01/api-docs-ai

Api responses better error handling

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
backend easy-fix P3 tech-debt
Dominant language
HTML
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

When I gave a wrong index name, I got this error

image
provide a proper resposne by putting this in a error object

```
{
"error":{
"detail": "Error in faiss::FileIOReader::FileIOReader(const char *) at /Users/runner/work/faiss-wheels/faiss-
wheels/faiss/faiss/impl/io.cpp:68: Error: 'f' failed: could not open data/flutter/index.faiss for reading: No such file or directory"
}
}
```

Contributor guide

Open the contributing guide

Research direction

Start by locating the API endpoint that handles an invalid index name and inspect how the FAISS file-opening error currently reaches the response. Done means that this failure returns the requested error object with the detail message instead of the shown raw error.

Written by the indexing model from the issue text.

Assessment

Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.