当我在 GetStream.io 中对我的提要进行某些更新时,我不断收到cURL 错误 28:在 35xx 毫秒后解析超时(xx = 不同的毫秒值)。看来这一定来自 GetStream 方面的错误,该错误可能无法正确报告。有谁知道 GetStream addActivity 调用是否超过 3.5 秒?
由于这是间歇性的,我唯一能想到的是可能存在有关foreign_id的 GetStream 错误,因为它可能正在复制现有的 foreign_id。但是,关于 GetStream 使用 foreign_id 的信息有限。
这是我的 GetStream 调用的简化代码:
//Add Activity to Feeds
$ccFeeds = ["Event:1", "Game:2", "Character:5", "Region:6"];
$client = new Client(env('GETSTREAM_API_KEY'), env('GETSTREAM_API_SECRET'));
$feed = $client->feed('User', 3);
$sendData = [
'actor' => 'User:3',
'verb' => 'update',
'object' => 'Image:4',
'target' => 'Character:5',
'foreign_id' => 'Image:4',
'to' => $ccFeeds
];
$feed->addActivity($sendData);
更新:2016 年 4 月 8 日 - 有关错误的更多信息
以下是有关我们收到的错误的更多信息:
CurlFactory.php 第 186 行中的 ConnectException:cURL 错误 28:在 3512 毫秒后解析超时(请参阅http://curl.haxx.se /libcurl/c/libcurl-errors.html )
在 CurlFactory.php 第 186 行
CurlFactory::createRejection(object(EasyHandle), array('errno' => '28', 'error' => 'Resolving timed out after 3512毫秒', 'url' => ' https://api.getstream.io/api/v1.0/feed/User/145636936490547870efa96b68a892ca/?api_key=null, 'http_code' => '0', 'header_size' => '0', 'request_size' => '0', 'filetime' => '-1', 'ssl_verify_result' => '0', 'redirect_count ' => '0', 'total_time' => '3.512752', 'namelookup_time' => '0', 'connect_time' => '0', 'pretransfer_time' => '0', 'size_upload' => '0 ', 'size_download' => '0', 'speed_download' => '0', 'speed_upload' => '0', 'download_content_length' => '-1', 'upload_content_length' => '-1', ' starttransfer_time' => '0', 'redirect_time' => '0', 'redirect_url' => '', '
primary_ip' => '', 'certinfo' => array(), 'primary_port' => '0', 'local_ip' => '', 'local_port' => '0')) 在 CurlFactory.php 第 150
行CurlFactory::finishError(object(CurlHandler), object(EasyHandle), object(CurlFactory)) 在 CurlFactory.php 第 103 行
在 CurlHandler.php 第 43 行的 CurlFactory::finish(object(CurlHandler), object(EasyHandle), object(CurlFactory))
在 CurlHandler->__invoke(object(Request), array('synchronous' => true, 'base_uri' => object(Uri), 'timeout' => '3', 'handler' => object(HandlerStack), ' allow_redirects' => array('max' => '5', 'protocols' => array('http', 'https'), 'strict' => false, 'referer' => false, 'track_redirects' => false), 'http_errors' => true, 'decode_content' => true, 'verify' => true, 'cookies' => false)) 在 Proxy.php 第 28 行的 Proxy::GuzzleHttp\Handler{closure}(object (请求), array('同步' => true, 'base_uri' => object(Uri), 'timeout' => '3', 'handler' => object(HandlerStack), 'allow_redirects' => array('max' => '5', 'protocols' => array('http', 'https'), 'strict' => false, 'referer' => false, 'track_redirects' => false), 'http_errors' = > true, 'decode_content' => true, 'verify' => true, 'cookies' => false)) 在 Proxy.php 第 51 行
在 Proxy::GuzzleHttp\Handler{closure}(object(Request), array('synchronous' => true, 'base_uri' => object(Uri), 'timeout' => '3', 'handler' => object (HandlerStack), 'allow_redirects' => array('max' => '5', 'protocols' => array('http', 'https'), 'strict' => false, 'referer' => false, 'track_redirects' => false), 'http_errors' => true, 'decode_content' => true, 'verify' => true, 'cookies' => false)) 在 PrepareBodyMiddleware.php 第 72 行
在 PrepareBodyMiddleware->__invoke(object(Request), array('synchronous' => true, 'base_uri' => object(Uri), 'timeout' => '3', 'handler' => object(HandlerStack), ' allow_redirects' => array('max' => '5', 'protocols' => array('http', 'https'), 'strict' => false, 'referer' => false, 'track_redirects' => false), 'http_errors' => true, 'decode_content' => true, 'verify' => true, 'cookies' => false)) 在 Middleware.php 第 30 行
在 Middleware::GuzzleHttp{closure}(object(Request), array('synchronous' => true, 'base_uri' => object(Uri), 'timeout' => '3', 'handler' => object(HandlerStack ), 'allow_redirects' => array('max' => '5', 'protocols' => array('http', 'https'), 'strict' => false, 'referer' => false, 'track_redirects ' => false), 'http_errors' => true, 'decode_content' => true, 'verify' => true, 'cookies' => false)) 在 RedirectMiddleware.php 第 68 行
在 RedirectMiddleware->__invoke(object(Request), array('synchronous' => true, 'base_uri' => object(Uri), 'timeout' => '3', 'handler' => object(HandlerStack), ' allow_redirects' => array('max' => '5', 'protocols' => array('http', 'https'), 'strict' => false, 'referer' => false, 'track_redirects' => false), 'http_errors' => true, 'decode_content' => true, 'verify' => true, 'cookies' => false)) 在 Middleware.php 第 59 行
在 Middleware::GuzzleHttp{closure}(object(Request), array('synchronous' => true, 'base_uri' => object(Uri), 'timeout' => '3', 'handler' => object(HandlerStack ), 'allow_redirects' => array('max' => '5', 'protocols' => array('http', 'https'), 'strict' => false, 'referer' => false, 'track_redirects ' => false), 'http_errors' => true, 'decode_content' => true, 'verify' => true, 'cookies' => false)) 在 HandlerStack.php 第 67 行
在 HandlerStack->__invoke(object(Request), array('synchronous' => true, 'base_uri' => object(Uri), 'timeout' => '3', 'handler' => object(HandlerStack), ' allow_redirects' => array('max' => '5', 'protocols' => array('http', 'https'), 'strict' => false, 'referer' => false, 'track_redirects' => false), 'http_errors' => true, 'decode_content' => true, 'verify' => true, 'cookies' => false)) 在 Client.php 第 268 行
在客户端->传输(对象(请求),数组('同步'=> true,'base_uri'=>对象(Uri),'超时'=>'3','处理程序'=>对象(HandlerStack),' allow_redirects' => array('max' => '5', 'protocols' => array('http', 'https'), 'strict' => false, 'referer' => false, 'track_redirects' => false), 'http_errors' => true, 'decode_content' => true, 'verify' => true, 'cookies' => false, '_conditional' => array('User-Agent' => 'GuzzleHttp/6.1. 1 curl/7.35.0 PHP/5.5.9-1ubuntu4.13'))) 在 Client.php 第 98 行
Client->sendAsync(object(Request), array('synchronous' => true)) 在客户端。
php 第 104 行
Client->send(object(Request)) 在 Feed.php 第 99 行
在 Feed->makeHttpRequest('feed/User/145636936490547870efa96b68a892ca/', 'POST', array('actor' => 'User:145636936490547870efa96b68a892ca', 'verb' => 'update', 'object' => 'Image:146562976666666 ', 'target' => 'UserCharacter:14578366478445749c90d674fcbfcf7a', 'foreign_id' => 'Image:1460097866182455b2966b0d6af6c6ca1460097866', 'to' => array('UserCharacter:14578366478445749c90d674fcbfcf7a xIhp_AjtHawdcoxhOyVkM40-dnk', 'Character:14542764069160f34f6bba72eba8369a 0Z-xTykbo-wxNgPy0NAZts- mDgU', 'Universe:14578366478314e869bd6fdbe67cfb1a FZbzNGVTQhCwa0s7QNu2NbNGZpk', '流派:14504636484684adffda0df53e17a83a 07_msjt2sUDptVBstw4gq5ZtPfw')), null,) 在 BaseFeed.php 第 152 行
在baseFeed->添加性(阵列('actor'=>'用户:1456369364905478787070EFA96B68A892CA','verb'=>'update'=>'object'=>'图像:1460097866182455B2966B06B06C6AF'','object'=>'object'=>' 'foreign_id' => 'Image:1460097866182455b2966b0d6af6c6ca1460097866', 'to' => array('UserCharacter:14578366478445749c90d674fcbfcf7a', 'Character:14542764069160f34f6bba72eba8369a', 'Universe:14578366478314e869bd6fdbe67cfb1a', 'Genre:14504636484684adffda0df53e17a83a'))) in ImageSMLHandler.php line 146
在 ImagesApiController.php 第 55 行中的 ImageHandler->processImages()