wait for 5 sec for next request if an error occurs, to avoid flooding the api