The AlgoliaRuntimeException is thrown when an error occurred during serialization/deserialization or data processing. More on this in our Handling Exceptions documentation.
If you're getting this error message:
java.util.concurrent.CancellationException: Request execution cancelled
when using Java API Client, this could happen if the underlying apache http client has been closed.
There are two workarounds you can try:
- Reinstantiate the client when an exception like
java.util.concurrent.CancellationException: Request execution cancelledis thrown.
- If you use Java 11, use
If you didn’t close the client manually somewhere by mistake, most likely, an exception has occurred and caused the apache client to shut down (before you start getting