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

HTTP_PREFERENCES should be converted to utf8 on write #1004

Closed
kollivier opened this issue Sep 28, 2018 · 1 comment
Closed

HTTP_PREFERENCES should be converted to utf8 on write #1004

kollivier opened this issue Sep 28, 2018 · 1 comment
Labels

Comments

@kollivier
Copy link
Contributor

https://sentry.io/learningequality/studio/issues/699325214/

UnicodeDecodeError: 'utf8' codec can't decode byte 0xf3 in position 24: invalid continuation byte
(2 additional frame(s) were not displayed)
...
  File "newrelic/hooks/framework_django.py", line 544, in wrapper
    return wrapped(*args, **kwargs)
  File "contentcuration/views/files.py", line 66, in file_create
    preferences = json.loads(request.META.get('HTTP_PREFERENCES') or "{}")
  File "json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "json/decoder.py", line 380, in raw_decode
    obj, end = self.scan_once(s, idx)

UnicodeDecodeError: 'utf8' codec can't decode byte 0xf3 in position 24: invalid continuation byte
@ivanistheone
Copy link
Contributor

ivanistheone commented Sep 28, 2018 via email

@kollivier kollivier added the bug label Oct 23, 2018
@kollivier kollivier mentioned this issue Feb 8, 2019
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants