thess / MMM-MktIndex

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

can't get any stock info #4

Open lshvarzberg opened 1 month ago

lshvarzberg commented 1 month ago

This module had worked for some time but several weeks ago I have stopped receiving any stock data. Now all I get is empty table I have reinstalled the module but this did not change anything. Still no data

Here is what I see when I run manually npm start:

[2024-06-10 19:53:48.117] [ERROR] [MKTINDEX] API Error: request to https://finance.yahoo.com/quote/AAPL failed, reason:

The message cuts at “reason” so not much help there …

Any ideas what could go wrong?

thess commented 1 month ago

Yahoo finance site changed some re-direction locations. Fixed by: 03ce9f95731bd80c0f0f26e94768307fa1d0052c

Upgrade yahoo-finance2 to v2.13,3

lshvarzberg commented 1 month ago

I have already upgraded to the latest rev a couple of days ago, but the problem persists ......

{ "name": "MMM-MktIndex", "version": "1.3.2", "description": "MagicMirror Module for displaying market indexes from Yahoo Finance", "main": "MMM-MktIndex.js",

..........................

}, "dependencies": { "yahoo-finance2": "^2.11.3" }, "devDependencies": {} }

On Thu, Jun 13, 2024 at 7:29 PM Ted Hess @.***> wrote:

Yahoo finance site changed some re-direction locations. Fixed by: 03ce9f9 https://github.com/thess/MMM-MktIndex/commit/03ce9f95731bd80c0f0f26e94768307fa1d0052c

Upgrade yahoo-finance2 to v2.13,3

— Reply to this email directly, view it on GitHub https://github.com/thess/MMM-MktIndex/issues/4#issuecomment-2167098739, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZLJB622NVM3MFMYBBJQ5NTZHJIQFAVCNFSM6AAAAABJJMWGZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRXGA4TQNZTHE . You are receiving this because you authored the thread.Message ID: @.***>

thess commented 1 month ago

After updating from the repo in MMM-MktIndex, did you execute: $ npm install

You can check what's currently installed with: $ npm ls

lshvarzberg commented 1 month ago

Yes, I did npm install, but this did not fix my problem. I started looking for solutions and workarounds online and somehow stumbled into a page where they suggested the following command:

npm i @.***

I tried it and the module started working!

So now it works, hopefully for a while!

Thank you, Leo

On Fri, Jun 14, 2024 at 3:56 AM Ted Hess @.***> wrote:

After updating from the repo in MMM-MktIndex, did you execute: $ npm install

You can check what's currently installed with: $ npm ls

— Reply to this email directly, view it on GitHub https://github.com/thess/MMM-MktIndex/issues/4#issuecomment-2167774882, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZLJB6ZZKMUHPC2S3DFK7CDZHLD4ZAVCNFSM6AAAAABJJMWGZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRXG43TIOBYGI . You are receiving this because you authored the thread.Message ID: @.***>