Skip to content
Home » JSONDecodeError: Expecting value: line 1 column 1 (char 0)

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

To solve JSONDecodeError: Expecting value: line 1 column 1 (char 0) error follow below methods.

ERROR LOG

raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

How to solve JSONDecodeError: Expecting value: line 1 column 1 (char 0) ?

To solve the JSONDecodeError: Expecting value: line 1 column 1 (char 0) error, you need to update the yfinance module. I went to the yfinance github and found that the author suggests pip install yfinance --upgrade --no-cache-dir to resolve any present difficulties. If the yfinance module is not present in your environment then install it using pip install yfinance==0.1.62. It worked for me, and I hope it works for you as well, as we appear to be dealing with similar challenges.

Alternative to Solve JSONDecodeError: Expecting value: line 1 column 1 (char 0)

If the existing yfinance Module having issues then uninstall it and install the latest version by running the below commands.

pip uninstall yfinance
pip uninstall pandas-datareader
pip install yfinance --upgrade --no-cache-dir
pip install pandas-datareader

Hope the above solution works.

Also read :

AttributeError: module ‘tensorflow._api.v1.compat.v2’ has no attribute ‘__internal__
VSCode The Python path in your debug configuration is invalid