Skip to content

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

Open
@sentry-io

Description

@sentry-io

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", ""),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions