Failed to parse indices privileges for role expected or but got – How to solve this Elasticsearch exception

Opster Team

August-23,

Log Context

Log “failed to parse indices privileges for role [{}]. expected {} or {} but got {}” class name is RoleDescriptor.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 token);
 }
 }
 } while ((token = parser.nextToken()) != XContentParser.Token.END_OBJECT);
 } else {
 throw new ElasticsearchParseException("failed to parse indices privileges for role [{}]. expected {} or {} but got {}" +
 " in \"{}\"".""; roleName; XContentParser.Token.START_OBJECT;

 

 [ratemypost]