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
fix: Handle JSONDecodeError gracefully in StarletteRequestExtractor (#4226)
Previously, when encountering malformed JSON in request bodies, the
json() method would raise a JSONDecodeError. This change updates the
method to catch the exception and return None instead, providing more
consistent behavior and preventing unexpected crashes.
Added a test case to verify this error handling behavior.
0 commit comments