OoplesFinance.YahooFinanceAPI icon indicating copy to clipboard operation
OoplesFinance.YahooFinanceAPI copied to clipboard

Failed to get crumb issue.

Open RQISystems opened this issue 2 months ago • 2 comments

I have been using the OooplesFinance API for the last year and it has worked great. In the last week, I get a "Failed to get crumb" error trying to retrieve data. Any idea what is going wrong? I'm developing in WinUI 3 using OoplesFinance.YahooFinanceAPI version 1.7.0.

Thanks in advance Chris

RQISystems avatar Oct 31 '25 15:10 RQISystems

Seeing similar behavior starting yesterday

jvmx avatar Nov 01 '25 18:11 jvmx

same, started seeing the issue last week

vishnumsv avatar Nov 10 '25 00:11 vishnumsv

same here. But I am also located in the EU. So I am wondering if the issue mentioned in the ReadMe for EU users still valid.

agnauck avatar Nov 22 '25 12:11 agnauck

Thanks to the Python yfinance implementation and by analyzing the HTTP requests in the browser, I was able to find a solution. The issue was resolved by adding specific HTTP request headers and configuring some HttpClientHandler properties (see #126).

Shadowsith avatar Dec 30 '25 21:12 Shadowsith

@Shadowsith great work and yes this code looks good and I will merge after some testing

ooples avatar Dec 30 '25 21:12 ooples

I can confirm that this works. I was doing many tests myself in the last weeks and found out that cookies and crumb are not requred for anything I need from Europe. I don't know why some libs implemented them. I also have see that Yahoo requires the Accept headers you added

agnauck avatar Dec 30 '25 21:12 agnauck

Thanks to @Shadowsith for finding the solution and I will close this issue now

ooples avatar Dec 31 '25 19:12 ooples