You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the client in a for-loop, Toornament will eventually start saying NO and return a HTTP Status 429: Too many requests. This should be dealt with in a single method, so the logic for firing the request and extracting the response should be extracted from all the separate methods.
We can then check for a 200 code, or deal with errors in a better way.
I'm wondering if that's why I can sometime get results and sometimes can't. For some reason, I can never get the list of disciplines anymore, and can't get tournaments by id. I actually can't get anything by id. I only use the for-loop after the request has been made and a List object returned. So it's beyond me why nothing turns up.
When using the client in a
for-loop
, Toornament will eventually start saying NO and return a HTTP Status 429: Too many requests. This should be dealt with in a single method, so the logic for firing the request and extracting the response should be extracted from all the separate methods.We can then check for a 200 code, or deal with errors in a better way.
Documentation on errors can be found here: https://developer.toornament.com/overview/response-codes
The text was updated successfully, but these errors were encountered: