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

Flurl.Http.FlurlHttpException: 'Call failed with status code 429 (Too Many Requests): #73

Open
kamoco opened this issue May 30, 2024 · 2 comments

Comments

@kamoco
Copy link

kamoco commented May 30, 2024

I am getting too many requests when I hit this API Call

data = await url
.WithCookie(YahooSession.Cookie.Name, YahooSession.Cookie.Value)
.GetAsync(token)
.ReceiveJson()
.ConfigureAwait(false);

Anyone else seeing this?

@kamoco
Copy link
Author

kamoco commented Jun 2, 2024

Just add the user agent in the call and it fixes the issue

data = await url
.WithCookie(YahooSession.Cookie.Name, YahooSession.Cookie.Value)
.WithHeader(YahooSession.UserAgentKey, YahooSession.UserAgentValue)
.GetAsync(token)
.ReceiveJson()
.ConfigureAwait(false);

@lukashummel
Copy link

Thanks, this works. Saved me a lot of time 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants