ES报错——missing authentication credentials for REST request

张裕  金牌会员 | 2024-11-28 19:56:39 | 显示全部楼层 | 阅读模式
打印 上一主题 下一主题

主题 707|帖子 707|积分 2121

在使用Postman或apifox发送es哀求时报错缺少认证信息
  报错内容
  1. {
  2.     "error": {
  3.         "root_cause": [
  4.             {
  5.                 "type": "security_exception",
  6.                 "reason": "missing authentication credentials for REST request [/打码]",
  7.                 "header": {
  8.                     "WWW-Authenticate": [
  9.                         "Basic realm="security" charset="UTF-8"",
  10.                         "ApiKey"
  11.                     ]
  12.                 }
  13.             }
  14.         ],
  15.         "type": "security_exception",
  16.         "reason": "missing authentication credentials for REST request [/打码]",
  17.         "header": {
  18.             "WWW-Authenticate": [
  19.                 "Basic realm="security" charset="UTF-8"",
  20.                 "ApiKey"
  21.             ]
  22.         }
  23.     },
  24.     "status": 401
  25. }
复制代码
  由于在ES中配置了账号密码,所以在使用Postman或apifox时必要认证
Auth中选择Basic Auth类型
username:配置的账号
password:配置的密码
  解决方案图


免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

张裕

金牌会员
这个人很懒什么都没写!
快速回复 返回顶部 返回列表