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
The current error handling assumes that each field in the error exception dictionary is a field name. This is only true for ValidationException though but not for other exception such as InvalidToken as in example below.
Error handling needs to be adjusted so ValidationException and other errors are handled different.
floels
changed the title
Duplicate error in response of Simple JWT TokenRefreshView
Duplicate errors in response of Simple JWT's TokenRefreshView
Mar 16, 2023
Thanks for raising this issue. Indeed the current DJA error handling mainly handles ValidationError. In this case however it is a custom exception of simplejwt where DJA then thinks code and detail are field names which is not the case.
To address this issue the error handling logic needs to be rewritten that it handles ValidationError and other errors differently.
sliverc
changed the title
Duplicate errors in response of Simple JWT's TokenRefreshView
Invalid handling of exceptions different from ValidationError
Apr 4, 2023
Description of the Bug Report
The current error handling assumes that each field in the error exception dictionary is a field name. This is only true for ValidationException though but not for other exception such as InvalidToken as in example below.
Error handling needs to be adjusted so ValidationException and other errors are handled different.
Orginal report
Checklist
The text was updated successfully, but these errors were encountered: