Club Api Calls Fail

Sort:
Avatar of AlAlper

https://api.chess.com/pub/club/promote-to-king/members FAILS

code0
message"An internal error has occurred. Please contact Chess.com Developer's Forum for further help https://www.chess.com/club/chess-com-developer-community ."

https://api.chess.com/pub/club/grand-tourneys/members Works

I think it is due to the number of members in the club.

But countries work great. i.e. https://api.chess.com/pub/country/US/players

Avatar of Ximoon

This is an undocumented API limitation that was imposed earlier this year (or was it last year already?) : this API endpoint will return an error if the club has a private members list. Of course the error code doesn't match. And the feedback I had was that's the side effect of some other change but they don't seem to be in a mood to revert it.

Avatar of stephen_33

I remember that and I argued that it should return a "403" (access prohibited) rather than the "404" (page not found) because it's more appropriate. I can imagine someone might waste a lot of time establishing exactly why they can't access an endpoint.

As usual it fell on deaf ears.

Avatar of AlAlper
wrote:

API endpoint will return an error if the club has a private members list.

Looks right but here is a different problem.

https://api.chess.com/pub/club/improvers/members FAILS with different Code
Private Club with Public Member list.

Avatar of stephen_33

I seem to remember encountering code 3024 before and it's provided by Cloudflare, not the site's servers. When I search I can't find it though, so I may be wrong?

Avatar of AlAlper

Or this https://api.chess.com/pub/club/chess-com-community/members FAILS

Public Club with Public Member list same code

Avatar of Tricky_Dicky

Promote to King has it's member list set to private. This stops the API endpoint from returning a valid list and as C.C can't be bothered with the API anymore there is no sensible data information.

It is an intentional feature without any proper return information.

Avatar of stephen_33

Something not right there Allen? Although when I check it with an endpoint I use a lot...

https://api.chess.com/pub/club/team-match-championship-league/members

... no problem. Same with other ones I use.

Avatar of Calebaleb12
wrote:

I remember that and I argued that it should return a "403" (access prohibited) rather than the "404" (page not found) because it's more appropriate. I can imagine someone might waste a lot of time establishing exactly why they can't access an endpoint.

As usual it fell on deaf ears.

agree

Avatar of AlAlper
wrote:

Something not right there Allen? Although when I check it with an endpoint I use a lot...

https://api.chess.com/pub/club/team-match-championship-league/members

... no problem. Same with other ones I use.

Do any have over 1000 members? Countries go to 10000 maybe they are off by a decimal place.

Avatar of AlAlper

@Ximoon did this break around the time the leader boards timed out. Maybe just a time out error?

Avatar of MANH-QUAN2017

hihi

Avatar of stephen_33
wrote:
 

Do any have over 1000 members? Countries go to 10000 maybe they are off by a decimal place.

(Don't remember seeing a notification for this)

But no, under 1000 members so it might be that's the threshold that's being applied.