Not a bug Push Notification Failure

tajhay

Well-known member
Affected version
2.1
Code:
Server error log
ErrorException: Push notification failure: {"success":false,"endpoint":{},"message":"cURL error 28: Operation timed out after 10000 milliseconds with 0 out of -1 bytes received (see http:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)"} src/XF/Error.php:75
Generated by: Rick O'Shay Mar 6, 2019 at 8:06 AM
Stack trace
#0 src/XF.php(187): XF\Error->logError('Push notificati...', false)
#1 src/XF/Service/PushNotification.php(243): XF::logError('Push notificati...')
#2 src/XF/Service/PushNotification.php(167): XF\Service\PushNotification->handleResults(Array, Array)
#3 src/XF/Service/PusherTrait.php(87): XF\Service\PushNotification->sendNotifications()
#4 src/XF/Repository/UserAlert.php(147): XF\Service\Alert\Pusher->push()
#5 src/XF/Repository/UserAlert.php(98): XF\Repository\UserAlert->insertAlert(62, 843, 'Rick O'Shay', 'post', 763326, 'reaction', Array)
#6 src/XF/Reaction/AbstractHandler.php(181): XF\Repository\UserAlert->alertFromUser(Object(Siropu\AdsManager\XF\Entity\User), Object(Siropu\AdsManager\XF\Entity\User), 'post', 763326, 'reaction', Array)
#7 src/XF/Repository/Reaction.php(196): XF\Reaction\AbstractHandler->sendReactionAlert(Object(Siropu\AdsManager\XF\Entity\User), Object(Siropu\AdsManager\XF\Entity\User), 763326, Object(ThemeHouse\ReactPlus\XF\Entity\Post), 1)
#8 src/XF/Repository/Reaction.php(137): XF\Repository\Reaction->insertReaction(1, 'post', 763326, Object(Siropu\AdsManager\XF\Entity\User), true, false)
#9 src/addons/ThemeHouse/ReactPlus/XF/Repository/Reaction.php(20): XF\Repository\Reaction->reactToContent(1, 'post', 763326, Object(Siropu\AdsManager\XF\Entity\User), true, false)
#10 src/XF/ControllerPlugin/Reaction.php(65): ThemeHouse\ReactPlus\XF\Repository\Reaction->reactToContent(1, 'post', 763326, Object(Siropu\AdsManager\XF\Entity\User), true)
#11 src/addons/ThemeHouse/ReactPlus/XF/ControllerPlugin/Reaction.php(17): XF\ControllerPlugin\Reaction->actionToggleReaction(Object(ThemeHouse\ReactPlus\XF\Entity\Post), 'posts/reactions', 'posts')
#12 src/XF/ControllerPlugin/Reaction.php(19): ThemeHouse\ReactPlus\XF\ControllerPlugin\Reaction->actionToggleReaction(Object(ThemeHouse\ReactPlus\XF\Entity\Post), 'posts/reactions', 'posts')
#13 src/XF/ControllerPlugin/Reaction.php(12): XF\ControllerPlugin\Reaction->actionReact(Object(ThemeHouse\ReactPlus\XF\Entity\Post), 'posts', 'posts/react', 'posts/reactions')
#14 src/XF/Pub/Controller/Post.php(368): XF\ControllerPlugin\Reaction->actionReactSimple(Object(ThemeHouse\ReactPlus\XF\Entity\Post), 'posts')
#15 src/XF/Mvc/Dispatcher.php(321): XF\Pub\Controller\Post->actionReact(Object(XF\Mvc\ParameterBag))
#16 src/XF/Mvc/Dispatcher.php(244): XF\Mvc\Dispatcher->dispatchClass('XF:Post', 'React', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Post), NULL)
#17 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Post), NULL)
#18 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#19 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#20 src/XF.php(390): XF\App->run()
#21 index.php(20): XF::runApp('XF\\Pub\\App')
#22 {main}
Request state
array(4) {
  ["url"] => string(33) "/posts/763326/react?reaction_id=1"
  ["referrer"] => string(72) "https://nzwarriors.com/threads/cht-vs-ak-selection-decision.61508/page-3"
  ["_GET"] => array(2) {
    ["/posts/763326/react"] => string(0) ""
    ["reaction_id"] => string(1) "1"
  }
  ["_POST"] => array(4) {
    ["_xfRequestUri"] => string(50) "/threads/cht-vs-ak-selection-decision.61508/page-3"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}

Could it be related to Reaction Plus addon? @Jake B.
 
It’s just a timeout. It happens. I think these are suppressed in 2.1.1 but either way, safe to ignore.
I'm seeing a couple push notification errors in 2.1.1:

Error 1:
Code:
ErrorException: Push notification failure: {"success":false,"endpoint":{},"message":"cURL error 28: Connection time-out (see http:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)"} src/XF/Error.php:75
Generated by: Micah008 Mar 16, 2019 at 8:13 AM

Stack trace
#0 src/XF.php(187): XF\Error->logError('Push notificati...', false)
#1 src/XF/Service/PushNotification.php(247): XF::logError('Push notificati...')
#2 src/XF/Service/PushNotification.php(167): XF\Service\PushNotification->handleResults(Array, Array)
#3 src/XF/Service/PusherTrait.php(159): XF\Service\PushNotification->sendNotifications()
#4 src/XF/Repository/UserAlert.php(147): XF\Service\Alert\Pusher->push()
#5 src/XF/Repository/UserAlert.php(111): XF\Repository\UserAlert->insertAlert(400, 2039, 'Micah008', 'post', 90813, 'insert', Array)
#6 src/XF/Notifier/AbstractNotifier.php(55): XF\Repository\UserAlert->alert(Object(XFMG\XF\Entity\User), 2039, 'Micah008', 'post', 90813, 'insert', Array)
#7 src/XF/Notifier/Post/AbstractWatch.php(104): XF\Notifier\AbstractNotifier->basicAlert(Object(XFMG\XF\Entity\User), 2039, 'Micah008', 'post', 90813, 'insert')
#8 src/XF/Service/AbstractNotifier.php(86): XF\Notifier\Post\AbstractWatch->sendAlert(Object(XFMG\XF\Entity\User))
#9 src/XF/Service/AbstractNotifier.php(44): XF\Service\AbstractNotifier->notifyType(Object(XF\Notifier\Post\ThreadWatch), Array, G)
#10 src/XF/Service/AbstractNotifier.php(56): XF\Service\AbstractNotifier->notify(3)
#11 src/XF/Service/Thread/Replier.php(205): XF\Service\AbstractNotifier->notifyAndEnqueue(3)
#12 src/XF/Pub/Controller/Thread.php(330): XF\Service\Thread\Replier->sendNotifications()
#13 src/addons/xenMade/SEO/XF/Pub/Controller/Thread.php(202): XF\Pub\Controller\Thread->finalizeThreadReply(Object(XF\Service\Thread\Replier))
#14 src/XF/Pub/Controller/Thread.php(463): xenMade\SEO\XF\Pub\Controller\Thread->finalizeThreadReply(Object(XF\Service\Thread\Replier))
#15 src/XF/Mvc/Dispatcher.php(321): XF\Pub\Controller\Thread->actionAddReply(Object(XF\Mvc\ParameterBag))
#16 src/XF/Mvc/Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'AddReply', Object(XF\Mvc\RouteMatch), Object(XDinc\FTSlider\Pub\Controller\Thread), NULL)
#17 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XDinc\FTSlider\Pub\Controller\Thread), NULL)
#18 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#19 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#20 src/XF.php(390): XF\App->run()
#21 index.php(20): XF::runApp('XF\\Pub\\App')
#22 {main}

Request state
array(4) {
  ["url"] => string(65) "/forum/threads/food-fun-where-in-walt-disney-world.9571/add-reply"
  ["referrer"] => string(82) "https://dvcinfo.com/forum/threads/food-fun-where-in-walt-disney-world.9571/page-54"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(9) {
    ["message_html"] => string(28) "<p>Riverside Mill at POR</p>"
    ["attachment_hash"] => string(32) "d267c2a170f57785fe2606417039b986"
    ["attachment_hash_combined"] => string(86) "{"type":"post","context":{"thread_id":9571},"hash":"d267c2a170f57785fe2606417039b986"}"
    ["last_date"] => string(10) "1552733122"
    ["last_known_date"] => string(10) "1552733122"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(63) "/forum/threads/food-fun-where-in-walt-disney-world.9571/page-54"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}

Error 2:
Code:
ErrorException: Push notification failure: {"success":false,"endpoint":{},"message":"cURL error 28: Operation timed out after 10073 milliseconds with 1118 out of 1449 bytes received (see http:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)"} src/XF/Error.php:75
Generated by: Micah008 Mar 16, 2019 at 8:13 AM

Stack trace
#0 src/XF.php(187): XF\Error->logError('Push notificati...', false)
#1 src/XF/Service/PushNotification.php(247): XF::logError('Push notificati...')
#2 src/XF/Service/PushNotification.php(167): XF\Service\PushNotification->handleResults(Array, Array)
#3 src/XF/Service/PusherTrait.php(159): XF\Service\PushNotification->sendNotifications()
#4 src/XF/Repository/UserAlert.php(147): XF\Service\Alert\Pusher->push()
#5 src/XF/Repository/UserAlert.php(111): XF\Repository\UserAlert->insertAlert(400, 2039, 'Micah008', 'post', 90813, 'insert', Array)
#6 src/XF/Notifier/AbstractNotifier.php(55): XF\Repository\UserAlert->alert(Object(XFMG\XF\Entity\User), 2039, 'Micah008', 'post', 90813, 'insert', Array)
#7 src/XF/Notifier/Post/AbstractWatch.php(104): XF\Notifier\AbstractNotifier->basicAlert(Object(XFMG\XF\Entity\User), 2039, 'Micah008', 'post', 90813, 'insert')
#8 src/XF/Service/AbstractNotifier.php(86): XF\Notifier\Post\AbstractWatch->sendAlert(Object(XFMG\XF\Entity\User))
#9 src/XF/Service/AbstractNotifier.php(44): XF\Service\AbstractNotifier->notifyType(Object(XF\Notifier\Post\ThreadWatch), Array, G)
#10 src/XF/Service/AbstractNotifier.php(56): XF\Service\AbstractNotifier->notify(3)
#11 src/XF/Service/Thread/Replier.php(205): XF\Service\AbstractNotifier->notifyAndEnqueue(3)
#12 src/XF/Pub/Controller/Thread.php(330): XF\Service\Thread\Replier->sendNotifications()
#13 src/addons/xenMade/SEO/XF/Pub/Controller/Thread.php(202): XF\Pub\Controller\Thread->finalizeThreadReply(Object(XF\Service\Thread\Replier))
#14 src/XF/Pub/Controller/Thread.php(463): xenMade\SEO\XF\Pub\Controller\Thread->finalizeThreadReply(Object(XF\Service\Thread\Replier))
#15 src/XF/Mvc/Dispatcher.php(321): XF\Pub\Controller\Thread->actionAddReply(Object(XF\Mvc\ParameterBag))
#16 src/XF/Mvc/Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'AddReply', Object(XF\Mvc\RouteMatch), Object(XDinc\FTSlider\Pub\Controller\Thread), NULL)
#17 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XDinc\FTSlider\Pub\Controller\Thread), NULL)
#18 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#19 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#20 src/XF.php(390): XF\App->run()
#21 index.php(20): XF::runApp('XF\\Pub\\App')
#22 {main}

Request state
array(4) {
  ["url"] => string(65) "/forum/threads/food-fun-where-in-walt-disney-world.9571/add-reply"
  ["referrer"] => string(82) "https://dvcinfo.com/forum/threads/food-fun-where-in-walt-disney-world.9571/page-54"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(9) {
    ["message_html"] => string(28) "<p>Riverside Mill at POR</p>"
    ["attachment_hash"] => string(32) "d267c2a170f57785fe2606417039b986"
    ["attachment_hash_combined"] => string(86) "{"type":"post","context":{"thread_id":9571},"hash":"d267c2a170f57785fe2606417039b986"}"
    ["last_date"] => string(10) "1552733122"
    ["last_known_date"] => string(10) "1552733122"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(63) "/forum/threads/food-fun-where-in-walt-disney-world.9571/page-54"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Obviously not suppressed then but nothing to worry about all the same unless it becomes a prolonged issue in which case you will want to investigate it with your hosts.
 
As a side note, I followed up with the user who triggered these errors in the error log. Interestingly he does not have push notifications enabled (button in Profile says "Enable" (which means they are disabled which is kinda confusing by the way).
 
Getting one of these every other day or so. Sort of annoying. Would be nice to suppress if "normal"...
Code:
Server error log
ErrorException: Push notification failure: {"success":false,"endpoint":{},"message":"cURL error 28: Connection time-out (see http:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)"} src/XF/Error.php:75
Generated by: GG1429 Mar 19, 2019 at 8:11 AM

Stack trace
#0 src/XF.php(187): XF\Error->logError('Push notificati...', false)
#1 src/XF/Service/PushNotification.php(247): XF::logError('Push notificati...')
#2 src/XF/Service/PushNotification.php(167): XF\Service\PushNotification->handleResults(Array, Array)
#3 src/XF/Service/PusherTrait.php(159): XF\Service\PushNotification->sendNotifications()
#4 src/XF/Repository/UserAlert.php(147): XF\Service\Alert\Pusher->push()
#5 src/XF/Repository/UserAlert.php(111): XF\Repository\UserAlert->insertAlert(400, 53, 'GG1429', 'post', 91218, 'insert', Array)
#6 src/XF/Notifier/AbstractNotifier.php(55): XF\Repository\UserAlert->alert(Object(XFMG\XF\Entity\User), 53, 'GG1429', 'post', 91218, 'insert', Array)
#7 src/XF/Notifier/Post/AbstractWatch.php(104): XF\Notifier\AbstractNotifier->basicAlert(Object(XFMG\XF\Entity\User), 53, 'GG1429', 'post', 91218, 'insert')
#8 src/XF/Service/AbstractNotifier.php(86): XF\Notifier\Post\AbstractWatch->sendAlert(Object(XFMG\XF\Entity\User))
#9 src/XF/Service/AbstractNotifier.php(44): XF\Service\AbstractNotifier->notifyType(Object(XF\Notifier\Post\ThreadWatch), Array, G)
#10 src/XF/Service/AbstractNotifier.php(56): XF\Service\AbstractNotifier->notify(3)
#11 src/XF/Service/Thread/Replier.php(205): XF\Service\AbstractNotifier->notifyAndEnqueue(3)
#12 src/XF/Pub/Controller/Thread.php(330): XF\Service\Thread\Replier->sendNotifications()
#13 src/addons/xenMade/SEO/XF/Pub/Controller/Thread.php(202): XF\Pub\Controller\Thread->finalizeThreadReply(Object(XF\Service\Thread\Replier))
#14 src/XF/Pub/Controller/Thread.php(463): xenMade\SEO\XF\Pub\Controller\Thread->finalizeThreadReply(Object(XF\Service\Thread\Replier))
#15 src/XF/Mvc/Dispatcher.php(321): XF\Pub\Controller\Thread->actionAddReply(Object(XF\Mvc\ParameterBag))
#16 src/XF/Mvc/Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'AddReply', Object(XF\Mvc\RouteMatch), Object(XDinc\FTSlider\Pub\Controller\Thread), NULL)
#17 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XDinc\FTSlider\Pub\Controller\Thread), NULL)
#18 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#19 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#20 src/XF.php(390): XF\App->run()
#21 index.php(20): XF::runApp('XF\\Pub\\App')
#22 {main}

Request state
array(4) {
  ["url"] => string(86) "/forum/threads/walt-disney-world-fan-says-he-has-visited-wdw-100-times.13508/add-reply"
  ["referrer"] => string(96) "https://dvcinfo.com/forum/threads/walt-disney-world-fan-says-he-has-visited-wdw-100-times.13508/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(9) {
    ["message_html"] => string(301) "<p>[QUOTE="Babbott, post: 91209, member: 836"]</p><p>.........,, I am a RUSH nerd.</p><p>[/QUOTE]</p><p><br></p><p><img src="/forum/styles/default/xenforo/smilies/yeahthat.gif" class="smilie fr-fic fr-dii" alt=":yeahthat:" title="yeahthat    :yeahthat:" data-shortname=":yeahthat:"><br></p><p><br></p>"
    ["attachment_hash"] => string(32) "3eb3b374b73aa105418f9ee488b98662"
    ["attachment_hash_combined"] => string(87) "{"type":"post","context":{"thread_id":13508},"hash":"3eb3b374b73aa105418f9ee488b98662"}"
    ["last_date"] => string(10) "1552964027"
    ["last_known_date"] => string(10) "1552964027"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(77) "/forum/threads/walt-disney-world-fan-says-he-has-visited-wdw-100-times.13508/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
BTW, also seeing a bunch of these (not timeout) errors:

 
Back
Top Bottom