Hanson / youzan-sdk

👍有赞 SDK
103 stars 18 forks source link

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

Open jxzsxsp opened 5 years ago

jxzsxsp commented 5 years ago

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 commented 5 years ago

这个更多看似接口的问题

jxzsxsp commented 5 years ago

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

Hanson commented 5 years ago

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

jxzsxsp commented 5 years ago

image

麻烦了

jxzsxsp commented 5 years ago

image 异常信息截图

Hanson commented 5 years ago

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