esi-issues icon indicating copy to clipboard operation
esi-issues copied to clipboard

Asset endpoint returns ghost items

Open Vaylle opened this issue 4 years ago • 2 comments

Bug

I am encountering this bug using GESI and JeveAssets (note : I have cleared those tools, the bug is from ESI)

When requesting my items from the asset endpoint, I receive a list of items that I don't see ingame. As you can see here, I should have 11 items ingame :

image

However, those items don't exist ingame (also, note that my total net worth account for those items) :

image

I made sure that I don't have items anywhere else possible no contract and nothing in safety

I think this issue can be related to this one, that was closed in 2018 : https://github.com/esi/esi-issues/issues/792

Request

I am requesting the following endpoint for my assets :

"method": "get", "path": "/{version}/characters/{character_id}/assets/", "scope": "esi-assets.read_assets.v1",

curl -X GET "https://esi.evetech.net/latest/characters/91094586/assets/?datasource=tranquility&page=1" -H "accept: application/json" -H "authorization: Bearer ****" -H "Cache-Control: no-cache"

Response

Status Code

Code 200

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 
 cache-control: private 
 content-encoding: gzip 
 content-length: 305 
 content-type: application/json; charset=UTF-8 
 date: Thu, 08 Apr 2021 18:16:40 GMT 
 etag: "0c3ace9a66a9229f3721a08a249ae535bd0de8a624147732ad1e924f" 
 expires: Thu, 08 Apr 2021 18:48:03 GMT 
 last-modified: Thu, 08 Apr 2021 17:48:03 GMT 
 strict-transport-security: max-age=31536000 
 vary: Accept-Encoding 
 x-esi-error-limit-remain: 99 
 x-esi-error-limit-reset: 20 
 x-esi-request-id: fdba79db-ed4d-476d-8e94-59f250705741 
 x-pages: 1 

Body

Please provide the response body, feel free to scrub any opsec details you wish. E.g.:

[
  {
    "is_singleton": true,
    "item_id": 1006935094382,
    "location_flag": "RigSlot1",
    "location_id": 1006935076853,
    "location_type": "item",
    "quantity": 1,
    "type_id": 31372
  },
  {
    "is_singleton": true,
    "item_id": 1006935125385,
    "location_flag": "RigSlot0",
    "location_id": 1006935076853,
    "location_type": "item",
    "quantity": 1,
    "type_id": 31790
  },
  {
    "is_singleton": true,
    "item_id": 1006857264981,
    "location_flag": "RigSlot2",
    "location_id": 1006935076853,
    "location_type": "item",
    "quantity": 1,
    "type_id": 31372
  },
  {
    "is_singleton": true,
    "item_id": 1008236769964,
    "location_flag": "RigSlot1",
    "location_id": 1007003599824,
    "location_type": "item",
    "quantity": 1,
    "type_id": 31802
  },
  {
    "is_singleton": true,
    "item_id": 1006935127855,
    "location_flag": "RigSlot0",
    "location_id": 1006935157526,
    "location_type": "item",
    "quantity": 1,
    "type_id": 31754
  },
  {
    "is_singleton": true,
    "item_id": 1006935127081,
    "location_flag": "RigSlot2",
    "location_id": 1006935157526,
    "location_type": "item",
    "quantity": 1,
    "type_id": 31718
  },
  {
    "is_singleton": false,
    "item_id": 1028195618247,
    "location_flag": "Hangar",
    "location_id": 60002176,
    "location_type": "station",
    "quantity": 1,
    "type_id": 601
  },
  {
    "is_singleton": true,
    "item_id": 1008236770899,
    "location_flag": "RigSlot0",
    "location_id": 1007003599824,
    "location_type": "item",
    "quantity": 1,
    "type_id": 31802
  },
  {
    "is_singleton": true,
    "item_id": 1026942030635,
    "location_flag": "Hangar",
    "location_id": 60002176,
    "location_type": "station",
    "quantity": 1,
    "type_id": 670
  },
  {
    "is_singleton": true,
    "item_id": 1006935204481,
    "location_flag": "RigSlot1",
    "location_id": 1006935157526,
    "location_type": "item",
    "quantity": 1,
    "type_id": 31718
  },
  {
    "is_singleton": true,
    "item_id": 1007006174730,
    "location_flag": "RigSlot2",
    "location_id": 1007003599824,
    "location_type": "item",
    "quantity": 1,
    "type_id": 31622
  }
]

Expected

[
  {
    "is_singleton": false,
    "item_id": 1028195618247,
    "location_flag": "Hangar",
    "location_id": 60002176,
    "location_type": "station",
    "quantity": 1,
    "type_id": 601
  },
  {
    "is_singleton": true,
    "item_id": 1026942030635,
    "location_flag": "Hangar",
    "location_id": 60002176,
    "location_type": "station",
    "quantity": 1,
    "type_id": 670
  }
]

Checklist

Check all boxes that apply to this issue:

  • [X] Bug description is provided
  • [X] Request path is provided
  • [X] Response status code is provided
  • [X] Response headers are provided
  • [X] Response body is provided
  • [X] Expected response is provided

Vaylle avatar Apr 08 '21 18:04 Vaylle

I'd be curious what response you got to one of the locations ids for one of the items marked in a rig slot using https://esi.evetech.net/ui/#/Assets/post_characters_character_id_assets_names (make sure to auth first)

so 1006935094382

fuzzysteve avatar Apr 08 '21 19:04 fuzzysteve

I have requested this endpoint and I get this (I added the capsule to make sure it work)

[
  {
    "item_id": 1006935094382,
    "name": "None"
  },
  {
    "item_id": 1006935125385,
    "name": "None"
  },
  {
    "item_id": 1006857264981,
    "name": "None"
  },
  {
    "item_id": 1006935127081,
    "name": "None"
  },
  {
    "item_id": 1006935127855,
    "name": "None"
  },
  {
    "item_id": 1008236769964,
    "name": "None"
  },
  {
    "item_id": 1006935204481,
    "name": "None"
  },
  {
    "item_id": 1007006174730,
    "name": "None"
  },
  {
    "item_id": 1008236770899,
    "name": "None"
  },
  {
    "item_id": 1026942030635,
    "name": "Capsule"
  }
]

Vaylle avatar Apr 09 '21 10:04 Vaylle