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

偶尔报错,不知道哪的问题 #2

Open
pengdefang opened this issue Dec 5, 2022 · 2 comments
Open

偶尔报错,不知道哪的问题 #2

pengdefang opened this issue Dec 5, 2022 · 2 comments

Comments

@pengdefang
Copy link

#31 {main}Error: Call to a member function getHeaders() on null in /app/webman/vendor/yzh52521/easyhttp/src/Request.php:3
Stack trace:
#0 [internal function]: yzh52521\EasyHttp\Request->yzh52521\EasyHttp{closure}()
#1 /app/webman/vendor/yzh52521/easyhttp/src/Logger.php(178): call_user_func()
#2 /app/webman/vendor/yzh52521/easyhttp/src/Logger.php(141): yzh52521\EasyHttp\Logger->getLogMessage()
#3 /app/webman/vendor/yzh52521/easyhttp/src/Logger.php(244): yzh52521\EasyHttp\Logger->log()
#4 /app/webman/vendor/guzzlehttp/promises/src/RejectedPromise.php(42): yzh52521\EasyHttp\Logger->yzh52521\EasyHttp{closu
#5 /app/webman/vendor/guzzlehttp/promises/src/TaskQueue.php(48): GuzzleHttp\Promise\RejectedPromise::GuzzleHttp\Promise{
#6 /app/webman/vendor/guzzlehttp/promises/src/Promise.php(248): GuzzleHttp\Promise\TaskQueue->run()
#7 /app/webman/vendor/guzzlehttp/promises/src/Promise.php(224): GuzzleHttp\Promise\Promise->invokeWaitFn()
#8 /app/webman/vendor/guzzlehttp/promises/src/Promise.php(269): GuzzleHttp\Promise\Promise->waitIfPending()
#9 /app/webman/vendor/guzzlehttp/promises/src/Promise.php(226): GuzzleHttp\Promise\Promise->invokeWaitList()
#10 /app/webman/vendor/guzzlehttp/promises/src/Promise.php(62): GuzzleHttp\Promise\Promise->waitIfPending()
#11 /app/webman/vendor/guzzlehttp/guzzle/src/Client.php(187): GuzzleHttp\Promise\Promise->wait()
#12 /app/webman/vendor/yzh52521/easyhttp/src/Request.php(497): GuzzleHttp\Client->request()
#13 /app/webman/vendor/yzh52521/easyhttp/src/Request.php(364): yzh52521\EasyHttp\Request->request()

@yuanzhihai
Copy link
Owner

升级最新版 试试

@pengdefang
Copy link
Author

升级最新版 试试

试了最新版本,一样的出现,这个错误要不然try catch怎么捕获?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants