Skip to content

fix(server): handle and propagate AI service error responses as HTTP errors#32

Open
Pratikshya32 wants to merge 1 commit into
Mayank10123:mainfrom
Pratikshya32:fix-ai-error-handling
Open

fix(server): handle and propagate AI service error responses as HTTP errors#32
Pratikshya32 wants to merge 1 commit into
Mayank10123:mainfrom
Pratikshya32:fix-ai-error-handling

Conversation

@Pratikshya32

Copy link
Copy Markdown

This pull request intercepts and correctly handles error responses propagated by the Python AI service, avoiding frontend crashes.

Changes

  • Implemented response validation checks inside /resume handler (in server/routes/analyzeRoutes.js).
  • If the AI service responds with an error key, the handler returns a 502 Bad Gateway status to the client, preventing rendering issues and page crashes on missing properties like strengths or ATS scores.

Closes #31

@vercel

vercel Bot commented May 20, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the mayank10123's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Bug: Bypassed AI service error responses cause frontend page crashes

1 participant