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

ERROR RESTY unexpected response from Yahoo API: non-2xx response code: 307 Temporary Redirect #263

Open
reece146 opened this issue Jan 25, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@reece146
Copy link

The last few days ticker hasn't been working properly. After start up it fails to prompt with:

ERROR RESTY unexpected response from Yahoo API: non-2xx response code: 307 Temporary Redirect
Error: unexpected response from Yahoo API: non-2xx response code: 307 Temporary Redirect

Not a coder but I'm guessing Yahoo changed something in their API or is monkeying with what is fronting the API.

I think this started on Monday but am not certain.

Environment:

  • OS: Arch w/ linux 6.7.0-arch3-1
  • Terminal: konsole
  • Terminal Version: 23.08.4
  • ticker Version: ticker-4.5.14-2, AUR

Thanks.

@reece146 reece146 added the bug Something isn't working label Jan 25, 2024
@achannarasappa
Copy link
Owner

Thanks for reporting! Yes it's likely related to an API change but the strange thing is the contract test is still passing which should detect this kind of problem automatically. I'll have a closer look today.

If you don't mind, could you share the country you are in? I've found instances where the API responds differently in various regions (e.g. EU because of GDPR)

@reece146
Copy link
Author

Great stuff.

I'm in Canada.

@RTDecko
Copy link

RTDecko commented Jan 25, 2024

Experiencing same problem.

I'm in the US.

@achannarasappa
Copy link
Owner

There was a bug which resulted in this error message being incorrectly returned. I've pushed a fix for the error message but the underlying issue is that Coingecko now effectively requires an API key to use (1-2 API calls / min down from 30 API calls / min)

{"status":{"error_code":429,"error_message":"You've exceeded the Rate Limit. Please visit https://www.coingecko.com/en/api/pricing to subscribe to our API plans for higher rate limits."}}

As a workaround, you can use the symbols for crypto assets listed on Yahoo (e.g. SOL-USD) rather than Coingecko (SOLANA.CG or SOL.X).

As a permanent fix, either Coingecko needs to be replaced by another price feed or an option needs to be added to set a Coingecko API key. Lookout for an update in the near future to address this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants