Skip to content

ERROR - JSONDecodeError: Expecting value: line 1 column 1 (char 0) #872

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

Closed
BajajAryan310 opened this issue Jul 10, 2021 · 7 comments
Closed
Milestone

Comments

@BajajAryan310
Copy link

I am using the Code:

import yfinance as yf
Infosys = yf.Ticker("INFY.BO")
print(Infosys.info.keys())

Till here I am getting an output. But I am getting an error in the below-mentioned code:

Infosys.history(period="5mo")

Error:

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

I am unable to understand it, please help!!

@gho21
Copy link

gho21 commented Jul 10, 2021

I got the same :-(

@ericsnth
Copy link

ericsnth commented Jul 10, 2021

another solution: #868 :D

@maxmekiska
Copy link

maxmekiska commented Jul 10, 2021

I am using the Code:

import yfinance as yf
Infosys = yf.Ticker("INFY.BO")
print(Infosys.info.keys())

Till here I am getting an output. But I am getting an error in the below-mentioned code:

Infosys.history(period="5mo")

Error:

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

I am unable to understand it, please help!!

Hey,
Upgrade your yfinance version. It worked for me after that.

pip install yfinance --upgrade

yfinance==0.1.62 solves the problem.

@LinuxpowerLudo
Copy link

Same error with python 3.8 and 0.1.63 ... :( simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@andrewdoni
Copy link

same error, but when i deploy my app on heroku its not get error (simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0). I don't know why its different

@bashtage
Copy link
Contributor

Consolidating to #867.

@bashtage bashtage added this to the 0.10 milestone Jul 13, 2021
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

8 participants
@bashtage @ericsnth @LinuxpowerLudo @gho21 @maxmekiska @andrewdoni @BajajAryan310 and others