# RestHighLevelClient timeout exception

**URL:** <https://discuss.elastic.co/t/resthighlevelclient-timeout-exception/147652>\
**Category:** Elasticsearch\
**Created:** [September 7, 2018, 5:15am UTC](https://discuss.elastic.co/t/resthighlevelclient-timeout-exception/147652 "2018-09-07T05:15:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![satish2](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@satish2](https://discuss.elastic.co/u/satish2)\
**Post date:** [September 7, 2018, 5:15am UTC](https://discuss.elastic.co/t/resthighlevelclient-timeout-exception/147652/1 "2018-09-07T05:15:07Z")

</div>

We are randomly getting the below exception. We have observed that these exceptions are coming irrespective of load. Could you please help me understanding the root cause and fixing the issue.

**java.lang.RuntimeException: error while performing request**  
at org.elasticsearch.client.RestClient$SyncResponseListener.get(RestClient.java:684)  
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:222)  
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:194)  
at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:488)  
at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:474)  
at org.elasticsearch.client.RestHighLevelClient.search(RestHighLevelClient.java:391)

**Caused by: java.util.concurrent.TimeoutException: null**  
at org.apache.http.nio.pool.AbstractNIOConnPool.processPendingRequest(AbstractNIOConnPool.java:364)  
at org.apache.http.nio.pool.AbstractNIOConnPool.processNextPendingRequest(AbstractNIOConnPool.java:344)  
at org.apache.http.nio.pool.AbstractNIOConnPool.release(AbstractNIOConnPool.java:318)  
at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.releaseConnection(PoolingNHttpClientConnectionManager.java:303)  
at org.apache.http.impl.nio.client.AbstractClientExchangeHandler.releaseConnection(AbstractClientExchangeHandler.java:239)  
at org.apache.http.impl.nio.client.MainClientExec.responseCompleted(MainClientExec.java:387)  
at org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.responseCompleted(DefaultClientExchangeHandlerImpl.java:168)  
at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.processResponse(HttpAsyncRequestExecutor.java:436)  
at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.inputReady(HttpAsyncRequestExecutor.java:326)  
at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:265)  
at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:81)  
at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:39)  
at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:114)  
at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:162)  
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:337)  
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315)  
at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:276)  
at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 5, 2018, 5:16am UTC](https://discuss.elastic.co/t/resthighlevelclient-timeout-exception/147652/2 "2018-10-05T05:16:22Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
