Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EVE v21.06 - /fw/stats/ Invalid 200 response: too many items for 'response' #1365

Closed
6 tasks done
soratidus999 opened this issue Nov 14, 2023 · 3 comments
Closed
6 tasks done
Labels
bug esi-factionalwarfare in-progress Issue is being worked on by a developer. in-staging A solution for this issue is ready, and is waiting to be deployed. Internal Issue Created

Comments

@soratidus999
Copy link

soratidus999 commented Nov 14, 2023

Bug

EVE 21.06 added Additional Factions involved in Faction Warfare (Pirate Insurgencies)

The stats endpoint is throwing an error 500 (although still nicely returning the internal 200 response)

Request

GET /latest/fw/stats/?datasource=tranquility

Response

Status Code

500

Headers

access-control-allow-credentials: true 
 access-control-allow-headers: Content-Type,Authorization,If-None-Match,X-User-Agent 
 access-control-allow-methods: GET,HEAD,OPTIONS 
 access-control-allow-origin: * 
 access-control-expose-headers: Content-Type,Warning,ETag,X-Pages,X-ESI-Error-Limit-Remain,X-ESI-Error-Limit-Reset 
 access-control-max-age: 600 
 allow: GET,HEAD,OPTIONS 
 content-encoding: gzip 
 content-length: 422 
 content-type: application/json; charset=UTF-8 
 date: Wed, 15 Nov 2023 11:33:26 GMT 
 etag: W/"3280a2bbc63957e7734f99376d30b5f3f3f00157a0421321d9b95d62" 
 strict-transport-security: max-age=31536000 
 vary: Accept-Encoding 
 x-esi-error-limit-remain: 98 
 x-esi-error-limit-reset: 34 
 x-esi-request-id: 271268ff-e0bf-4b8d-8fe3-c2b581bf5101 

Body

{
  "error": "Invalid 200 response: too many items for 'response'",
  "response": [
    {
      "faction_id": 500001,
      "pilots": 52221,
      "systems_controlled": 60,
      "kills": {
        "yesterday": 361,
        "last_week": 2375,
        "total": 1029065
      },
      "victory_points": {
        "yesterday": 95877,
        "last_week": 780124,
        "total": 115371291
      }
    },
    {
      "faction_id": 500002,
      "pilots": 32537,
      "systems_controlled": 57,
      "kills": {
        "yesterday": 586,
        "last_week": 2432,
        "total": 853171
      },
      "victory_points": {
        "yesterday": 38987,
        "last_week": 716186,
        "total": 82537546
      }
    },
    {
      "faction_id": 500003,
      "pilots": 30309,
      "systems_controlled": 13,
      "kills": {
        "yesterday": 343,
        "last_week": 2296,
        "total": 903503
      },
      "victory_points": {
        "yesterday": 68322,
        "last_week": 633759,
        "total": 82511138
      }
    },
    {
      "faction_id": 500004,
      "pilots": 43102,
      "systems_controlled": 30,
      "kills": {
        "yesterday": 382,
        "last_week": 2966,
        "total": 1256705
      },
      "victory_points": {
        "yesterday": 83829,
        "last_week": 725931,
        "total": 113721220
      }
    },
    {
      "faction_id": 500010,
      "pilots": 41,
      "systems_controlled": 0,
      "kills": {
        "yesterday": 544,
        "last_week": 544,
        "total": 544
      },
      "victory_points": {
        "yesterday": 0,
        "last_week": 0,
        "total": 0
      }
    },
    {
      "faction_id": 500011,
      "pilots": 242,
      "systems_controlled": 0,
      "kills": {
        "yesterday": 1667,
        "last_week": 1667,
        "total": 1667
      },
      "victory_points": {
        "yesterday": 0,
        "last_week": 0,
        "total": 0
      }
    }
  ],
  "sentry_id": "a4b736b268d64743b79ff2c0d9af9e68"
}

Expected

HTTP 200, This is obviously working internally but the esi ?wrapper? is confused due to the additional wars being returned.

Checklist

Check all boxes that apply to this issue:

  • Bug description is provided
  • Request path is provided
  • Response status code is provided
  • Response headers are provided
  • Response body is provided
  • Expected response is provided
@soratidus999
Copy link
Author

i''ve just seen the stats and leaderboard endpoints endpoints all expire at 1105, (I thought only leaderboard was refreshed daily)

Awaiting tomorrows results

@soratidus999 soratidus999 changed the title EVE v21.06 - /fw/stats/ Does not include new Factions EVE v21.06 - /fw/stats/ Invalid 200 response: too many items for 'response' Nov 15, 2023
@soratidus999
Copy link
Author

as of downtime this is now echoing the Invalid 200 response: too many items for 'response', now that it has had a day to update the stats

@gitAskur gitAskur added in-progress Issue is being worked on by a developer. Internal Issue Created in-staging A solution for this issue is ready, and is waiting to be deployed. labels Dec 1, 2023
@gitAskur
Copy link
Contributor

gitAskur commented Dec 1, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug esi-factionalwarfare in-progress Issue is being worked on by a developer. in-staging A solution for this issue is ready, and is waiting to be deployed. Internal Issue Created
Projects
None yet
Development

No branches or pull requests

3 participants