404 accessing endpoint for some clubs

Sort:
ImperfectAge

This one, for example  https://api.chess.com/pub/club/uschess  (US Chess on chess.com)

$ curl https://api.chess.com/pub/club/uschess
{"code":0,"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 ."}

Specifying the user agent does not help:

curl -H "User-Agent: Username:ImperfectAge, Email:.... " https://api.chess.com/pub/club/uschess

Same error.

ImperfectAge

With the full header showing 404

$ curl -i -H "User-Agent: Username:ImperfectAge, Email: <removed>" https://api.chess.com/pub/club/uschess
HTTP/2 404 
date: Tue, 05 Mar 2024 20:07:06 GMT
content-type: application/json; charset=utf-8
content-length: 173
x-chesscom-matched: pubapi_club_Driver
etag: W/"8b6d437c6abd82c9286a4a94dbe908b3"
link: <https://api.chess.com/context/Exception.jsonld>;; type="application/ld+json"
last-modified: Tuesday, 05-Mar-2024 19:53:53 GMT+0000
access-control-allow-origin: *
cache-control: public, max-age=30
expires: Tue, 05 Mar 2024 20:07:23 GMT
x-chesscom-meta: lean=cached
x-chesscom-request-id-lb: 026d02c480fcbfd956512f18cd90d6a6
x-chesscom-request-id-cdn: 85fcbaa789ce711e-IAD
x-chesscom-servedby: 142
strict-transport-security: max-age=63072000; includeSubDomains; preload
cf-cache-status: HIT
age: 13
set-cookie: __cf_bm=lb5SosN.IhS8SKsi44LqibYr2O4JeXUpqRtWIzmHSWc-1709669226-1.0.1.1-Wcc6vTYCuheu6mPj9RdRlB1N4e3R3EQjaXvE5a6Tp_j1hig5dWdENExpp2XlXJyHhlHpTeAEncAvGrG1qdDqv6S6SaP6Y1q7w_ZM_Apwz_k; path=/; expires=Tue, 05-Mar-24 20:37:06 GMT; domain=.chess.com; HttpOnly; Secure; SameSite=None
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=MCLZFCN7LMOmuwtyLrkMu6KmD6dI%2F78rTQR9P%2F0aVFqQ%2BPhIoEdDE3qfLpH0gI9xfE9HYH1dDnTBK4jRuSEm%2BXSx5YSlT%2Bq%2FA3ajjvv57iu78Rfpo3NCtIKMeoxP05g%3D"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":1,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 85fcbaf7ed155709-DUB
alt-svc: h3=":443"; ma=86400

{"code":0,"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 ."}

Martin_Stahl

Might have something to do with the club size

ghefley

I get bakc a JSON string with now error

'''

{"@id":"https://api.chess.com/pub/club/uschess","name":"USChess","club_id":88644,"country":"https://api.chess.com/pub/country/US","location":"Saint Louis, Missouri","average_daily_rating":974,"members_count":57754,"created":1578348733,"last_activity":1705952392,"admin":["https://api.chess.com/pub/player/samcopeland","https://api.chess.com/pub/player/kohnar","https://api.chess.com/pub/player/syndicateofrequiem","https://api.chess.com/pub/player/knight_of_valor","https://api.chess.com/pub/player/jordanh","https://api.chess.com/pub/player/rodilihp","https://api.chess.com/pub/player/mjh25","https://api.chess.com/pub/player/uschessfederation","https://api.chess.com/pub/player/martin_stahl","https://api.chess.com/pub/player/smyslovfan","https://api.chess.com/pub/player/juditsztaray","https://api.chess.com/pub/player/scacchi77","https://api.chess.com/pub/player/jcohen42","https://api.chess.com/pub/player/dare-dare","https://api.chess.com/pub/player/grymsailor"],"visibility":"public","join_request":"https://www.chess.com/club/join/88644","icon":"https://images.chesscomfiles.com/uploads/v1/group/88644.58fcc946.50x50o.7c85fa41dc29.png","description":"<p>The US Chess Federation (US Chess) is the official governing body and nonprofit 501(c)(3) organization for chess players and chess supporters in the United States. Our mission is to empower people, enrich lives, and enhance communities through chess. Our vision is that chess is recognized as an essential tool that is inclusive, benefits education and rehabilitation, and promotes recreation and friendly competition.</p>\n<p><strong>The purpose of this club is to provide an open community for USChess players to connect, play, and discuss chess.</strong> Registered USChess members can also join the members only club and earn an official USChess online rating: <strong><a href=\"https://www.chess.com/club/uschess-members-only\">https://www.chess.com/club/uschess-members-only</a></strong>. Become a member at <strong><a href=\"https://new.uschess.org/join-us-chess\">https://new.uschess.org/join-us-chess</a></strong>.</p>;\n<ul>\n<li>Learn more about USChess: <a href=\"https://new.uschess.org/home/\" target=\"_blank\" rel=\"noreferrer noopener\">https://new.uschess.org/home/</a>.</li>;\n<li>Find a chess tournament: <a href=\"http://www.uschess.org/tlas/upcoming.php\" target=\"_blank\" rel=\"noreferrer noopener\">http://www.uschess.org/tlas/upcoming.php</a></li>;\n<li>Check your official USChess rating: <a href=\"https://new.uschess.org/players/search/\" target=\"_blank\" rel=\"noreferrer noopener\">https://new.uschess.org/players/search/</a></li>;\n</ul>\n<p>\u00a0</p>\n<p>USChess is also the USA's official representative in the Live Chess World League, Pan American Live Chess League, and Chess.com Nations League.\u00a0</p>","url":"https://www.chess.com/club/uschess"}''
Martin_Stahl

@ghefley that's not the club being asked about

stephen_33
Martin_Stahl wrote:

Might have something to do with the club size

But the request being made is for the basic profile data of that club, not the list of members which we know causes problems (57,760 Members).

https://api.chess.com/pub/club/uschess

This is a typical one...

https://api.chess.com/pub/club/levice

Martin_Stahl

I'm not certain but the Legend club is the same issue and it's huge

Martin_Stahl

But US Chess just now worked when I tried

🤔

stephen_33

Not working for me when I try to open in my browser....

{"code":0,"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 ."}
Martin_Stahl

Yeah, not working again for me. Still likely a timeout related issue, though I'm not 100% sure size is the reason now