Failed to parse transient metadata for role expected but got – How to solve this Elasticsearch exception

Opster Team

August-23,

Log Context

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

 if (token == XContentParser.Token.START_OBJECT) {
 while (parser.nextToken() != XContentParser.Token.END_OBJECT) {
 // it is transient metadata; skip it
 }
 } else {
 throw new ElasticsearchParseException("failed to parse transient metadata for role [{}]. expected {} but got {}" +
 " in \"{}\"".""; roleName; XContentParser.Token.START_OBJECT; token; Fields.TRANSIENT_METADATA);

 

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?