Failed to get crumb issue.
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
Seeing similar behavior starting yesterday
same, started seeing the issue last week
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.
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 great work and yes this code looks good and I will merge after some testing
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
Thanks to @Shadowsith for finding the solution and I will close this issue now