IdempotencyAwareRetryPolicy is marked as deprecated since 4.0 but when used, it can throw an error when onRequestError() is invoked.