Skip to content

fix: add error handling to /projects endpoint#64

Open
madhuri-perumalla wants to merge 1 commit into
probably-ABHINAV:mainfrom
madhuri-perumalla:fix/projects-error-handling
Open

fix: add error handling to /projects endpoint#64
madhuri-perumalla wants to merge 1 commit into
probably-ABHINAV:mainfrom
madhuri-perumalla:fix/projects-error-handling

Conversation

@madhuri-perumalla
Copy link
Copy Markdown

Description

The /projects endpoint didn’t have error handling, so it would crash if the database failed. Added a try-catch to return a proper 500 error response instead.

This keeps it consistent with the /health endpoint and improves API reliability.

Type of Change

  • 🐛 Bug fix

How Has This Been Tested

  • Matches existing /health error handling pattern
  • No change in success response

Checklist

  • My code follows the style guidelines
  • I have performed a self-review
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I am a GSSoC participant.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 20, 2026

@madhuri-perumalla is attempting to deploy a commit to the xoxogroovy-7398's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown

👋 Hey @madhuri-perumalla!

This PR doesn't appear to link to an issue. Please:

  1. Make sure you're assigned to an issue first
  2. Add Closes #<issue-number> to your PR description

PRs without linked issues will not be reviewed. See our Contributing Guide for details.

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.

1 participant