If you're getting the following error with Java API Client 3.16.5:
AlgoliaApiException: {"status":400,"message":"Request body reading: empty body"}
please make sure to upgrade your Java API Client to the latest version here, as the issue stems from the bug that was introduced in 3.16.5 with the retry strategy here.