Skip to content

feat: Add better error propagation for GraphQL/HTTP clients#744

Open
gittihub-jpg wants to merge 1 commit into
imDarshanGK:mainfrom
gittihub-jpg:fix/issue-20260531-650
Open

feat: Add better error propagation for GraphQL/HTTP clients#744
gittihub-jpg wants to merge 1 commit into
imDarshanGK:mainfrom
gittihub-jpg:fix/issue-20260531-650

Conversation

@gittihub-jpg
Copy link
Copy Markdown

Closes #650

Description

Define a standardized error response schema with code, message, and metadata fields in the backend service layer. Update exception handlers in code_assistant.py and error_tracking.py to catch upstream failures and return the structured format. Modify frontend/script.js to parse the new error shape and handle it consistently across GraphQL and HTTP clients. Add unit tests for the error mapping logic.

Related Issue

Fixes #650

Type of change

  • Bug fix
  • New feature / enhancement
  • Documentation update
  • Test addition
  • Refactor

Checklist

  • I have read CONTRIBUTING.md
  • My branch is up to date with main
  • I have run pytest -v and all tests pass
  • I have not introduced duplicate issues or features
  • My PR title follows the format: feat/fix/docs/test: short description
  • I have added tests for new features (Level 2 and 3 issues)
  • No hardcoded secrets or API keys in my code
  • This PR is linked to a GSSoC 2026 issue

@gittihub-jpg gittihub-jpg marked this pull request as ready for review May 31, 2026 13:22
@gittihub-jpg gittihub-jpg requested a review from imDarshanGK as a code owner May 31, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add better error propagation for GraphQL/HTTP clients

1 participant