These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Random 221 error codes with the XML API

Author
Nick Starkey
Native Freshfood
Minmatar Republic
#1 - 2016-03-02 12:41:53 UTC  |  Edited by: Nick Starkey
Hello

I've noticed a few of the the xml api endpoints seem to return 221 errors (illegal page request, check permissions) at random times despite the permissions being set correctly, even if you have properly set rate limits and honor the cache timers. It's especially annoying since these errors have a 24 hr cache meaning you won't be able to access any data for a day until it's refreshed unless you force another request/ignore the timer (which always seems to work and returns valid data but I don't think CCP likes this).

Does anyone else have this issue, or have any ideas on how I can solve it? It seems to happen with just about any endpoint at random times for no apparent reason.

I've made a signature. I hope you're enjoying it. www.evetrademaster.com - web based asset manager & profit tracker

Ydnari
Estrale Frontiers
#2 - 2016-03-02 19:46:30 UTC
Been happening for years:

https://forums.eveonline.com/default.aspx?g=posts&m=3851899

https://forums.eveonline.com/default.aspx?g=posts&m=4379290

I ended up patching my code to not trust 221's, since phealng already checks the access mask on the key up front so it's unlikely to be legitimate unless someone's revoked specific access and it's not picked up the change yet, and instead I treat them as false transient errors and retry in an hour - not accepting the 24 hour cache.

--

Nick Starkey
Native Freshfood
Minmatar Republic
#3 - 2016-03-02 20:17:40 UTC
I just saw those threads mere minutes after posting this.

I guess I'll do what I had in mind then. thanks for the answer

I've made a signature. I hope you're enjoying it. www.evetrademaster.com - web based asset manager & profit tracker