Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

JSONDecodeError: Expecting value: line 1 column 1 (char 0) #110

Open
OGKevin opened this issue Jul 3, 2017 · 0 comments
Open

JSONDecodeError: Expecting value: line 1 column 1 (char 0) #110

OGKevin opened this issue Jul 3, 2017 · 0 comments

Comments

@OGKevin
Copy link
Owner

OGKevin commented Jul 3, 2017

https://sentry.io/share/issue/3137323731332e333034363033323838/

JSONDecodeError: Expecting value: line 1 column 1 (char 0)
(5 additional frame(s) were not displayed)
...
  File "BunqWebApp/views.py", line 116, in post
    session = self.store_in_session(file_contents, password, username)
  File "BunqWebApp/views.py", line 147, in store_in_session
    data = json.loads(data)
  File "json/__init__.py", line 319, in loads
    return _default_decoder.decode(s)
  File "json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None

JSONDecodeError: Expecting value: line 1 column 1 (char 0)

This should return a error to the user instead of 500.

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

No branches or pull requests

1 participant