fix: rate limit error message change - #356
Merged
Merged
Conversation
Roopan-Microsoft
approved these changes
Aug 3, 2025
|
🎉 This PR is included in version 2.2.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
deepammi
pushed a commit
to deepammi/Multi-Agent-Custom-Automation-Engine-Solution-Accelerator
that referenced
this pull request
Dec 7, 2025
fix: rate limit error message change
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
This pull request makes updates to the
src/backend/app_kernel.pyfile, focusing on improving error messaging and adding clarity to middleware configuration. The most significant changes include refining error messages for rate limit scenarios, simplifying exception details, and clarifying a comment in the CORS middleware setup.Error messaging improvements:
[src/backend/app_kernel.pyL272-R272](https://github.com/microsoft/Multi-Agent-Custom-Automation-Engine-Solution-Accelerator/pull/356/files#diff-c839d97b372f2799977f9f197d6c18667f795b2566b1b2c42e27b1479be26173L272-R272))HTTPExceptiondetail message by removing redundant text and directly using theerror_msgvariable. ([src/backend/app_kernel.pyL282-R282](https://github.com/microsoft/Multi-Agent-Custom-Automation-Engine-Solution-Accelerator/pull/356/files#diff-c839d97b372f2799977f9f197d6c18667f795b2566b1b2c42e27b1479be26173L282-R282))Middleware configuration:
allow_originsparameter in the CORS middleware, specifying that all origins are allowed for development but should be restricted in production. ([src/backend/app_kernel.pyL77-R77](https://github.com/microsoft/Multi-Agent-Custom-Automation-Engine-Solution-Accelerator/pull/356/files#diff-c839d97b372f2799977f9f197d6c18667f795b2566b1b2c42e27b1479be26173L77-R77))Does this introduce a breaking change?
How to Test
What to Check
Verify that the following are valid
Other Information