Failed to get claims from the Userinfo Endpoint Request was cancelled – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 7.2-8.9

Briefly, this error occurs when Elasticsearch fails to retrieve user information from the Userinfo Endpoint, possibly due to network issues, incorrect endpoint URL, or authentication problems. To resolve this, ensure the endpoint URL is correct and reachable. Check your network connection and firewall settings. Also, verify your authentication credentials and ensure the request isn’t being cancelled due to timeout or other server-side issues.

This guide will help you check for common problems that cause the log ” Failed to get claims from the Userinfo Endpoint. Request 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 “Failed to get claims from the Userinfo Endpoint. Request was cancelled” class name is OpenIdConnectAuthenticator.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 }  @Override
 public void cancelled() {
 claimsListener.onFailure(
 new ElasticsearchSecurityException("Failed to get claims from the Userinfo Endpoint. Request 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?