gadicc / node-yahoo-finance2

Unofficial API for Yahoo Finance
https://www.npmjs.com/package/yahoo-finance2
MIT License
353 stars 58 forks source link

Receiving this error message: "error": "Could not find window.YAHOO.context. Yahoo's API may have changed; please report." #746

Closed martincsl closed 2 months ago

martincsl commented 3 months ago

Bug Report

Describe the bug

I was normally using the API until today, when an error started to show: "error": "Could not find window.YAHOO.context. Yahoo's API may have changed; please report."

Minimal Reproduction

const result = await yahooFinance.quote("GOOG");

Environment

Browser or Node: Node Node version (if applicable): v16.13.0 Npm version: Browser verion (if applicable): Library version (e.g. 1.10.1):

Additional Context

gadicc commented 3 months ago

Hey @martincsl, thanks for the report. Can you confirm if this is still happening? I checked now and am not experiencing any issues. Yahoo's servers do occasionally have short lived issues, that can temporarily cause these kinds of issues, but get resolved on Yahoo's side. I guess I should add a note about that too.

martincsl commented 3 months ago

Hi Gady, now it's working! Thanks a lot for your response! It would be nice to add a note for future reference.

Sent from Outlookhttp://aka.ms/weboutlook


From: Gadi Cohen @.> Sent: Friday, March 8, 2024 10:53 AM To: gadicc/node-yahoo-finance2 @.> Cc: Martin @.>; Mention @.> Subject: Re: [gadicc/node-yahoo-finance2] Receiving this error message: "error": "Could not find window.YAHOO.context. Yahoo's API may have changed; please report." (Issue #746)

Hey @martincslhttps://github.com/martincsl, thanks for the report. Can you confirm if this is still happening? I checked now and am not experiencing any issues. Yahoo's servers do occasionally have short lived issues, that can temporarily cause these kinds of issues, but get resolved on Yahoo's side. I guess I should add a note about that too.

— Reply to this email directly, view it on GitHubhttps://github.com/gadicc/node-yahoo-finance2/issues/746#issuecomment-1985479840, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APQFGOPBEEETUDZPMEZKS3LYXGKENAVCNFSM6AAAAABEK62BZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBVGQ3TSOBUGA. You are receiving this because you were mentioned.Message ID: @.***>

gadicc commented 2 months ago

Hey @martincsl, (belated) thanks for reporting back, and agree re a more helpful note. The text now reads:

Could not find window.YAHOO.context. This is usually caused by temporary issues on Yahoo's servers that tend to resolve themselves; however, if the error persists for more than 12 hours, Yahoo's API may have changed, and you can help by reporting the issue. Thanks :)

and this will be in the next release. Thanks again.

gadicc commented 2 months ago

:tada: This issue has been resolved in version 2.11.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: