How to fix HttpAsyncClient: java.lang.IllegalStateException: Request cannot be executed; I/O reactor status: INACTIVE
You need to start the async client before using it:
try (CloseableHttpAsyncClient httpclient = HttpAsyncClients.createDefault()) {
httpclient.start();
}
Comments
Post a Comment