[GuzzleHttp\Exception\ClientException]

来源:9-7 使用laravel的Command实现搜索引擎索引和模版的建立

zhengyiunity

2017-10-23

 在执行:php artisan es:init 后
 [GuzzleHttp\Exception\ClientException]                                                                                                   
  Client error: `PUT http://127.0.0.1:9200/_template/tmp` resulted in a `401 Unauthorized` response:                                       
  {"error":{"root_cause":[{"type":"security_exception","reason":"missing authentication token for REST request [/_template (truncated...)


写回答

2回答

zhengyiunity

提问者

2017-10-24

重新安装 ES 试试

0
0

qq_波板糖_0

2017-10-23

注释$client->delete ($url);,再试试

0
3
zhengyiunity
回复
qq_波板糖_0
我还没过这张 还有一个问题
2017-10-26
共3条回复

Laravel快速开发简书

Laravel最新特性结合Mysql异步消息队列、ElasticSearch搜索引擎、Debugbar调试利器开发简书

1218 学习 · 613 问题

查看课程