yahoofinance icon indicating copy to clipboard operation
yahoofinance copied to clipboard

v1.1.10 stops retrieving data

Open PKort opened this issue 1 year ago • 1 comments

Hi, I am on version 1.1.9, integration is working correctly. I have netities defined as sensor.yahoofinance_symbol and they are correctly retrieveing values. After upgrade to v1.1.10 integration stops retrieving data anymore. Tried couple of times, the same result. Kind regards, PKort

PKort avatar Oct 31 '22 20:10 PKort

Do you see anything related to YahooFinance in the logs? Can you share your setup?

iprak avatar Oct 31 '22 20:10 iprak

same issue here. i see the following in the logs

` Log Details (ERROR) This error originated from a custom integration. Logger: custom_components.yahoofinance.coordinator Source: custom_components/yahoofinance/coordinator.py:197 Integration: Yahoo Finance (documentation, issues) First occurred: 9:40:34 PM (131 occurrences) Last logged: 10:56:08 PM

Timed out getting data from https://query1.finance.yahoo.com/v7/finance/quote?symbols=BSX `

and another error as follows,

` Log Details (WARNING) This error originated from a custom integration. Logger: custom_components.yahoofinance.coordinator Source: custom_components/yahoofinance/coordinator.py:129 Integration: Yahoo Finance (documentation, issues) First occurred: 9:40:42 PM (131 occurrences) Last logged: 10:56:08 PM

Error obtaining data, retrying in 20 seconds. `

I am using HA OS and on 2022.11.1. the sensor currently shows "unavailable". when i follow the links, it wors fine in the webbroswer so looks like its the HA side which is causing the issue? thanks log

pioneershahid avatar Nov 07 '22 22:11 pioneershahid

Yes that url looks ok. Can you try some other symbol?

iprak avatar Nov 08 '22 12:11 iprak

Thanks for the reply. I changed the symbol as follows, yahoofinance: show_trending_icon: true scan_interval: hours: 1 symbols: - BSX - ISTNX I am getting same error. when i enter https://query1.finance.yahoo.com/v7/finance/quote?symbols=ISTNX in the webrowser, it works fine. HA is showing unavailable with following error in the logs.

Capture

pioneershahid avatar Nov 08 '22 13:11 pioneershahid

That seems bizarre.

You can try manually downgrading by downloading the previous release from https://github.com/iprak/yahoofinance/releases/tag/v1.1.9 and then copying the contents of the zipped folder content yahoofinance-1.1.9.zip\yahoofinance-1.1.9\custom_components\yahoofinance into YourHassio\config\custom_components\yahoofinance.

iprak avatar Nov 09 '22 12:11 iprak

Yes, downgrade solves the issue. I uninstalled the extension from HACS, and then re-installed it again manually choosing v1.1.9. It is working again. But v1.1.10 is not working for me.

PKort avatar Nov 09 '22 12:11 PKort

That seems bizarre.

You can try manually downgrading by downloading the previous release from https://github.com/iprak/yahoofinance/releases/tag/v1.1.9 and then copying the contents of the zipped folder content yahoofinance-1.1.9.zip\yahoofinance-1.1.9\custom_components\yahoofinance into YourHassio\config\custom_components\yahoofinance.

in my case, it is not working. I am getting same error again and again. i manually download previous versions with same results. not sure what else i need to do to make it work :( happy to create new ticket or issue if you like. thanks

2022-11-10 11:22:11.036 DEBUG (MainThread) [custom_components.yahoofinance.coordinator] Finished fetching YahooSymbolUpdateCoordinator data in 15.006 seconds (success: False) 2022-11-10 11:22:11.037 DEBUG (MainThread) [custom_components.yahoofinance] Coordinator did not report any data, requesting async_refresh 2022-11-10 11:22:11.039 DEBUG (MainThread) [custom_components.yahoofinance.coordinator] Requesting data from 'https://query1.finance.yahoo.com/v7/finance/quote?symbols=ISTNX' 2022-11-10 11:22:11.055 DEBUG (MainThread) [custom_components.yahoofinance.sensor] Created entity for target_currency=None 2022-11-10 11:22:11.056 INFO (MainThread) [custom_components.yahoofinance.sensor] Entities added for ['ISTNX'] 2022-11-10 11:22:11.064 WARNING (MainThread) [custom_components.yahoofinance.coordinator] Error obtaining data, retrying in 20 seconds. 2022-11-10 11:22:11.068 DEBUG (MainThread) [custom_components.yahoofinance.sensor] ISTNX Coordinator data is None 2022-11-10 11:22:11.068 INFO (MainThread) [custom_components.yahoofinance.sensor] ISTNX available=False 2022-11-10 11:22:26.041 ERROR (MainThread) [custom_components.yahoofinance.coordinator] Timed out getting data from https://query1.finance.yahoo.com/v7/finance/quote?symbols=ISTNX 2022-11-10 11:22:26.042 DEBUG (MainThread) [custom_components.yahoofinance.coordinator] Finished fetching YahooSymbolUpdateCoordinator data in 15.003 seconds (success: False) 2022-11-10 11:22:26.043 WARNING (MainThread) [custom_components.yahoofinance.coordinator] Error obtaining data, retrying in 20 seconds. 2022-11-10 11:22:26.044 DEBUG (MainThread) [custom_components.yahoofinance.sensor] ISTNX Coordinator data is None 2022-11-10 11:22:26.044 INFO (MainThread) [custom_components.yahoofinance.sensor] ISTNX available=False

pioneershahid avatar Nov 09 '22 19:11 pioneershahid

I have not been able to reproduce this issue. 1.1.10 did not modify the data load, the request seems to be failing after waiting for 20 seconds which is a mystery. Where is your HomeAssistant instance installed?

iprak avatar Nov 12 '22 12:11 iprak

Hiya, I have HA OS installed on lenovo ThinkCentre mini-PC. I have the system running from last 1 year. not sure if I mentioned previously, this integration was running fine up until Aug/Sep. from last 2-3 months, I started seeing sensor unavailable.

pioneershahid avatar Nov 12 '22 12:11 pioneershahid

Do you see the error all the time? Can you access https://query1.finance.yahoo.com/v7/finance/quote?symbols=ISTNX from that machine successfully? I have reached out to Dev community for guidance.

iprak avatar Nov 12 '22 12:11 iprak