Skip to content

Fiddle: supress errors coming out of api#131

Merged
krishan711 merged 3 commits into
mainfrom
err
Apr 15, 2026
Merged

Fiddle: supress errors coming out of api#131
krishan711 merged 3 commits into
mainfrom
err

Conversation

@krishan711
Copy link
Copy Markdown
Contributor

Description

Screenshots:

Checklist:

  • I have updated the CHANGELOG with a summary of my changes

Copilot AI review requested due to automatic review settings April 15, 2026 14:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the API exception-handling middleware to optionally prevent internal exception details from being returned to clients, returning a generic “Internal Server Error” message instead.

Changes:

  • Add a shouldHideInternalErrors flag to ExceptionHandlingMiddleware (defaulting to True).
  • When a non-KibaException is raised, optionally replace the response payload message with a generic internal error message.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread core/api/middleware/exception_handling_middleware.py
Comment thread core/api/middleware/exception_handling_middleware.py
Comment thread core/api/middleware/exception_handling_middleware.py
@krishan711 krishan711 merged commit 8e1fb0e into main Apr 15, 2026
4 checks passed
@krishan711 krishan711 deleted the err branch April 15, 2026 14:49
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.

2 participants