在使用Postman或apifox发送es哀求时报错缺少认证信息
报错内容
- {
- "error": {
- "root_cause": [
- {
- "type": "security_exception",
- "reason": "missing authentication credentials for REST request [/打码]",
- "header": {
- "WWW-Authenticate": [
- "Basic realm="security" charset="UTF-8"",
- "ApiKey"
- ]
- }
- }
- ],
- "type": "security_exception",
- "reason": "missing authentication credentials for REST request [/打码]",
- "header": {
- "WWW-Authenticate": [
- "Basic realm="security" charset="UTF-8"",
- "ApiKey"
- ]
- }
- },
- "status": 401
- }
复制代码 由于在ES中配置了账号密码,所以在使用Postman或apifox时必要认证
Auth中选择Basic Auth类型
username:配置的账号
password:配置的密码
解决方案图
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。 |