版本: 6.8-6.8
简而言之,当在 Elasticsearch 中为特定 watchId/actionId 的 Watcher 动作使用了无效的 HipChatAction.TYPE 时,会出现此错误。这可能是由于拼写错误、格式不正确,或使用了已弃用或不存在的动作类型所致。要解决此问题,您应该验证 Watcher 动作中使用的动作类型。确保其拼写正确、格式正确,并且是有效的动作类型。如果错误仍然存在,请检查 Elasticsearch 文档中关于 Watcher API 的变更,因为该动作类型可能已被弃用或替换。
日志上下文 #
日志 “invalid [” + HipChatAction.TYPE + “] action for [” + watchId + “/” + actionId + “] " 类名是 IntegrationAccount.java。 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入了解的人参考:
} @Override
public void validateParsedTemplate(String watchId; String actionId; HipChatMessage.Template template) throws SettingsException {
if (template.rooms != null) {
throw new ElasticsearchParseException("invalid [" + HipChatAction.TYPE + "] action for [" + watchId + "/" + actionId + "] " +
"action. [" + name + "] hipchat account doesn't support custom rooms");
}
if (template.users != null) {
throw new ElasticsearchParseException("invalid [" + HipChatAction.TYPE + "] action for [" + watchId + "/" + actionId + "] " +
"action. [" + name + "] hipchat account doesn't support user private messages");





