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

批量创建商品时经常会出现异常 #15

Open
jxzsxsp opened this issue Apr 2, 2019 · 6 comments
Open

批量创建商品时经常会出现异常 #15

jxzsxsp opened this issue Apr 2, 2019 · 6 comments

Comments

@jxzsxsp
Copy link

jxzsxsp commented Apr 2, 2019

PHP Fatal error: Uncaught GuzzleHttp\Exception\ConnectException: cURL error 52: Empty reply from server (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in /data/youzan_api/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:185
Stack trace:
#0 /data/youzan_api/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(149): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)
#1 /data/youzan_api/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(102): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#2 /data/youzan_api/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#3 /data/youzan_api/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke(Object(GuzzleHttp\Psr7\Requ in /data/youzan_api/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 185

Fatal error: Uncaught GuzzleHttp\Exception\ConnectException: cURL error 52: Empty reply from server (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in /data/youzan_api/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:185
Stack trace:
#0 /data/youzan_api/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(149): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)
#1 /data/youzan_api/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(102): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#2 /data/youzan_api/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#3 /data/youzan_api/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke(Object(GuzzleHttp\Psr7\Requ in /data/youzan_api/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 185

@Hanson
Copy link
Owner

Hanson commented Apr 2, 2019

这个更多看似接口的问题

@jxzsxsp
Copy link
Author

jxzsxsp commented Apr 2, 2019

这个有什么方法可以解决吗?我异常处理也捕捉不到

@Hanson
Copy link
Owner

Hanson commented Apr 2, 2019

异常不会捕捉不到,截图代码吧

@jxzsxsp
Copy link
Author

jxzsxsp commented Apr 2, 2019

image

麻烦了

@jxzsxsp
Copy link
Author

jxzsxsp commented Apr 2, 2019

image
异常信息截图

@Hanson
Copy link
Owner

Hanson commented Apr 3, 2019

你的异常代码没有表明是这行代码触发的

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