📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

版本: 7.2-8.9

简而言之,当 Elasticsearch 接收到意外的参数值时会发生此错误。它期望某个参数具有特定值,但实际接收到的值却不同。这可能是由于配置错误或编程错误造成的。要解决此问题,您应该首先识别导致错误的参数。然后,检查传递给该参数的值,并确保它符合 Elasticsearch 的期望。如果错误仍然存在,请检查您的 Elasticsearch 配置或与 Elasticsearch 交互的代码,确保它们是正确的。

日志上下文 #

日志 “Invalid state parameter [{}]; while [{}] was expected” 的类名是 OpenIdConnectAuthenticator.java。 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人使用:

    } else if (null == expectedState) {
        throw new ElasticsearchSecurityException(
            "Failed to validate the response; the user's session did not contain a state " + "parameter"
        );
    } else if (state.equals(expectedState) == false) {
        throw new ElasticsearchSecurityException("Invalid state parameter [{}]; while [{}] was expected", state, expectedState);
    }
    }  /**
     * Attempts to make a request to the UserInfo Endpoint of the OpenID Connect provider