Results 1 to 8 of 8

Thread: Bug in the API

  1. #1

    Bug in the API

    The websites and bots using the API works perfectly fine during normal wars but for some reason it doesn't work during CWL please fix it

  2. #2
    Hello,
    I agree, there are some bugs in the API. But, the API work well during the CWL.

    My website work perfectly during the CWL : clashspot.net

    Contact the websites and bots authors, because yours bugs are in their softwares.

  3. #3
    Fresh Spawn
    Join Date
    Jan 2019
    Posts
    7
    Hi.
    Quote Originally Posted by SoldatBourrin View Post
    My website work perfectly during the CWL
    Really? How do you determine which clan members actually in the lineup on each war day?
    This is the main bug in the API for CWL imho.

    Evo2.

  4. #4
    The subject in this post is not the content of the API. OscarcocD tell us that website and bots work well during WC and not during WCL. I response that API work well during the CWL.

    Also, I agree with you, there mistakes in the API. I think, it's missing a boolean on the members of clan to determine if they are present in the round or not.

    And, as I am kind, I tell you how I determine who are is the round. Take an eye on my clan :
    Round 1 : https://clashspot.net/fr/clan/P09JP2...3/war/17262712
    Round 2 : https://clashspot.net/fr/clan/P09JP2...3/war/17349032
    You can see on the second round that they are 48 members registered to the league in my clan (UTF-8). On the first round, they are only 30 members and this members are the real members of this round.
    To determine the real members, I analyze all attacks. As you know, to attack a target you need to be in the round, normal. So, if you made an attack, you are a real member. Also, if you don't attack during the round but you are received an attack, you are in the round too.

    This analyzer has constraints because, if some real member don't attack and has not receive an attack, I can't determine the reals members of the round.

    I hope my english is not too bad.

  5. #5
    Fresh Spawn
    Join Date
    Jan 2019
    Posts
    7
    Hi,
    Quote Originally Posted by SoldatBourrin View Post
    The subject in this post is not the content of the API. OscarcocD tell us that website and bots work well during WC and not during WCL. I response that API work well during the CWL.
    I might be tempted to argue that the API doesn't work well regardless of CWL or no CWL ;-)

    The OP wasn't specific, but there are indeed bugs (or important missing features) that are specific to CWL.

    Quote Originally Posted by SoldatBourrin View Post
    Also, I agree with you, there mistakes in the API. I think, it's missing a boolean on the members of clan to determine if they are present in the round or not.
    That would be one way, another would be just to include the 15/30 that are actually selected.

    Quote Originally Posted by SoldatBourrin View Post
    And, as I am kind, I tell you how I determine who are is the round. Take an eye on my clan :
    Round 1 : https://clashspot.net/fr/clan/P09JP2...3/war/17262712
    Round 2 : https://clashspot.net/fr/clan/P09JP2...3/war/17349032
    You can see on the second round that they are 48 members registered to the league in my clan (UTF-8). On the first round, they are only 30 members and this members are the real members of this round.
    To determine the real members, I analyze all attacks. As you know, to attack a target you need to be in the round, normal. So, if you made an attack, you are a real member. Also, if you don't attack during the round but you are received an attack, you are in the round too.

    This analyzer has constraints because, if some real member don't attack and has not receive an attack, I can't determine the reals members of the round.
    I'm aware that it can be analysed after the fact. Perhaps that is useful/interesting for someone doing bookkeeping after a CWL round, but for someone writing a bot that wants real time information about the current war it's not useful.

    Cheers,

    Evo2.
    Last edited by Evo2; September 4th, 2019 at 07:46 AM.

  6. #6
    Quote Originally Posted by Evo2 View Post
    That would be one way, another would be just to include the 15/30 that are actually selected.
    SuperCell indicate in the API if the league are 15 or 30 sizing and if the clan UP (win), STAY (null) or DOWN (lose) from league group. But this data is in warlog and when the league is ended (bad for war size) !!!!!!!! Also, you don't have access to this data if warlog is not public AHAHAH.

    Example of warlog log :
    {
    "result": null,
    "endTime": "20190811T082704.000Z",
    "teamSize": 30,
    "clan": {
    "tag": "#P09JP289",
    "name": "utf-8",
    "badgeUrls": {
    "small": "https://api-assets.clashofclans.com/badges/70/tR6yutd_YkMcQN6-OnWGQbGuxAPSchor1uNU6tucO9o.png",
    "large": "https://api-assets.clashofclans.com/badges/512/tR6yutd_YkMcQN6-OnWGQbGuxAPSchor1uNU6tucO9o.png",
    "medium": "https://api-assets.clashofclans.com/badges/200/tR6yutd_YkMcQN6-OnWGQbGuxAPSchor1uNU6tucO9o.png"
    },
    "clanLevel": 15,
    "attacks": 209,
    "stars": 480,
    "destructionPercentage": 557.63336,
    "expEarned": 0
    },
    "opponent": {
    "badgeUrls": {
    "small": "https://api-assets.clashofclans.com/badges/70/H39b_-WLZGtZVWQ0hqTkE-Tn2AaQnQWy_Iz4yBlvL0M.png",
    "large": "https://api-assets.clashofclans.com/badges/512/H39b_-WLZGtZVWQ0hqTkE-Tn2AaQnQWy_Iz4yBlvL0M.png",
    "medium": "https://api-assets.clashofclans.com/badges/200/H39b_-WLZGtZVWQ0hqTkE-Tn2AaQnQWy_Iz4yBlvL0M.png"
    },
    "clanLevel": 0,
    "stars": 370,
    "destructionPercentage": 0
    }
    }
    teamSize is on 30 and result "null" that indicate we stay on the current league.
    I don't find what is the 370 stars of the opponent data.

  7. #7
    Senior Member Agester's Avatar
    Join Date
    Jun 2014
    Posts
    493
    I'm having the same issue. Some attacks are coming in, but it seems like a timeout of sorts hitting the CWL section. Still debugging it.

    Update: Seems to have resolved itself.
    Last edited by Agester; September 6th, 2019 at 01:51 PM.
    "Some people talk to you in their free time while others free their time to talk to you. It's important to understand the difference"

  8. #8
    Senior Member Agester's Avatar
    Join Date
    Jun 2014
    Posts
    493
    Update: Still getting timeout issues on basic calls. Returning a 404 (notFound) error.
    Last edited by Agester; September 7th, 2019 at 02:58 PM.
    "Some people talk to you in their free time while others free their time to talk to you. It's important to understand the difference"

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •