DariusLukasukas / stocks

Modern stock tracking application built with Next.js 14, React.js, Shadcn and Tailwind CSS. Leverages the Yahoo Finance API for real-time quotes, company financials, customizable charts, and relevant market news.
GNU Affero General Public License v3.0
60 stars 14 forks source link

Fetch error #1

Closed oskargoyvaerts closed 7 months ago

oskargoyvaerts commented 7 months ago

Nice project but when running it I'm getting User New crumb: yRG6Yj2wkbt ⨯ node_modules\yahoo-finance2\dist\esm\src\lib\yahooFinanceFetch.js (103:0) @ Object.yahooFinanceFetch [as _fetch] ⨯ Internal error: Error: Invalid Crumb. For Developers - https://bit.ly/yahoo-finance-api-feedback

any idea why that occurs?

DariusLukasukas commented 7 months ago

Hey! :) Thank you for reporting this issue and for the detailed error message. Unfortunately, you've encountered a known problem with the unofficial Yahoo Finance API I'm using in the project. Yahoo has recently made changes that have broken compatibility with the node-yahoo-finance2 package.

Here's a breakdown of the situation:

As of my plans, I understand this is frustrating, and I apologize for the inconvenience. I'm currently busy with other tasks but plan to investigate a fix sometime this week or next. In the meantime, please try the workarounds suggested in the GitHub issue thread.

Important Note: Please consider filling out Yahoo's feedback form: https://bit.ly/yahoo-finance-api-feedback This helps signal your interest in an official API that could bring long-term stability.

Thank you again for your patience and understanding!

DariusLukasukas commented 7 months ago

Great news! The node-yahoo-finance2 package has released an update that fixes the "Invalid Crumb" error. Please update your project's dependencies to get the latest version of the package. This should resolve the issue you were experiencing.

Let me know if you have any further problems. :)