open All Channels
seplocked EVE Technology Lab
blankseplocked API Error Throttling Question
This thread is older than 90 days and has been locked due to inactivity.

Author Topic

Kronus Heilgar
Dark Orbit Media
Posted - 2011.07.11 05:26:00 - [1]

Ok I have a question about the API error throttling mentioned here. Maybe someone else has had a similar question that has been answered and can help me out.

So, the question: what if I have a service that requires registering with a character name? I need some way to validate that the character name actually exists, but if the person registering mistypes it or something, then when I try to validate it through the API it's going to generate an error. Ok, one error, no big deal. But now, what if my competition (or any form of troll) feels like getting my IP address banned for a month, and maliciously enters non-existant character names in an attempt to generate more API errors?

Is there a "proper" way to validate names without generating insane amounts of errors and betting banned?

Second question: I remember CCP posting at one point that the "/eve/CharacterID.xml.aspx" was modified to return an error if ANY of the names entered in the list was non-existant. I also remember testing this and finding it to be true; now, however, that seems to have been modified and it simply returns a characterID of "0" for non-existent names. Was this an announced change to go back to the original method and I just missed the dev blog, or what? Can I code to use this feature, or will it be changing back soon?


Posted - 2011.07.12 06:56:00 - [2]

1) Try to find character names locally first, eg.: a killboard. You could also add a simple brute force "prophylaxis". eg.: 1 - 2 second delay to each request, so entering 100 invalid names would take at least 3 1/2 minutes. Limit the attempts per IP to 10 per hour, ...

2) The 0 was in there since I started working with the API, and I found no information about a change anywhere. I guess it is rather safe to work with that feature. At least as safe as working with the API can be. Razz
I am currently working a registering function too and work with that. No problems so far and none on sight.


This thread is older than 90 days and has been locked due to inactivity.


The new forums are live

Please adjust your bookmarks to

These forums are archived and read-only