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

Invalid date error #83

Open
ionutcocanu opened this issue Nov 22, 2024 · 1 comment
Open

Invalid date error #83

ionutcocanu opened this issue Nov 22, 2024 · 1 comment

Comments

@ionutcocanu
Copy link

Hi,

Trying to debug myself and not sure what can I connect "Invalid date" error to. Any ideas how can I debug the issue?

I had install latest MM, AVStock and running at the moment default configuration.

Config:
{
//disabled:true,
module: "MMM-AVStock",
position: "top_left",
config: {
symbols : ["AAPL", "GOOGL", "TSLA"],
alias: ["APPLE", "GOOGLE", "TESLA"],
timeFormat: "DD-MM HH:mm",
debug: true,
}
},

Logs
[2024-11-22 17:42:09.077] [LOG] fetch https://consent.yahoo.com/v2/collectConsent?sessionId=3_cc-session_204c8081-21c7-4c62-9af1-83fdbe93dd74
[2024-11-22 17:42:09.175] [LOG] fetch https://guce.yahoo.com/copyConsent?sessionId=3_cc-session_204c8081-21c7-4c62-9af1-83fdbe93dd74&lang=nb-NO
[2024-11-22 17:42:09.271] [LOG] Fetching crumb and cookies from https://finance.yahoo.com/quote/AAPL?guccounter=1...
[2024-11-22 17:42:09.348] [ERROR] We expected a redirect to guce.yahoo.com, but got https://finance.yahoo.com/quote/AAPL/
[2024-11-22 17:42:09.349] [ERROR] We'll try to continue anyway - you can safely ignore this if the request succeeds
[2024-11-22 17:42:09.353] [LOG] Success. Cookie expires on Infinity
[2024-11-22 17:42:09.358] [LOG] fetch https://query1.finance.yahoo.com/v1/test/getcrumb

Display
image

Thank you!

@lavolp3
Copy link
Owner

lavolp3 commented Jan 6, 2025

Hi!
This is probably not an invalid date error but an error in fetching the API data.
Can you provide more logs? You have only provided for the cookie generation at the beginning. After that the module tries to fetch data from the API.
You will probably see some errors in the logs for that.

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

2 participants