You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: APIGatewayRestResolver exception_handler decorator is not stackable #1706
The first decorator (immediately above the function header) is handled correctly, however subsequent decorators are assigned None in the map and are therefore not handled. In the example above, a SchemaValidationError would result in a 502 Internal Server error response to the user.
Thanks for opening your first issue here! We'll come back to you as soon as we can.
In the meantime, check out the #python channel on our AWS Lambda Powertools Discord: Invite link
Hey @sprkem, let's extend the signature to accept one or more exceptions (Exception | List[Exception]) instead.
Stacking will impact performance with the increase of stack frames. We should support it to prevent errors, but the intention we need to address is to handle distinct yet related exceptions with a single exception handler.
Yes, please for the PR!! Ping if you need any help
Activity
boring-cyborg commentedon Nov 10, 2022
Thanks for opening your first issue here! We'll come back to you as soon as we can.
In the meantime, check out the #python channel on our AWS Lambda Powertools Discord: Invite link
Ozz-Modding commentedon Nov 10, 2022
If happy I can raise a PR
heitorlessa commentedon Nov 10, 2022
Hey @sprkem, let's extend the signature to accept one or more exceptions (Exception | List[Exception]) instead.
Stacking will impact performance with the increase of stack frames. We should support it to prevent errors, but the intention we need to address is to handle distinct yet related exceptions with a single exception handler.
Yes, please for the PR!! Ping if you need any help
Thank you!
Ozz-Modding commentedon Nov 10, 2022
I have raised this now: #1707
github-actions commentedon Nov 14, 2022
This issue is now closed. Please be mindful that future comments are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
github-actions commentedon Nov 17, 2022
This is now released under 2.3.0 version!