MMM-Jast
MMM-Jast copied to clipboard
Stocks do not load - Getting error "Invalid Crumb"
Module is loading but not starting and it shows API request for BMW.DE failed: Invalid Crumb. 0|MagicMirror | [2024-04-16 13:21:40.738] [WARN] API request for BMW.DE failed: Invalid Crumb
Hello @jalibu - Im getting the same error.
[17.04.2024 10:03.06.153] [LOG] fetch https://guce.yahoo.com/consent?brandType=nonEu&gcrumb=IzlMmcQ&done=https%3A%2F%2Ffinance.yahoo.com%2Fquote%2FAAPL
[17.04.2024 10:03.06.436] [LOG] fetch https://consent.yahoo.com/v2/collectConsent?sessionId=3_cc-session_ee28275b-d880-4ae2-9588-1a6625be97fd
[17.04.2024 10:03.06.763] [LOG] fetch https://consent.yahoo.com/v2/collectConsent?sessionId=3_cc-session_ee28275b-d880-4ae2-9588-1a6625be97fd
[17.04.2024 10:03.06.990] [LOG] fetch https://guce.yahoo.com/copyConsent?sessionId=3_cc-session_ee28275b-d880-4ae2-9588-1a6625be97fd&lang=de-DE
[17.04.2024 10:03.07.211] [LOG] Fetching crumb and cookies from https://finance.yahoo.com/quote/AAPL?guccounter=1...
[17.04.2024 10:03.07.514] [LOG] Success. Cookie expires on Infinity
[17.04.2024 10:03.07.740] [LOG] New crumb: yRG6Yj2wkbt
[17.04.2024 10:03.08.123] [WARN] API request for TSLA failed: Invalid Crumb
[17.04.2024 10:03.08.123] [WARN] API request for AMZN failed: Invalid Crumb
[17.04.2024 10:03.08.123] [WARN] API request for AAPL failed: Invalid Crumb
Hi @trojo1987 @mazim-co
Yahoo has changed its API. The authors of the library that I use for data fetching is working on a fix: https://github.com/gadicc/node-yahoo-finance2/issues/764 I'll monitor this and keep you and the module updated.
I'm afraid waiting is the only thing we can do at the moment.
https://github.com/gadicc/node-yahoo-finance2/issues/764#issuecomment-2061085372
Resolved by updating the package.json:
"dependencies": { "yahoo-finance2": "^2.11.2" },
then performing an npm install
https://github.com/jalibu/MMM-Jast/releases/tag/v2.9.4
I just wanted to confirm that everything is functioning properly on my end once again. Thank you! 👌
Confirmation from my side also - thanks for the quick fix !!