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

json.decoder.JSONDecodeError #2

Open
raman-wis opened this issue Jan 5, 2022 · 0 comments
Open

json.decoder.JSONDecodeError #2

raman-wis opened this issue Jan 5, 2022 · 0 comments

Comments

@raman-wis
Copy link

Hi,
I was trying to run the code but saw this error. Can you help with this?
Exception in thread Thread-1:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/Users/ramansingh/OneDrive - weizmann.ac.il/PyCharms new/Trading/venv/lib/python3.8/site-packages/multitasking/init.py", line 102, in _run_via_pool
return callee(*args, **kwargs)
File "/Users/ramansingh/OneDrive - weizmann.ac.il/PyCharms new/Trading/venv/lib/python3.8/site-packages/yfinance/multi.py", line 167, in _download_one_threaded
data = _download_one(ticker, start, end, auto_adjust, back_adjust,
File "/Users/ramansingh/OneDrive - weizmann.ac.il/PyCharms new/Trading/venv/lib/python3.8/site-packages/yfinance/multi.py", line 179, in _download_one
return Ticker(ticker).history(period=period, interval=interval,
File "/Users/ramansingh/OneDrive - weizmann.ac.il/PyCharms new/Trading/venv/lib/python3.8/site-packages/yfinance/base.py", line 157, in history
data = data.json()
File "/Users/ramansingh/OneDrive - weizmann.ac.il/PyCharms new/Trading/venv/lib/python3.8/site-packages/requests/models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

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