Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle cases where request.data has been passed as a raw string #199

Open
sentry-io bot opened this issue Apr 18, 2023 · 0 comments
Open

Handle cases where request.data has been passed as a raw string #199

sentry-io bot opened this issue Apr 18, 2023 · 0 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Apr 18, 2023

AttributeError: 'str' object has no attribute 'get'

Sentry Issue: KOLIBRI-BACKEND-2E8

AttributeError: 'str' object has no attribute 'get'
(6 additional frame(s) were not displayed)
...
  File "rest_framework/views.py", line 455, in handle_exception
    self.raise_uncaught_exception(exc)
  File "rest_framework/views.py", line 492, in dispatch
    response = handler(request, *args, **kwargs)
  File "kolibri/core/auth/api.py", line 696, in create
    data = self.extract_request_data(request)
  File "kolibri_instant_schools_plugin/auth/api.py", line 48, in extract_request_data
    data = super(PhoneNumberSignUpViewSet, self).extract_request_data(request)
  File "kolibri/core/auth/api.py", line 686, in extract_request_data
    "username": request.data.get("username", ""),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants