laravel-scout-elastic-demo icon indicating copy to clipboard operation
laravel-scout-elastic-demo copied to clipboard

InvalidArgumentException Unable to parse URI: :9200/_template/rtf 不能够解析 这个url请问要怎么办

Open honkersglory opened this issue 4 years ago • 0 comments

@lijinma @Aufree

[root@localhost blog]# php artisan es:init

InvalidArgumentException

Unable to parse URI: :9200/_template/rtf

at vendor/guzzlehttp/psr7/src/Uri.php:84 80| { 81| if ($uri !== '') { 82| $parts = self::parse($uri); 83| if ($parts === false) {

84| throw new \InvalidArgumentException("Unable to parse URI: $uri"); 85| } 86| $this->applyParts($parts); 87| } 88| }

  +4 vendor frames

5 app/Console/Commands/InitEs.php:69 GuzzleHttp\Client::put(":9200/_template/rtf", [])

6 app/Console/Commands/InitEs.php:40 App\Console\Commands\InitEs::createTemplate(Object(GuzzleHttp\Client))

honkersglory avatar Aug 03 '21 03:08 honkersglory