algolia / algoliasearch-client-java

⚡️ A fully-featured and blazing-fast Java API client to interact with Algolia.
https://www.algolia.com/doc/api-client/getting-started/install/java/
MIT License
47 stars 33 forks source link

Retry strategy: `HttpRequest`'s empty body #773

Closed aallam closed 2 years ago

aallam commented 2 years ago

Users might get 400 errors indicating that there was no content in the body despite sending a request with body content.

The same HttpRequest object, which stores the request body as an InputStream, is used for all request attempts.