Failed to get user information from the UserInfo endpoint – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 7.2-8.9

Briefly, this error occurs when Elasticsearch is unable to retrieve user data from the UserInfo endpoint, possibly due to incorrect configuration, network issues, or access permissions. To resolve this, ensure that the endpoint URL is correct and accessible. Check your network connectivity and firewall settings. Verify that Elasticsearch has the necessary permissions to access the endpoint. If you’re using security features, check your authentication and authorization settings. Also, ensure that the user information is correctly formatted and can be parsed by Elasticsearch.

This guide will help you check for common problems that cause the log ” Failed to get user information from the UserInfo endpoint. ” 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 user information from the UserInfo endpoint.” class name is We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 return null;
 } catch (Exception e) {
 claimsListener.onFailure(new ElasticsearchSecurityException("Failed to get user information from the UserInfo endpoint."; e));
 }  /**
 * Handle the UserInfo Response from the OpenID Connect Provider. If successful; merge the returned claims with the claims