-
Notifications
You must be signed in to change notification settings - Fork 11
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
Timed out getting crumb. #125
Comments
Do you see any delay in accessing the Yahoo finance the very time from your location? |
What do you mean by "Are you noticing a delay at your location?" ? I notice that the sensors provide values, but the error is still in the log. |
The integration retries getting cookie info and that is why sensors have value. This should coincide with the behavior when accessing Yahoo Finance website the very first time. If sensors report value then you will have to just ignore the error. This could be related to your location where GPR authorization has been enforced. |
If I understand you correctly then the error is triggered by my location and if I still get values then I can just ignore this error. Correct? |
The crumb cookie is needed for extracting data. "Timed out getting crumb" is the exception thrown if the request to obtain the cookie did not complete in 15 seconds. Whenever symbol data is refreshed, if the cookie is missing, then an attempt will be made to get it first. If the error is not logged continuously, then the cookie request eventually succeeded, meaning we recovered and the error can be ignored. The initial failure will still get logged as an error. For more investigation, you would have to use Networking monitoring tools like in Chrome Dev Tools and see what does the traffic for the very initial request look like. |
I'm experiencing this issue. My sensors do not provide values. I don't know exactly when it started. I have set my home assistant logging config like:
But that does not provide any additional logs. I'll test if HA 2024.5.3 is better. EDIT: |
And now it magically works again. After a few days of not working and a few HA restarts. Let's hope it keeps working 🤞 |
There has been no change in the integration regarding this. The request waits for 15 seconds before throwing that exception and then retries later. |
Here's the error I get on startup This error originated from a custom integration. Logger: homeassistant.setup Error during setup of component yahoofinance There are no sensor.yahoofinance entities listed Looking back at the comments, are we suggesting an HA upgrade will help? I am running "Home Assistant 2023.4.6 |
Yes the Core is quite old, that is from April 2023. It seems async.timeout is present in Python 3.11 which was adopted in 2023.6. I think updating core would be necessary. |
I've updated and still have this error from UI Logger: custom_components.yahoofinance Unable to get crumb, re-trying in 15 seconds and if I look in the logs I see these lines (non-Yahoo lines removed) |
Was the data successfully obtained in subsequent fetch? |
ah yes, it's better today. It's pulled BP and FTSE but not Experian. Let me check the ticker symbol for Experian as that looks more like my error |
Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht
Logger: custom_components.yahoofinance.coordinator
Quelle: custom_components/yahoofinance/coordinator.py:105
Integration: Yahoo Finance (Dokumentation, Probleme)
Erstmals aufgetreten: 22:00:59 (1 Vorkommnisse)
Zuletzt protokolliert: 22:00:59
Timed out getting crumb.
The text was updated successfully, but these errors were encountered: