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 #760
Comments
Getting same issue now on the yf.download() call, but used it successfully this morning. Didn't make any changes to my version today. |
Is experiencing the same problem. Was running my service normally as of last night. |
Also same issue, was working fine about an hour ago. I was on an older version of yfinance, same error before and after updating. |
Same here, worked well 2 hours ago |
Yep same error for me as well when running any of the history commands, for example: |
same issue, is yahoo finance updating again...sigh |
Having the same issue! Tried other versions of yfinance. |
Same issue :( - Started about half an hour ago. |
Also having the same issue! |
me too! Getting this error though. With 0.1.59 and 0.1.61 Exception in thread Thread-6: |
same same.... can't believe they can't make it more stable. |
happened before? |
Same issue this morning. Happened mid-day. |
Line 157 in 1cc8d96
|
for me, adding a user agent fixed the problem:
Line 152 in 1cc8d96
But I'm not sure what the user-agent should be for a project like this, so I'm hesitant to create a PR for this. |
Works for me now: line: 151 |
Worked for me. |
can you also try add
|
It worked for me as well, on Linux. @djl0 I think you definitely should create a PR. |
What's the best way to edit the package and implement these changes locally? Would like to try it myself. |
Fixed with 0.1.62. Please upgrade using |
Worked for me! |
The same issue
It seems that upgrading does not work for me |
@JiaxinLIU0998 try: |
Fixed it by installing from git:
Works! |
Anyone know how to fix this issue on Heroku? What should be added to the requirements file? |
See issue #764 |
i noticed the fix with the upgrade. anyone seeing adj close column coming through? |
pip install -U yfinance worked for me |
Hi, I am using yfinance daily. Thank you very much for support! But today I received on all scripts I am using this error:
Something changed with new version that is causing this?
Traceback (most recent call last):
File "C:/Users/user/Desktop/NOTES/Codes/project/yf.py", line 7, in
prices.append(yf.Ticker(ticker).history(period="1d")["Close"].values[0])
File "C:\Users\user\Desktop\NOTES\Codes\projectI\venv\lib\site-packages\yfinance\base.py", line 157, in history
data = data.json()
File "C:\Users\user\Desktop\NOTES\Codes\project\venv\lib\site-packages\requests\models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\json_init_.py", line 357, in loads
return _default_decoder.decode(s)
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\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)
The text was updated successfully, but these errors were encountered: