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

Stocks do not load - Getting error "Invalid Crumb" #70

Closed
trojo1987 opened this issue Apr 16, 2024 · 7 comments
Closed

Stocks do not load - Getting error "Invalid Crumb" #70

trojo1987 opened this issue Apr 16, 2024 · 7 comments

Comments

@trojo1987
Copy link

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

@mazim-co
Copy link

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 

@jalibu
Copy link
Owner

jalibu commented Apr 17, 2024

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: gadicc/node-yahoo-finance2#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.

@trojo1987
Copy link
Author

gadicc/node-yahoo-finance2#764 (comment)

@kevsfastz
Copy link

Resolved by updating the package.json:

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

then performing an npm install

@jalibu
Copy link
Owner

jalibu commented Apr 17, 2024

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

@jalibu jalibu changed the title Invalid Crumb Stocks do not load - Getting error "Invalid Crumb" Apr 17, 2024
@mazim-co
Copy link

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

@Matzeonom
Copy link

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

@jalibu jalibu closed this as completed Jun 4, 2024
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

5 participants