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

AssertionError: renderer returned unicode, and did not specify a charset value. #1598

Closed
ukanga opened this issue Apr 17, 2019 · 0 comments · Fixed by #1599
Closed

AssertionError: renderer returned unicode, and did not specify a charset value. #1598

ukanga opened this issue Apr 17, 2019 · 0 comments · Fixed by #1599

Comments

@ukanga
Copy link
Member

ukanga commented Apr 17, 2019

https://sentry.onalabs.org/ona/onadata/issues/72502/

AssertionError: renderer returned unicode, and did not specify a charset value.
  File "rest_framework/response.py", line 75, in rendered_content
    'renderer returned unicode, and did not specify '

AssertionError: renderer returned unicode, and did not specify a charset value.

This exception is raised when a user is pulling a form that includes a linked dataset that they do not have permission to. The MediaFileRenderer has charset=None when the response being generated is a JSON string with '{"details": "You don't have permission"}'.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants