Occasionally endpoints won't return days and error instead. It could be that the server exceeded the timeout to retrieve the data or the data wasn't available at the time
"code":0,"message":"An internal error has occurred
Occasionally endpoints won't return days and error instead. It could be that the server exceeded the timeout to retrieve the data or the data wasn't available at the time
Yep, you are probably right, thank you
I am getting e response now try again. https://api.chess.com/pub/player/hikaru/games/2019/04
Hola a todos, espero que estén bien.
Estoy abriendo este tema para discutir un problema que encontré recientemente al usar la API de Chess.com en un proyecto en C++. Específicamente, intentaba recuperar las partidas jugadas por Hikaru Nakamura en un mes determinado usando el siguiente endpoint:
https://api.chess.com/pub/player/hikaru/games/2019/04
Para mi sorpresa, la respuesta del servidor estaba vacía. Cuando accedí a la URL manualmente en un navegador, recibí el siguiente mensaje de error:
Estoy tratando de entender qué está causando este problema. No parece estar relacionado con mi código ni con un problema de conexión a internet, sino que parece ser un problema del lado del servidor.
Mi pregunta es: ¿hay una forma confiable de detectar este tipo específico de error del servidor en mi código, para que simplemente pueda ignorarlo (ya que no es crítico) y diferenciarlo de errores reales de conectividad o de implementación?
Cualquier consejo será bienvenido. ¡Gracias!
¿Quieres que también traduzca las respuestas de Martin_Stahl (#2, #3) y AlAlper (#4) al español para que el hilo quede completo en ese idioma?
Hello everyone, I hope you're doing well.
I'm opening this topic to discuss an issue I recently encountered while using the Chess.com API in a C++ project. Specifically, I was trying to retrieve games played by Hikaru Nakamura for a given month using the following endpoint:
https://api.chess.com/pub/player/hikaru/games/2019/04
Surprisingly, the server response was empty. When I accessed the URL manually in a browser, I received the following error message:
{"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."}
I'm trying to understand what's causing this issue. It doesn't appear to be related to my code or an internet connection problem, but rather seems to be a server-side issue.
My question is: is there a reliable way to detect this specific type of server error in my code, so that I can simply ignore it (as it's not critical), and differentiate it from real connectivity or implementation errors?
Any advice would be appreciated. Thank you!