Wait for 3 seconds between attempts to allow time for data to arrive.

This commit is contained in:
CalDescent 2021-11-19 11:21:40 +00:00
parent 3b5b45b463
commit e74dcff010

View File

@ -477,6 +477,8 @@ public class ArbitraryResource {
// Give up after 5 attempts // Give up after 5 attempts
throw ApiExceptionFactory.INSTANCE.createCustomException(request, ApiError.INVALID_CRITERIA, "Data unavailable. Please try again later."); throw ApiExceptionFactory.INSTANCE.createCustomException(request, ApiError.INVALID_CRITERIA, "Data unavailable. Please try again later.");
} }
Thread.sleep(3000L);
continue; continue;
} }
} }