[FIXED] API cURL error

TheCodeby

Member
Users periodically get this error
Code:
GuzzleHttp\Exception\ConnectException: cURL error 28: Operation timed out after 6002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://www.washingtonpost.com./technology/2021/01/17/apple-capitol-siege-telegram/ src/addons/Truonglv/Api/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:210
Сгенерировано пользователем: denez 26.01.2021 в 14:28
Code:
#0 src/addons/Truonglv/Api/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(158): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)
#1 src/addons/Truonglv/Api/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(110): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#2 src/addons/Truonglv/Api/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(47): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#3 src/addons/Truonglv/Api/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#4 src/addons/Truonglv/Api/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(48): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#5 src/addons/Truonglv/Api/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(35): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#6 src/addons/Truonglv/Api/vendor/guzzlehttp/guzzle/src/Middleware.php(31): GuzzleHttp\PrepareBodyMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#7 src/addons/Truonglv/Api/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(55): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#8 src/addons/Truonglv/Api/vendor/guzzlehttp/guzzle/src/Middleware.php(63): GuzzleHttp\RedirectMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#9 src/addons/Truonglv/Api/vendor/guzzlehttp/guzzle/src/HandlerStack.php(75): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#10 src/addons/Truonglv/Api/vendor/guzzlehttp/guzzle/src/Client.php(331): GuzzleHttp\HandlerStack->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#11 src/addons/Truonglv/Api/vendor/guzzlehttp/guzzle/src/Client.php(168): GuzzleHttp\Client->transfer(Object(GuzzleHttp\Psr7\Request), Array)
#12 src/addons/Truonglv/Api/vendor/guzzlehttp/guzzle/src/Client.php(187): GuzzleHttp\Client->requestAsync('get', Object(GuzzleHttp\Psr7\Uri), Array)
#13 src/XF/Http/Reader.php(389): GuzzleHttp\Client->request('get', 'https://www.was...', Array)
#14 src/XF/Http/Reader.php(110): XF\Http\Reader->_request(Object(GuzzleHttp\Client), 'get', 'https://www.was...', Array, Object(XF\Http\Stream), Array, NULL)
#15 src/XF/Http/Reader.php(79): XF\Http\Reader->requestUntrusted('get', 'https://www.was...', Array, NULL, Array, NULL)
#16 src/XF/Http/MetadataFetcher.php(54): XF\Http\Reader->getUntrusted('https://www.was...', Array, NULL, Array, NULL)
#17 src/XF/BbCode/ProcessorAction/AutoLink.php(350): XF\Http\MetadataFetcher->fetch('https://www.was...', NULL, 1.61166E+9, 10)
#18 src/XF/BbCode/ProcessorAction/AutoLink.php(393): XF\BbCode\ProcessorAction\AutoLink->fetchMetadataFromUrl('https://www.was...')
#19 src/XF/BbCode/ProcessorAction/AutoLink.php(268): XF\BbCode\ProcessorAction\AutoLink->getUrlTitle('https://www.was...')
#20 src/XF/BbCode/ProcessorAction/AutoLink.php(243): XF\BbCode\ProcessorAction\AutoLink->getUrlBbCode('https://www.was...')
#21 src/XF/BbCode/ProcessorAction/AutoLink.php(114): XF\BbCode\ProcessorAction\AutoLink->autoLinkUrl('https://www.was...')
#22 [internal function]: XF\BbCode\ProcessorAction\AutoLink->filterUrlTag(Array, Array, Object(XF\BbCode\Processor))
#23 src/XF/BbCode/Processor.php(271): call_user_func(Array, Array, Array, Object(XF\BbCode\Processor))
#24 src/XF/BbCode/Processor.php(305): XF\BbCode\Processor->XF\BbCode\{closure}(Array)
#25 src/XF/BbCode/Processor.php(262): XF\BbCode\Processor->filterTag(Array, Array)
#26 src/XF/BbCode/Traverser.php(61): XF\BbCode\Processor->renderTag(Array, Array)
#27 src/XF/BbCode/Processor.php(334): XF\BbCode\Traverser->renderSubTree(Array, Array)
#28 src/XF/BbCode/Processor.php(313): XF\BbCode\Processor->renderValidTag(Array, Array)
#29 src/XF/BbCode/Processor.php(262): XF\BbCode\Processor->filterTag(Array, Array)
#30 src/XF/BbCode/Traverser.php(61): XF\BbCode\Processor->renderTag(Array, Array)
#31 src/XF/BbCode/Traverser.php(37): XF\BbCode\Traverser->renderSubTree(Array, Array)
#32 src/XF/BbCode/Traverser.php(20): XF\BbCode\Traverser->renderAst(Array, Object(XF\BbCode\RuleSet), Array)
#33 src/XF/Service/Message/Preparer.php(162): XF\BbCode\Traverser->render('[JUSTIFY]Здр...', Object(XF\BbCode\Parser), Object(XF\BbCode\RuleSet), Array)
#34 src/XF/Service/Message/Preparer.php(127): XF\Service\Message\Preparer->processMessage('[JUSTIFY]Здр...')
#35 src/addons/XFMG/XF/Service/Message/Preparer.php(11): XF\Service\Message\Preparer->prepare('[JUSTIFY]Здр...', true)
#36 src/XF/Service/Post/Preparer.php(98): XFMG\XF\Service\Message\Preparer->prepare('[JUSTIFY]Здр...', true)
#37 src/XF/Service/Thread/Creator.php(155): XF\Service\Post\Preparer->setMessage('[JUSTIFY]Здр...', true, true)
#38 src/XF/Pub/Controller/Forum.php(658): XF\Service\Thread\Creator->setContent('', '[JUSTIFY]Здр...')
#39 src/XF/Pub/Controller/Forum.php(593): XF\Pub\Controller\Forum->setupThreadCreate(Object(XFMG\XF\Entity\Forum))
#40 src/XF/Mvc/Dispatcher.php(350): XF\Pub\Controller\Forum->actionDraft(Object(XF\Mvc\ParameterBag))
#41 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Forum', 'Draft', Object(XF\Mvc\RouteMatch), Object(EWR\Porta\Pub\Controller\Forum), NULL)
#42 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(EWR\Porta\Pub\Controller\Forum), NULL)
#43 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#44 src/XF/App.php(2300): XF\Mvc\Dispatcher->run()
#45 src/XF.php(488): XF\App->run()
#46 index.php(20): XF::runApp('XF\\Pub\\App')
#47 {main}
Code:
Содержимое запроса
array(4) {
  ["url"] => string(35) "/forums/svobodnoe-obschenie.1/draft"
  ["referrer"] => string(59) "********/svobodnoe-obschenie.1/post-thread"
  ["_GET"] => array(1) {
    ["/forums/svobodnoe-obschenie_1/draft"] => string(0) ""
  }
  ["_POST"] => array(14) {
    ["prefix_id"] => string(1) "0"
    ["title"] => string(0) ""
    ["discussion_type"] => string(10) "discussion"
    ["message_html"] => string(70571) "<p align="justify" lang="ru-RU">********</p>"
    ["attachment_hash"] => string(32) "********"
    ["attachment_hash_combined"] => string(81) "{"type":"post","context":{"node_id":1},"hash":"********"}"
    ["tags"] => string(0) ""
    ["watch_thread"] => string(1) "1"
    ["watch_thread_email"] => string(1) "1"
    ["_xfSet"] => array(1) {
      ["watch_thread"] => string(1) "1"
    }
    ["_xfRequestUri"] => string(41) "/forums/svobodnoe-obschenie.1/post-thread"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}
 

TheCodeby

Member

Truonglv

♥♥ √εgετα ♥♥
Staff member
Tech Support
View previous replies…

Truonglv

♥♥ √εgετα ♥♥
Staff member
Tech Support
When I disable the addon [tl] Mobile Apps Api, the problem goes away. I turn it back on - the problem repeats. And it does not depend on the length of the URL. This can happen, for example, with this URL https://www.bignox.com/
TheCodebyCan you test with api version 2.0.7?
 

Thread view new threads

Top