achannarasappa / ticker

Terminal stock ticker with live updates and position tracking
GNU General Public License v3.0
4.94k stars 264 forks source link

ERROR RESTY unexpected response from Yahoo API: A3 session cookie missing from response #266

Closed kdkd closed 3 months ago

kdkd commented 5 months ago

Starting yesterday, ticker loads fine at first but after a minute or two will start saying:

ERROR RESTY unexpected response from Yahoo API: A3 session cookie missing from response, Attempt 1 ERROR RESTY unexpected response from Yahoo API: A3 session cookie missing from response, Attempt 2

over and over again. Quitting and reopening it makes it work again for a little while, but this appears again soon after.

I'm using 4.5.14 on a Mac via homebrew.

JacquardCauseway commented 5 months ago

Same issue here. Not sure if this is something on Yahoo's end?

achannarasappa commented 5 months ago

Thanks for reporting this issue. It looks like it could be specific to the EU or another region since I'm not able to replicate here in the US and the contract test is passing. I'll do some more investigation with a proxy today.

JacquardCauseway commented 5 months ago

Thanks for taking a look! I've been running it for about 2hrs today so far and haven't encountered the issue (Canada), maybe some weird glitch on Yahoo's end yesterday?

achannarasappa commented 5 months ago

Thanks for the follow up! It could definitely have been some kind of transient outage but good to hear it is working now.

I'll still do a pass with a proxy before closing this issue but sounds like it was just a temporary issue with Yahoo's API.

kdkd commented 5 months ago

It does seem fixed for me today too. In case this comes up again, I'm in the US.

corford commented 4 months ago

FYI: I'm seeing this error today (from a EU IP). If I use a US proxy, the error goes away. This happens even if I use coingecko symbols (which I assumed wouldn't need Yahoo?): e.g. -w SOLANA.CG

achannarasappa commented 4 months ago

Thanks for reporting! I'd suggest waiting a day then trying again. It could be an intermittent issue like mentioned above.

jeremytammik commented 3 months ago

Same issue here. Running this in Europe. The problem goes away if I use VPN and move to the USA.

achannarasappa commented 3 months ago

I've confirmed ticker is working from London, Amsterdam, and Montreal as of today. I expect this was due to an intermittent issue with Yahoo's API so I'll close this issue for now but if it reappears please re-open if there's a persistent problem.

adriangalilea commented 1 month ago

First time I install ticker, running it from Spain:

» ticker -w NET,AAPL,TSLA

yahoo session refresh error: unexpected response from Yahoo API: A3 session cookie missing from response after agreeing to EU consent request: 400 Bad Request

Is it this issue @achannarasappa ?

Thanks