Laravel - 运行 seeder 时 Guzzle 函数抛出异常
Laravel - Exception thrown at Guzzle function when running seeder
运行 php artisan db:seed
抛出以下错误:GuzzleHttp\Exception\InvalidArgumentException : IDN conversion failed (errors: IDNA_ERROR_EMPTY_LABEL)
在 vendor/guzzlehttp/guzzle/src/functions.php:384
以前从未见过这个错误,而且它似乎不是我的播种器语法的问题。
部分异常跟踪为:
1 GuzzleHttp\_idn_uri_convert()
/home/vagrant/code/companion-2.0/vendor/guzzlehttp/guzzle/src/Client.php:220
2 GuzzleHttp\Client::buildUri()
/home/vagrant/code/companion-2.0/vendor/guzzlehttp/guzzle/src/Client.php:113
我在 vagrant/homestead 环境中执行 运行 命令。会不会是版本不兼容?
这是 guzzle 6.5.0 的问题。在此处查看更多信息:https://github.com/guzzle/guzzle/issues/2448
解决方法:降级到6.4.1版本。
请尝试升级到最新的稳定版本(6.5.2 at the moment)。我们已尽力考虑所有可能的安装细节,因此您不应再出现此错误。
如果错误仍然存在,请在此处将其报告为错误:https://github.com/guzzle/guzzle/issues。
目前最好的办法就是更新,最新版本可以正常使用
运行 php artisan db:seed
抛出以下错误:GuzzleHttp\Exception\InvalidArgumentException : IDN conversion failed (errors: IDNA_ERROR_EMPTY_LABEL)
在 vendor/guzzlehttp/guzzle/src/functions.php:384
以前从未见过这个错误,而且它似乎不是我的播种器语法的问题。
部分异常跟踪为:
1 GuzzleHttp\_idn_uri_convert()
/home/vagrant/code/companion-2.0/vendor/guzzlehttp/guzzle/src/Client.php:220
2 GuzzleHttp\Client::buildUri()
/home/vagrant/code/companion-2.0/vendor/guzzlehttp/guzzle/src/Client.php:113
我在 vagrant/homestead 环境中执行 运行 命令。会不会是版本不兼容?
这是 guzzle 6.5.0 的问题。在此处查看更多信息:https://github.com/guzzle/guzzle/issues/2448
解决方法:降级到6.4.1版本。
请尝试升级到最新的稳定版本(6.5.2 at the moment)。我们已尽力考虑所有可能的安装细节,因此您不应再出现此错误。
如果错误仍然存在,请在此处将其报告为错误:https://github.com/guzzle/guzzle/issues。
目前最好的办法就是更新,最新版本可以正常使用