NWNHT / ChessPlotter

0 stars 0 forks source link

Potential for additional error handling when request user games from chess.com #6

Open NWNHT opened 1 year ago

NWNHT commented 1 year ago

Currently if the request fails due to API limit then it just tries again a single time, the second time it fails it errors out.

A moderately simple solution to this is to handle the second error and just send a message to the user to try again.

In a better solution I can just keep trying or ideally just fix the problem of the chess.com API and actually correctly manage requests.

NWNHT commented 1 year ago

With a 2022-10-10 commit to main I have improved the consistency slightly by using the chess.com package tts argument to add a larger and larger delay to each request as well as a global variable to change the delay. Will have to monitor and see if this has made a difference or if the errors persist.