Closed Momoretti closed 5 years ago
Additionnal information, I compared https://devapi.royaleapi.com/clan/02P0V8GL/war and https://api.royaleapi.com/clan/2P0V8GL/war (devapi and current api). With normal api data are more recently refreshed:
{
"state": "warDay",
"warEndTime": 1530704354,
"clan": {
"tag": "2P0V8GL",
"name": "MTG France",
"participants": 45,
"battlesPlayed": 13,
"wins": 8,
"crowns": 16,
"warTrophies": 1469,
The battles played is 13 instead of 7 with devapi, so it seems to have also a big delay (more than 20 minutes) with devapi.
Do you consider that it is an other issue?
These two seem related. There is a delay in getting the latest data in the devAPI but new data can be retrieved when we add the 0.
I think this was all related to cache issues. Is this still relevant? Please reopen if it is.
Issue Report:
Did you encounter this recently, or has this bug always been there? I discovered this bug today, only with devapi If the clan tag length is shorter than 8 I need to add "0" at the beggining of the tag to get the good result. Without the 0 handling I get old data in JSON response. This appears with clan/TAG and clan/TAG/war requests.
Expected behaviour: Expected behaviour is to get data up to date which is not the case without 0 handling on clan tag
Step 1: I tried with clan id 2P0V8GL I got old data (not up to date) Step 2: I tried with 0 handling method (clan id 02P0V8GL) and I got good results Step 3: I tried again without 0 handling and I get old data again
Request Details:
Not working requests
Working requests
Response Details:
Old data with https://devapi.royaleapi.com/clan/2P0V8GL
Up to date data with https://devapi.royaleapi.com/clan/02P0V8GL
Old data with https://devapi.royaleapi.com/clan/2P0V8GL/war
Up to date data with https://devapi.royaleapi.com/clan/02P0V8GL/war