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

Issue with Crumbstore.Crumb #61

Open
kjohannessen opened this issue Apr 25, 2018 · 2 comments
Open

Issue with Crumbstore.Crumb #61

kjohannessen opened this issue Apr 25, 2018 · 2 comments

Comments

@kjohannessen
Copy link

Hi.. I run my yahoo-finance historical close price retrieval using nodejs .. it works the first time I run the process which iterates through lots of symbols. When I try to run it again a few minutes later I get this error.

root.Api.main context.dispatcher.stores.CrumbStore.crumb structure no longer exists, please open an issue.
You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
Error: Failed to get crumb (root.Api.main context.plugins.ServicePlugin.xhrContext.crumbstructure no longer exists, please open an issue.)
at /home/git/xxx/xxx/node_modules/yahoo-finance/lib/yahooCrumb.js:72:13

I think this might have something to do with the new API requiring a cookie?? somehow either this has expired or should be refreshed? not an expert on this, but it happens without fail, and as the error asks for me to open an issue I am .. as you can see the error is in the yahooCrumb.js code.

@gadicc
Copy link
Collaborator

gadicc commented May 3, 2018

Hey @kjohannessen, since some changes Yahoo made about two weeks ago, there has been some random instability on some of their servers. I added this issue to the issues we're tracking on #60, thanks for reporting. As you noted, this only happens occasionally... as best I can tell, one of their load balanced servers is erroneously failing on certain valid symbols.

@kjohannessen
Copy link
Author

Thanks @gadicc .. I'm still seeing this all the time .. and missing a lot of symbols .. e.g constantly NFLX when running a batch of about 500 symbols. Let me know if you see any improvement or workaround on this. thx Kim

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