joshfraser / robinhood-to-csv

Python script to export Robinhood trades to a CSV file
MIT License
259 stars 109 forks source link

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) #32

Closed murdrae closed 5 years ago

murdrae commented 6 years ago

Python 3.6.5 on OSX 10.13.6 After entering username and password getting error: Traceback (most recent call last): File "csv-options-export.py", line 45, in logged_in = robinhood.login(username=username, password=password) File "/Users/jason/Documents/repo/RS/robinhood-to-csv/Robinhood.py", line 81, in login res = res.json() File "/Users/jason/Documents/repo/RS/robinhood-to-csv/env/lib/python3.6/site-packages/requests/models.py", line 896, in json return complexjson.loads(self.text, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/init.py", line 354, in loads return _default_decoder.decode(s) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0

vikkee57 commented 6 years ago

Python 3.6 on windows 10. Experiencing this exact same error when trying to export using csv-export.py.

wezzybytes commented 6 years ago

Duplicate of #29 See the solution posted in pull request #30

klepsydra commented 5 years ago

Same error, regardless which Python virtualenv I use (2.7, 3.6). How do I integrate the posted solution that hasn't been merged into this project? What git/Unix commands?

joshfraser commented 5 years ago

Should be fixed with #36. Feel free to reopen if that's not the case.