throws exception on empty response and increases retry number