Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught InvalidArgumentException: uri #19

Closed
ifdandy opened this issue Mar 31, 2022 · 1 comment · Fixed by #20
Closed

Uncaught InvalidArgumentException: uri #19

ifdandy opened this issue Mar 31, 2022 · 1 comment · Fixed by #20
Labels

Comments

@ifdandy
Copy link

ifdandy commented Mar 31, 2022

URL : http://www.31dj.com/

PHP Fatal error: Uncaught InvalidArgumentException: uri http:// parse error in /www/wwwroot/imi.qq.com/app/vendor/yurunsoft/yurun-http/src/YurunHttp/Http/Psr7/Uri.php:78
Stack trace:
#0 /www/wwwroot/imi.qq.com/app/vendor/yurunsoft/yurun-http/src/YurunHttp/Handler/Swoole/SwooleHttpConnectionPool.php(59): Yurun\Util\YurunHttp\Http\Psr7\Uri->__construct()
#1 /www/wwwroot/imi.qq.com/app/vendor/yurunsoft/yurun-http/src/YurunHttp/Handler/Swoole/SwooleHttpConnectionPool.php(82): Yurun\Util\YurunHttp\Handler\Swoole\SwooleHttpConnectionPool->createConnection()
#2 /www/wwwroot/imi.qq.com/app/vendor/yurunsoft/yurun-http/src/YurunHttp/Handler/Swoole/SwooleHttpConnectionManager.php(86): Yurun\Util\YurunHttp\Handler\Swoole\SwooleHttpConnectionPool->getConnection()
#3 /www/wwwroot/imi.qq.com/app/vendor/yurunsoft/yurun-http/src/YurunHttp/Handler/Swoole.php(264): Yurun\Util\YurunHttp\Handler\Swoole\SwooleHttpConnectionManager->getConnection()
#4 /www/wwwroot/imi.qq.com/app/vendor/yurunsoft/yurun-http/src/YurunHttp/Handler/Swoole.php(418): Yur in /www/wwwroot/imi.qq.com/app/vendor/yurunsoft/yurun-http/src/YurunHttp/Http/Psr7/Uri.php on line 78

请求构建代码:
$http = \Yurun\Util\HttpRequest::newSession(); $http->retry(3); $http->followLocation = true; $http->maxRedirects = 5; $http->timeout(30000); $http->headers($header); $response = $http->get($url); $html = $response->body();

@ifdandy
Copy link
Author

ifdandy commented Mar 31, 2022

对了,同样的一组url,用guzzle跑是没问题的

Yurunsoft added a commit that referenced this issue Mar 31, 2022
@Yurunsoft Yurunsoft added the bug label Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants