Trying toreduce api request failure