eve-val/evelink

Review api error handling

dinoboff opened this issue · 2 comments

Since odyssey, failed api call return a 4xx or 5xx code. Those http codes raise exception in API.send_request.

As a result, the error element in a failed responses are never parsed; APIError exceptions are never raised and failed request are never cached.

Do you know offhand if this is the case for both the urllib2 and requests paths, or just one of them? (IIRC, requests normally doesn't raise exceptions by default, it still returns a Response object.)

Assuming it's just urllib2 that is the problem, #145 should fix it - I'm just working on a test for it at the moment.