Unexplained error returns

Sort:
Tricky_Dicky

On the 8th September I got a 'Error 502': Database overload. First time ever.

Not sure now where that is documented now as it is no longer in the spec?

Today (9th September) I've got a 'Error 429': 'we are refusing to interpret your request due to rate limits'

Again never had this before.


From the spec:

Your serial access rate is unlimited. If you always wait to receive the response to your previous request before making your next request, then you should never encounter rate limiting.

However, if you make requests in parallel (for example, in a threaded application or a webserver handling multiple simultaneous requests), then some requests may be blocked depending on how much work it takes to fulfill your previous request. You should be prepared to accept a "429 Too Many Requests" response from our server for any non-serial request that you make.

In some cases, if we detect abnormal or suspicious activity, we may block your application entirely. If you supply a recognizable user-agent that contains contact information, then if we must block you application we will attempt to contact you to correct the problem.


I NEVER make parallel requests. Never have done and the module was one I have run virtually everyday for the past 4+ years.

Some understanding of what is happening would be appreciated.

MasterMatthew52

Are the 429s recurring? I received 2 but have not since.

Tricky_Dicky

Just one so far. Seems the API is showing cracks.

Error returns, the player profile endpoint date problems, the stats endpoint rating issues. Still no resolution for the country code.

From the user view looks to be falling apart.

On the bright side the video games release for the teenagers looks to be going well.

MasterMatthew52

To add to the issues - I've had quite a few requests that have never been successful.

The latest example I have is https://api.chess.com/pub/tournament/2023-chess-com-daily-chess-championship but there are many more tournaments like this one.

Martin_Stahl

502 errors are server side errors and if encountered there's nothing you can do really.

Not sure on the 429 if you're only running one instance of your code and it's not requesting motre than one endpoint at a time.

Tricky_Dicky

Yes, getting a tournament return for the really big ones is impossible. Same issue as the country code I suspect. Too much data.

Tricky_Dicky

Thanks Martin. Yes. I'm aware of the distinction.