ProjectTech4DevAI / ProjectTech4DevAI/kaapi-backend

Error Handling: Improve error visibility

Open Beginner friendly
#889 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
18
Forks
10
Avg merge
2d 20h
Merged PRs (30d)
14

Description

Is your feature request related to a problem?
When creating a collection and uploading files, OpenAI returns an error. However, Kaapi only displays a generic message, making it difficult to debug the issue.

OpenAI document processing error: 1/10 files completed

Describe the solution you'd like

  • Return the specific error message from OpenAI instead of a generic one to improve error visibility for easier debugging downstream.

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 locating the collection creation and file-upload error handling that produces “OpenAI document processing error: 1/10 files completed.” Trace how the upstream processing error is received and surfaced. Done means the downstream response includes OpenAI’s specific error message instead of only the generic progress message.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.