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

On a get market status I've suddenly started getting an AssertionError #58

Closed
swoodsy opened this issue Jul 9, 2021 · 2 comments
Closed

Comments

@swoodsy
Copy link

swoodsy commented Jul 9, 2021

At approx 17:15 GMT I started getting this error when getting the market status.
It had been working constantly throughout the day.
I was on 0.8.8 when I started getting this error and upgraded to 0.8.9 but still getting the issue

Python 3.9.6 (default, Jul 3 2021, 16:40:50)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

from yahoo_fin import stock_info
stock_info.get_market_status()
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.9/dist-packages/yahoo_fin/stock_info.py", line 965, in get_market_status
quote_data = get_quote_data("^dji")
File "/usr/local/lib/python3.9/dist-packages/yahoo_fin/stock_info.py", line 951, in get_quote_data
raise AssertionError("""Invalid response from server. Check if ticker is
AssertionError: Invalid response from server. Check if ticker is
valid.

@jafrro
Copy link

jafrro commented Jul 9, 2021

I'm seeing the same error on calls to get_quote_data().

@swoodsy
Copy link
Author

swoodsy commented Jul 10, 2021

Downloading the the latest version - 0.8.9.1 fixed this issue for me. (as detailed in Issue #59

@swoodsy swoodsy closed this as completed Jul 10, 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

2 participants