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

fc.yahoo.com on port 443 (https) is not reachable #1924

Open
sergiomnb opened this issue May 4, 2024 · 2 comments
Open

fc.yahoo.com on port 443 (https) is not reachable #1924

sergiomnb opened this issue May 4, 2024 · 2 comments

Comments

@sergiomnb
Copy link

Describe bug

I had used this library some time ago and everything was fine ,I take it up again today and it doesn't work. What must have changed ? did they put a token ? what are these crumbs ? nothing is documented , search and search but nothing to do. So ,like in the good old days ,I edited the file data.py line 163 and changed fc.yahaoo.com with url='https://finance.yahoo.com/quote/AMD',.
Now it works.

Simple code that reproduces your problem

https://fc.yahoo.com/ on browser

Debug log

DEBUG Entering download()
DEBUG Disabling multithreading because DEBUG logging enabled
DEBUG Entering history()
DEBUG Entering _fetch_ticker_tz()
DEBUG Entering get()
DEBUG url=https://query2.finance.yahoo.com/v8/finance/chart/ACN
DEBUG params=frozendict.frozendict({'range': '1d', 'interval': '1d'})
DEBUG Entering _get_cookie_and_crumb()
DEBUG cookie_mode = 'basic'
DEBUG Entering _get_cookie_and_crumb_basic()
ERROR Failed to get ticker 'ACN' reason: HTTPSConnectionPool(host='fc.yahoo.com', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0d6219a10>: Failed to establish a new connection: [Errno 111] Connection refused'))

Bad data proof

No response

yfinance version

0.2.38

Python version

No response

Operating system

No response

@i418c
Copy link

i418c commented May 15, 2024

Check that the domain isn't blocked by a DNS blocker like PiHole.

@TobiasLaving
Copy link

Also had this issue, editing the file works

To put the pihole discussion to rest I tried with both my wifi and carrier, same result.
Perhaps the fc domain is not working in some parts of the world?
I am in sweden for example.

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

3 participants