extract find_with_given_retry so we can use recursion to retry
add option to make no records errors return [], rather than making it the default