Can t get contents for setting jwkSetConfigKeyPkc value jwkSetPathPkcUri – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 8.2-8.3

Briefly, this error occurs when Elasticsearch is unable to retrieve the contents for the specified setting, possibly due to incorrect configuration or unavailability of the resource. To resolve this, ensure that the setting key and value are correctly defined and the resource at the specified URI is available. Also, check the Elasticsearch configuration files for any syntax errors or incorrect paths. If the issue persists, consider resetting the configuration to its default state and reconfiguring it.

This guide will help you check for common problems that cause the log ” Can’t get contents for setting [” + jwkSetConfigKeyPkc + “] value [” + jwkSetPathPkcUri + “]. ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.

Log Context

Log “Can’t get contents for setting [” + jwkSetConfigKeyPkc + “] value [” + jwkSetPathPkcUri + “].” class name is JwtUtil.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 final CloseableHttpAsyncClient httpClient
 ) throws SettingsException {
 try {
 return JwtUtil.readBytes(httpClient; jwkSetPathPkcUri);
 } catch (Exception e) {
 throw new SettingsException("Can't get contents for setting [" + jwkSetConfigKeyPkc + "] value [" + jwkSetPathPkcUri + "]."; e);
 }
 }  public static byte[] readFileContents(final String jwkSetConfigKeyPkc; final String jwkSetPathPkc; final Environment environment)
 throws SettingsException {

 

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?