# Problem with my code on /corporations/{corporationid}/assets/names/

**URL:** <https://forums.eveonline.com/t/problem-with-my-code-on-corporations-corporationid-assets-names/479251>\
**Category:** Third Party Developers\
**Tags:** esi\
**Created:** [March 12, 2025, 8:51am UTC](https://forums.eveonline.com/t/problem-with-my-code-on-corporations-corporationid-assets-names/479251 "2025-03-12T08:51:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alghara](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/alghara/32/407521_2.png) [@Alghara](https://forums.eveonline.com/u/Alghara)\
**Post date:** [March 12, 2025, 8:51am UTC](https://forums.eveonline.com/t/problem-with-my-code-on-corporations-corporationid-assets-names/479251/1 "2025-03-12T08:51:30Z")

</div>

Hi, guy

I finish to develop one application and I have some errors in my call on ‘[https://esi.evetech.net/latest/corporations/XXXXXXX/assets/names/](https://esi.evetech.net/latest/corporations/XXXXXXX/assets/names/)’.

```
    # Process assets in chunks of 1000 (ESI limit)
    chunk_size = 1000
    total_chunks = (len(assets) + chunk_size - 1) // chunk_size
    
    for i in range(0, len(assets), chunk_size):
        chunk = assets[i:i + chunk_size]
        item_ids = [asset.item_id for asset in chunk]

        response = requests.post(
            f'{EVE_ESI_BASE}/corporations/{master_account.corporation_id}/assets/names/',
            headers=headers,
            json=item_ids
        )  

```

Assets I the table of corporation assets call.  
I have this message ‘{“error”:“Invalid IDs in the request”}’  
Right now my Item\_ids is a list of 1000 item\_id from the call of [/corporations/{corporation\_id}/assets/](https://esi.evetech.net/ui/#/operations/Assets/get_corporations_corporation_id_assets) is it’s possible to have some item\_id don’t valid for this call or I don’t use the good id

---

<div class="post-metadata">

**Author:** ![Eloken\_Toralen](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/eloken_toralen/32/401714_2.png) [@Eloken\_Toralen](https://forums.eveonline.com/u/Eloken_Toralen)\
**Post date:** [March 12, 2025, 11:06am UTC](https://forums.eveonline.com/t/problem-with-my-code-on-corporations-corporationid-assets-names/479251/2 "2025-03-12T11:06:16Z")

</div>

I saw a comment on this, the compliant being that if one item ID in the call of 1000 is invalid, it doesn’t tell you which one, nor does it send back the result for the other 999.

---

<div class="post-metadata">

**Author:** ![Alghara](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/alghara/32/407521_2.png) [@Alghara](https://forums.eveonline.com/u/Alghara)\
**Post date:** [March 12, 2025, 3:56pm UTC](https://forums.eveonline.com/t/problem-with-my-code-on-corporations-corporationid-assets-names/479251/3 "2025-03-12T15:56:31Z")

</div>

If I check the documentation, I understand I need to filter the table corporation/assets with is\_singleton = True. I have a list of unique item IDs, but the first is sent. I have an invalid IDs request. If somebody know some other website for documentation that will be fine

---

<div class="post-metadata">

**Author:** ![system1](https://global.discourse-cdn.com/eveonline/original/3X/4/1/41ec4921cbaca7a6f9ea556e7cc20018461eae5e.png) [@system1](https://forums.eveonline.com/u/system1)\
**Post date:** [June 10, 2025, 3:56pm UTC](https://forums.eveonline.com/t/problem-with-my-code-on-corporations-corporationid-assets-names/479251/4 "2025-06-10T15:56:45Z")

</div>

Closed on June 10, 2025, 3:56pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
