# Hit error rate limit when previous responses are all 200

**URL:** <https://forums.eveonline.com/t/hit-error-rate-limit-when-previous-responses-are-all-200/206005>\
**Category:** Third Party Developers\
**Created:** [December 12, 2019, 6:32am UTC](https://forums.eveonline.com/t/hit-error-rate-limit-when-previous-responses-are-all-200/206005 "2019-12-12T06:32:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Belinda\_Mishi](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/belinda_mishi/32/171024_2.png) [@Belinda\_Mishi](https://forums.eveonline.com/u/Belinda_Mishi)\
**Post date:** [December 12, 2019, 6:32am UTC](https://forums.eveonline.com/t/hit-error-rate-limit-when-previous-responses-are-all-200/206005/1 "2019-12-12T06:32:56Z")

</div>

Hi.  
I try to fetch killmails with id and hash from zkillboard today.  
The status of my http requests are something like this:

> 200 [success]  
> 200 [success]  
> 200 [success]  
> 200 [success Erh … I think that means I didn’t make any mistake.]  
> 420 [Suddenly, I get a 420!]  
> 420 [“This software has exceeded the error limit for ESI …”]  
> 420 [I don’t get this.]  
> 420 [Ok. You win. I give up.]

Why would my program hit the error limit when all requests are successful?  
Setting a user-agent string for my program doesn’t solve the problem.

Is this normal?  
Does this have something to do with the blackout of ESI bookmarks?  
Did CCP set a rate limit when they upgrade the API?

---

<div class="post-metadata">

**Author:** ![Golden\_Gnu](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/golden_gnu/32/459734_2.png) [@Golden\_Gnu](https://forums.eveonline.com/u/Golden_Gnu)\
**Post date:** [December 12, 2019, 2:44pm UTC](https://forums.eveonline.com/t/hit-error-rate-limit-when-previous-responses-are-all-200/206005/2 "2019-12-12T14:44:53Z")

</div>

In short you need to handle the error limit, by respecting the headers:  
`x-esi-error-limit-remain` = how many fails you have left in the time frame set by `reset`  
and  
`x-esi-error-limit-reset` = how many seconds until the `remain` is reset to max value

The error limit is global for all endpoints.

Once `remain` hit zero, you will get the 420. So, once `remain` hit zero (or get close to the limit - if you have multiple requests in flight), you need to stop all requests for `reset` seconds.

---

<div class="post-metadata">

**Author:** ![Belinda\_Mishi](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/belinda_mishi/32/171024_2.png) [@Belinda\_Mishi](https://forums.eveonline.com/u/Belinda_Mishi)\
**Post date:** [December 13, 2019, 2:45am UTC](https://forums.eveonline.com/t/hit-error-rate-limit-when-previous-responses-are-all-200/206005/4 "2019-12-13T02:45:30Z")

</div>

Somehow the program can make 100 concurrent requests without any problem now.  
I don’t know what happened yesterday.  
Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/eveonline/original/3X/4/1/41ec4921cbaca7a6f9ea556e7cc20018461eae5e.png) [@system](https://forums.eveonline.com/u/system)\
**Post date:** [March 12, 2020, 2:45am UTC](https://forums.eveonline.com/t/hit-error-rate-limit-when-previous-responses-are-all-200/206005/5 "2020-03-12T02:45:35Z")

</div>

Closed on March 12, 2020, 2:45am UTC

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