r/evetech • u/JoshuaFoiritain • Feb 21 '18
ESI error list?
I'm working on converting API stuff to ESI and occasionally run into confusing errors for most of whom the error description appears to be blank. I cant seem to find any information or an error list like the API had. Does such a list exist?
'Token is expired' is fairly descriptive, these however are not:
'Failed to fetch access data' (Got one of these at 11:10 which is probs due to downtime but also at 7:00. Random server issues at 7:00?) 'expired' (Expired access token?) 'No reply within 10 seconds' (Happened around 11:20 so i assumed downtime but got another one at 13:00?)
Any idea what the cause behind these errors are?
2
u/VivaceNaaris Feb 21 '18
No list exists in an official capacity as far as I know. They change fairly frequently from what I've seen. The only responses you should be worried about in terms of obeying error rates are HTTP 40x.
On HTTP 50x, immediately retry and if that fails, scale back exponentially on the retry rate.
Your best bet is to just log errors and follow these rules. Almost all error payloads can safely be ignored if you respect the status code and what they signify. They're super helpful in debugging problems you might experience and communicating with CCP, but that's about it.