Closed sputnik5459 closed 3 years ago
in message = error.response.json()['error']['message'] error.response.json()['error'] not always returns dict. As I understand, sometimes it's a string, so, code breaks with TypeError: string indices must be integers. You should add types handling.
message = error.response.json()['error']['message']
Fixed by https://github.com/st4lk/django-rest-social-auth/pull/145
Available in pypi: https://pypi.org/project/rest-social-auth/6.0.1/
in
message = error.response.json()['error']['message']
error.response.json()['error'] not always returns dict. As I understand, sometimes it's a string, so, code breaks with TypeError: string indices must be integers. You should add types handling.