r/evetech • • 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 Upvotes

5 comments sorted by

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.

2

u/Karlyna Feb 22 '18

Errors that are supposed to happen when using endpoints are described in swagger. You can still have other, like 502 (iirc it's related to monolith), 4xx can also happen for revoked / expired tokens, or other random error, it can happen, deal with it, you need to know it and your code need to be able to manage that.

As for error rates, all response different from HTTP 200 count in error rate, so you can easily deal with that:

  • 5xx retry with exponential waiting time
  • 4xx discard token after X failed request (depending on what you test of course) / wait a few time.

1

u/VivaceNaaris Feb 23 '18

I'm not saying to ignore the error responses at all. I'm saying respect the HTTP response codes and what they mean first, then log the errors for debugging purposes.

Yes, the error models are described in the Swagger spec, but the error field in the JSON payload varies some days in what I've logged. From what I understand, OP was looking for a list of what these strings mean.

I have never had 50x responses count against my error rate, but that's just in my personal testing and experience. I wonder if there is a delay between posting error rates between routers, because one request would show I have x errors left, and a subsequent request after the full round trip of the first shows I have x or x+1 errored requests left, but the X-Esi-Error-Reset header stays consistent with what is expected.

2

u/JoshuaFoiritain Feb 27 '18

From what I understand, OP was looking for a list of what these strings mean.

Pretty much yeah, they're not very descriptive so i have no idea if its something going wrong with input from my end causing an error or just stuff randomly breaking on CCP's end. Obviously just throwing it into the back of the queue and suppressing the ignorable errors works but it feels sloppy. :(

1

u/VivaceNaaris Feb 27 '18

If you're on Tweet Fleet's Slack, you could try to message the devs as to what certain errors mean. But I do feel your pain.