Skip to content
TORNLIFE More

API data vs Logs data missmatch

Started by Harmageddon [3236245] on in Bugs & Issues.

1 replies · 12 views · thread synced · 4 days ago · View on torn.com
About this thread

Posts archived: 2 / 2 posts (100%) · the total is Torn's reply count + the opening post at the last fetch

Counted by TornLife from the archived posts.

Archived posts
2
Discussion span
→
People posting
2
Likes on archived posts
0
Posts by staff, officers and moderators
1
Authority score
56 / 100
Historical score
27 / 100
Story score
32 / 100
Engagement score
43 / 100

Mentioned in this thread

Faction 8677 ×1 Faction 44758 ×1 molliemoo202 [3090271] ×1 tbone6913 [3894249] ×1

Harmageddon [3236245]

I've noticed inconsistency in the api data that we retrieved from one of our wars. Here's the snippet of api response for faction/attacks endpoint

"attacks": [
    {
      "id": 516184835,
      "code": "72a59862ea3db028062fbc0f4c895111",
      "started": 1789770506,
      "ended": 1789770510,
      "attacker": {
        "id": 3090271,
        "name": "molliemoo202",
        "level": 55,
        "faction": {
          "id": 8677,
          "name": "Mana"
        }
      },
      "defender": {
        "id": 3894249,
        "name": "tbone6913",
        "level": 52,
        "faction": {
          "id": 44758,
          "name": "NPO - Prosperity"
        }
      },
      "result": "Attacked",
      "respect_gain": 0,
      "respect_loss": 0,
      "chain": 0,
      "is_interrupted": false,
      "is_stealthed": false,
      "is_raid": false,
      "is_ranked_war": true,
      "is_territory_war": false,
      "territory_war_id": null,
      "modifiers": {
        "fair_fight": 1,
        "war": 1,
        "retaliation": 1,
        "group": 1,
        "overseas": 1,
        "chain": 1,
        "warlord": 1
      },
      "finishing_hit_effects": []
    },

It says that the respect gain was 0 while in the factions logs it clearcly shows that respect was gained

also timestamp seems to be 1 minute adrift from the faction logs as it shows UTC: Friday, September 18, 2026 at 10:28:26 PM but in logs its 29 minute not 28th also there are no other attacks around that time for the same attacker or defender, so we assume this is the correct log that corresponds to the correct api response info.

 

 

 

Mentions: molliemoo202 [3090271] · tbone6913 [3894249] · Mana [8677] · NPO - Prosperity [44758]

CloudJumper [1636201]Staff

The API response is for this attack, where the attacker was taken out before the auto-leave could trigger. The one in the attack log is for the successful attack that took place a minute after.

 

 

Thanks!