MMM-Jast icon indicating copy to clipboard operation
MMM-Jast copied to clipboard

Stocks do not load - Getting error "Invalid Crumb"

Open trojo1987 opened this issue 10 months ago • 7 comments

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

trojo1987 avatar Apr 16 '24 11:04 trojo1987

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 

mazim-co avatar Apr 17 '24 08:04 mazim-co

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.

jalibu avatar Apr 17 '24 08:04 jalibu

https://github.com/gadicc/node-yahoo-finance2/issues/764#issuecomment-2061085372

trojo1987 avatar Apr 17 '24 12:04 trojo1987

Resolved by updating the package.json:

"dependencies": { "yahoo-finance2": "^2.11.2" },

then performing an npm install

kevsfastz avatar Apr 17 '24 15:04 kevsfastz

https://github.com/jalibu/MMM-Jast/releases/tag/v2.9.4

jalibu avatar Apr 17 '24 15:04 jalibu

I just wanted to confirm that everything is functioning properly on my end once again. Thank you! 👌

mazim-co avatar Apr 17 '24 16:04 mazim-co

Confirmation from my side also - thanks for the quick fix !!

Matzeonom avatar Apr 17 '24 17:04 Matzeonom