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

TypeError: coercing to Unicode: need string or buffer, int found #1164

Closed
ukanga opened this issue Oct 24, 2017 · 0 comments
Closed

TypeError: coercing to Unicode: need string or buffer, int found #1164

ukanga opened this issue Oct 24, 2017 · 0 comments
Milestone

Comments

@ukanga
Copy link
Member

ukanga commented Oct 24, 2017

/api/v1/data/328?start=&limit=10

TypeError: coercing to Unicode: need string or buffer, int found
(6 additional frame(s) were not displayed)
...
  File "rest_framework/views.py", line 449, in handle_exception
    self.raise_uncaught_exception(exc)
  File "rest_framework/views.py", line 486, in dispatch
    response = handler(request, *args, **kwargs)
  File "onadata/apps/api/viewsets/data_viewset.py", line 380, in list
    is_public_request)
  File "onadata/apps/api/viewsets/data_viewset.py", line 462, in _get_data
    query, fields, sort, start, limit, is_public_request)
  File "onadata/apps/api/viewsets/data_viewset.py", line 420, in set_object_list_and_total_count
    limit = limit if start is None or start == 0 else start + limit

TypeError: coercing to Unicode: need string or buffer, int found

Aha! Link: https://ona.aha.io/features/PROD-494

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

1 participant