Get uri was cancelled – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 8.2-8.9

Briefly, this error occurs when a request made to Elasticsearch is cancelled before it could be completed. This could be due to a timeout, network issue, or the request being manually cancelled. To resolve this, you can increase the timeout limit, ensure the network connection is stable, or check if there’s any process that could be cancelling the request prematurely. Also, ensure that the Elasticsearch cluster is not overloaded with requests, as this could also lead to cancellations.

This guide will help you check for common problems that cause the log ” Get [” + uri + “] was cancelled. ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.

Log Context

Log “Get [” + uri + “] was cancelled.” class name is We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 listener.onFailure(new ElasticsearchSecurityException("Get [" + uri + "] failed."; e));
 }  @Override
 public void cancelled() {
 listener.onFailure(new ElasticsearchSecurityException("Get [" + uri + "] was cancelled."));
 return null;


How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?