Skip to content

fix: prevent internal exception details from being exposed in API responses#797

Open
AanyaJain0811 wants to merge 2 commits into
neeru24:mainfrom
AanyaJain0811:fix/hide-internal-error-messages
Open

fix: prevent internal exception details from being exposed in API responses#797
AanyaJain0811 wants to merge 2 commits into
neeru24:mainfrom
AanyaJain0811:fix/hide-internal-error-messages

Conversation

@AanyaJain0811

Copy link
Copy Markdown
Contributor

What does this PR do?

Replaces raw exception messages returned to API clients with generic error responses while preserving detailed server-side logging.

Related Issue

Closes #788

Changes made

  • Replaced str(e) based API responses in affected endpoints
  • Kept detailed exception logging for debugging
  • Returned consistent user-friendly error messages for server errors

Checklist

  • I have tested my changes
  • My code follows project guidelines
  • No new errors introduced

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prevent internal exception details from being exposed in API responses

1 participant