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

跑yurun-crawler-example报错 #1

Closed
anhoder opened this issue Feb 8, 2021 · 2 comments
Closed

跑yurun-crawler-example报错 #1

anhoder opened this issue Feb 8, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@anhoder
Copy link

anhoder commented Feb 8, 2021

如题,运行yurun-crawler-example报错,应该是发起http请求时出错了

2021-02-08 07:36:48 [info] YurunBlogCrawler start
2021-02-08 07:36:49 [info] Task: YurunBlogCrawler, Process: process#CronWorkerProcess#, Success
2021-02-08 07:36:49 [warning] Illegal offset type in isset or empty /Users/alan/Desktop/crawler/vendor/yurunsoft/yurun-http/src/YurunHttp/Handler/Swoole/SwooleHttpConnectionManager.php:52
2021-02-08 07:36:49 [error] Call to a member function getConnection() on null /Users/alan/Desktop/crawler/vendor/yurunsoft/yurun-http/src/YurunHttp/Handler/Swoole/SwooleHttpConnectionManager.php:77
Stack trace:
#0 Yurun\Util\YurunHttp\Handler\Swoole\SwooleHttpConnectionManager->getConnection(object) called at [/Users/alan/Desktop/crawler/vendor/yurunsoft/yurun-http/src/YurunHttp/Handler/Swoole.php:257]
#1 Yurun\Util\YurunHttp\Handler\Swoole->sendDefer(object) called at [/Users/alan/Desktop/crawler/vendor/yurunsoft/yurun-http/src/YurunHttp/Handler/Swoole.php:205]
#2 Yurun\Util\YurunHttp\Handler\Swoole->send(object) called at [/Users/alan/Desktop/crawler/vendor/yurunsoft/yurun-http/src/YurunHttp.php:103]
#3 Yurun\Util\YurunHttp::send(object) called at [/Users/alan/Desktop/crawler/vendor/yurunsoft/crawler/src/Module/Downloader/Handler/YurunHttpDownloader.php:38]
#4 Yurun\Crawler\Module\Downloader\Handler\YurunHttpDownloader->download(object, object, NULL) called at [/Users/alan/Desktop/crawler/vendor/yuruns...
2021-02-08 07:36:49 [error] Call to a member function getConnection() on null /Users/alan/Desktop/crawler/vendor/yurunsoft/yurun-http/src/YurunHttp/Handler/Swoole/SwooleHttpConnectionManager.php:77

@Yurunsoft
Copy link
Owner

是依赖的YurunHttp中的问题,现已修复:Yurunsoft/YurunHttp@8d2f02b

更新下依赖版本再试一下呢

@Yurunsoft Yurunsoft added the bug Something isn't working label Feb 8, 2021
@anhoder
Copy link
Author

anhoder commented Feb 8, 2021

没问题了,谢了

@anhoder anhoder closed this as completed Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants