thess / MMM-MktIndex

MagicMirror module for displaying market indicies using (free) Yahoo Finance API
MIT License
4 stars 2 forks source link

failed to getcrumb #3

Closed carefreepineapple closed 3 months ago

carefreepineapple commented 3 months ago

fresh install, nothing populating. enabled debug in the module, but only finding this error:

{
        module: "MMM-MktIndex",
        debug: true,
        position: "bottom_right",
        config: {
                timeFormat: "DD-MM HH:mm",
                symbols: ["^DJI", "^IXIC", "^GSPC", "^TNX", "CL=F", "EURUSD=X"],
                // Label name for each symbol. When you use `alias`, the number of symbols and aliases should be the same.
                // If value is null or "", symbol string will be used by default.
                alias: ["DOW 30", "Nasdaq", "S&P 500", "10yr Bond", "Crude Oil", "EUR/USD"],
                updateInterval: 180,    // Query interval in seconds
        }
}
~$ npm start | grep -i mmm-mktindex
[2024-05-31 11:13:47.147] [LOG]   Module helper loaded: MMM-MktIndex
[2024-05-31 11:13:52.472] [LOG]   Connecting socket for: MMM-MktIndex
[2024-05-31 11:14:11.166] [LOG]   [MKTINDEX] Initialized.
[2024-05-31 11:14:16.533] [ERROR] [MKTINDEX] API Error:  request to https://query1.finance.yahoo.com/v1/test/getcrumb failed, reason:
[2024-05-31 11:14:17.027] [INFO]  Checking git for module: MMM-MktIndex
carefreepineapple commented 3 months ago

local connectivity issue. Updated timeout from 1500 to 3000 and stocks began to populate.