XF 2.1 ErrorException: Push notification failure

Hello, what could be the cause of this error?

Code:
ErrorException: Push notification failure: {"success":false,"endpoint":{},"message":"cURL error 28: Resolving timed out after 50158 milliseconds (see http:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)"} src/XF/Error.php:75

Stack trace
#0 src/XF.php(189): XF\Error->logError('Push notificati...', false)
#1 src/XF/Service/PushNotification.php(234): XF::logError('Push notificati...')
#2 src/XF/Service/PushNotification.php(178): XF\Service\PushNotification->handleResults(Array, Array)
#3 src/XF/Service/PusherTrait.php(64): 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(104, 19, 'Defne™Günes', 'post', 3875, 'quote', Array)
#6 src/XF/Notifier/AbstractNotifier.php(55): XF\Repository\UserAlert->alert(Object(XF\Entity\User), 19, 'Defne™Günes', 'post', 3875, 'quote', Array)
#7 src/XF/Notifier/Post/Quote.php(30): XF\Notifier\AbstractNotifier->basicAlert(Object(XF\Entity\User), 19, 'Defne™Günes', 'post', 3875, 'quote')
#8 src/XF/Service/AbstractNotifier.php(86): XF\Notifier\Post\Quote->sendAlert(Object(XF\Entity\User))
#9 src/XF/Service/AbstractNotifier.php(44): XF\Service\AbstractNotifier->notifyType(Object(XF\Notifier\Post\Quote), 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/XF/Pub/Controller/Thread.php(463): XF\Pub\Controller\Thread->finalizeThreadReply(Object(XF\Service\Thread\Replier))
#14 src/XF/Mvc/Dispatcher.php(321): XF\Pub\Controller\Thread->actionAddReply(Object(XF\Mvc\ParameterBag))
#15 src/XF/Mvc/Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'AddReply', Object(XF\Mvc\RouteMatch), Object(SV\UserActivity\XF\Pub\Controller\Thread), NULL)
#16 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\UserActivity\XF\Pub\Controller\Thread), NULL)
#17 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#18 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#19 src/XF.php(392): XF\App->run()
#20 index.php(20): XF::runApp('XF\\Pub\\App')
#21 {main}

Request state
array(4) {
  ["url"] => string(48) "/threads/xxx.2461/add-reply"
  ["referrer"] => string(64) "https://www.flatkolik.net/threads/xxx.2461/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(9) {
    ["message_html"] => string(425) "<p>"
    ["attachment_hash"] => string(32) "d9c97567973e1f1635cd87be715809e0"
    ["attachment_hash_combined"] => string(86) "{"type":"post","context":{"thread_id":2461},"hash":"d9c97567973e1f1635cd87be715809e0"}"
    ["last_date"] => string(10) "1544908045"
    ["last_known_date"] => string(10) "1544908045"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(39) "/threads/xxxx.2461/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}

Server-Error
 
Resolving timed out after 50158 milliseconds

These are DNS resolution issues on your server. This could be temporary, as all of the reported errors happened within a couple minutes. If it keeps happening, then you may need to contact your host/server admin to check the DNS server you're using.
 
So when I first upgraded to XF2.1, I was not getting these errors.

I had a slight snafu, had to restore my site from a backup that was made RIGHT before I upgraded to 2.1. So I had to do the upgrade again.

The upgrade completed fine and the site is working. But now I am getting a LOT of these errors related to the push notifications.

195177

And here is the content of the top one, which is similar to the other from what I can see,

Code:
Server error log   
[LIST]
[*]ErrorException: Push notification failure: {"success":false,"endpoint":{},"message":"Client error: `POST https:\/\/updates.push.services.mozilla.com\/wpush\/v2\/gAAAAABcWfI5PH1z_VjZD1fGPKgZ_TJFnLH09h-mCOR4lwiuihgyBZVTG8rTgwYqZWsr2K8wdF5_ahr6Y2iAqRy1TSwe8e5Zq2a9wdzLRIsNoSdd5aaUAqP7YB2HIRiE58nrkv5qBpZM-Zvn7mxh63pUPjzsnAjjGvFNnJt73NIepRf6AUen974` resulted in a `401 Unauthorized` response:\n{\"code\": 401, \"errno\": 109, \"error\": \"Unauthorized\", \"more_info\": \"http:\/\/autopush.readthedocs.io\/en\/latest\/http.html#er (truncated...)\n","statusCode":401,"reasonPhrase":"Unauthorized","expired":false,"content":{},"headers":{"Access-Control-Allow-Headers":["content-encoding,encryption,crypto-key,ttl,encryption-key,content-type,authorization"],"Access-Control-Allow-Methods":["POST"],"Access-Control-Allow-Origin":["*"],"Access-Control-Expose-Headers":["location,www-authenticate"],"Content-Type":["application\/json"],"Date":["Fri, 08 Feb 2019 20:47:01 GMT"],"Server":["nginx"],"Strict-Transport-Security":["max-age=31536000;includeSubDomains"],"Content-Length":["199"],"Connection":["keep-alive"]}}
[*]               
[*]src/XF/Error.php:75
[*]            
[*]                
[*]Generated by: Tracker
[*]               
[*]Feb 8, 2019 at 2:47 PM
[*]            
[/LIST]
                Stack trace
       
           #0 src/XF.php(187): XF\Error->logError('Push notificati...', false)
#1 src/XF/Service/PushNotification.php(237): 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(111): XF\Repository\UserAlert->insertAlert(28989, 2060, 'Tracker', 'post', 1595231, 'insert', Array)
#6 src/XF/Notifier/AbstractNotifier.php(55): XF\Repository\UserAlert->alert(Object(SV\ContactUsThread\XF\Entity\User), 2060, 'Tracker', 'post', 1595231, 'insert', Array)
#7 src/XF/Notifier/Post/AbstractWatch.php(104): XF\Notifier\AbstractNotifier->basicAlert(Object(SV\ContactUsThread\XF\Entity\User), 2060, 'Tracker', 'post', 1595231, 'insert')
#8 src/XF/Service/AbstractNotifier.php(86): XF\Notifier\Post\AbstractWatch->sendAlert(Object(SV\ContactUsThread\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/XF/Pub/Controller/Thread.php(463): XF\Pub\Controller\Thread->finalizeThreadReply(Object(XF\Service\Thread\Replier))
#14 src/XF/Mvc/Dispatcher.php(321): XF\Pub\Controller\Thread->actionAddReply(Object(XF\Mvc\ParameterBag))
#15 src/XF/Mvc/Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'AddReply', Object(XF\Mvc\RouteMatch), Object(Andy\Calendar\XF\Pub\Controller\Thread), NULL)
#16 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Andy\Calendar\XF\Pub\Controller\Thread), NULL)
#17 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#18 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#19 src/XF.php(390): XF\App->run()
#20 index.php(20): XF::runApp('XF\\Pub\\App')
#21 {main}

        Request state

   array(4) {
  ["url"] => string(48) "/forums/threads/three-word-story.81852/add-reply"
  ["referrer"] => string(68) "https://www.twtex.com/forums/threads/three-word-story.81852/page-160"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(9) {
    ["message_html"] => string(135) "<p>[QUOTE="Lucifermotorcyclepants, post: 1595074, member: 25216"]</p><p>Streets of Laredo</p><p>[/QUOTE]</p><p>where websites crash</p>"
    ["attachment_hash"] => string(32) "3e3f9b66f368461111ae307e0018141f"
    ["attachment_hash_combined"] => string(87) "{"type":"post","context":{"thread_id":81852},"hash":"3e3f9b66f368461111ae307e0018141f"}"
    ["last_date"] => string(10) "1549345079"
    ["last_known_date"] => string(10) "1549345079"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(47) "/forums/threads/three-word-story.81852/page-160"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Just got this one. I have one from yesterday too...

Code:
ErrorException: Push notification failure: {"success":false,"endpoint":{},"message":"cURL error 28: Operation timed out after 10001 milliseconds with 0 out of 0 bytes received (see http:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)"} src/XF/Error.php:75
Generated by: UsernameHere Feb 19, 2019 at 5:27 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(111): XF\Repository\UserAlert->insertAlert(27088, 26297, 'UsernameHere', 'post', 1146955, 'insert', Array)
#6 src/XF/Notifier/AbstractNotifier.php(55): XF\Repository\UserAlert->alert(Object(Siropu\Shoutbox\XF\Entity\User), 26297, 'UsernameHere', 'post', 1146955, 'insert', Array)
#7 src/XF/Notifier/Post/AbstractWatch.php(104): XF\Notifier\AbstractNotifier->basicAlert(Object(Siropu\Shoutbox\XF\Entity\User), 26297, 'UsernameHere', 'post', 1146955, 'insert')
#8 src/XF/Service/AbstractNotifier.php(86): XF\Notifier\Post\AbstractWatch->sendAlert(Object(Siropu\Shoutbox\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/XF/Pub/Controller/Thread.php(463): XF\Pub\Controller\Thread->finalizeThreadReply(Object(XF\Service\Thread\Replier))
#14 src/XF/Mvc/Dispatcher.php(321): XF\Pub\Controller\Thread->actionAddReply(Object(XF\Mvc\ParameterBag))
#15 src/XF/Mvc/Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'AddReply', Object(XF\Mvc\RouteMatch), Object(XFMG\XF\Pub\Controller\Thread), NULL)
#16 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XFMG\XF\Pub\Controller\Thread), NULL)
#17 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#18 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#19 src/XF.php(390): XF\App->run()
#20 index.php(20): XF::runApp('XF\\Pub\\App')
#21 {main}

Request state
array(4) {
  ["url"] => string(52) "/threads/what-do-you-hate-today-2019.49464/add-reply"
  ["referrer"] => string(68) "https://www.sitename.com/threads/what-do-you-hate-today-2019.49464/page-3"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(9) {
    ["message_html"] => string(251) "<p>people on golf clash who tell themselves "nice shot" and "unlucky" and say nothing if you are on form.. &nbsp;I just start doing **** emojis now, luckily there aren't too many of those types but **** they live amongst us..</p><p><br></p><p><br></p>"
    ["attachment_hash"] => string(32) "ef57f85b1b69327143cf68668dd7c264"
    ["attachment_hash_combined"] => string(87) "{"type":"post","context":{"thread_id":49464},"hash":"ef57f85b1b69327143cf68668dd7c264"}"
    ["last_date"] => string(10) "1550288936"
    ["last_known_date"] => string(10) "1550288936"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(49) "/threads/what-do-you-hate-today-2019.49464/page-3"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Hello,

Until a few days maybe more than 7 days I have been receiving below error. @Mike said that this is cause of server but I have 2 forums in same server. One of them there is error one of them not.

How can we solve it?

Thanks..


Code:
Server error
ErrorException: Push notification failure: {"success":false,"endpoint":{},"message":"cURL error 28: Connection timed out after 10001 milliseconds (see http:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)"} src/XF/Error.php:75
tarafından oluşturuldu: XXXX 17 Eylül 2019 09:55

Stack Trace
#0 src/XF.php(187): XF\Error->logError('Push notificati...', false)
#1 src/XF/Service/PushNotification.php(249): XF::logError('Push notificati...')
#2 src/XF/Service/PushNotification.php(167): XF\Service\PushNotification->handleResults(Array, Array)
#3 src/XF/Service/PusherTrait.php(182): 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(27514, 14409, 'Olgaç Sürmeli...', 'post', 162547, 'mention', Array)
#6 src/XF/Notifier/AbstractNotifier.php(55): XF\Repository\UserAlert->alert(Object(SV\WhoReplied\XF\Entity\User), 14409, 'Olgaç Sürmeli...', 'post', 162547, 'mention', Array)
#7 src/XF/Notifier/Post/Mention.php(29): XF\Notifier\AbstractNotifier->basicAlert(Object(SV\WhoReplied\XF\Entity\User), 14409, 'Olgaç Sürmeli...', 'post', 162547, 'mention')
#8 src/XF/Service/AbstractNotifier.php(86): XF\Notifier\Post\Mention->sendAlert(Object(SV\WhoReplied\XF\Entity\User))
#9 src/XF/Service/AbstractNotifier.php(44): XF\Service\AbstractNotifier->notifyType(Object(XF\Notifier\Post\Mention), 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/XF/Pub/Controller/Thread.php(463): XF\Pub\Controller\Thread->finalizeThreadReply(Object(XF\Service\Thread\Replier))
#14 src/addons/KL/AutoMergeDoublePost/Pub/Controller/Thread.php(41): XF\Pub\Controller\Thread->actionAddReply(Object(XF\Mvc\ParameterBag))
#15 src/XF/Mvc/Dispatcher.php(321): KL\AutoMergeDoublePost\Pub\Controller\Thread->actionAddReply(Object(XF\Mvc\ParameterBag))
#16 src/XF/Mvc/Dispatcher.php(244): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'AddReply', Object(XF\Mvc\RouteMatch), Object(SV\WhoReplied\XF\Pub\Controller\Thread), NULL)
#17 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\WhoReplied\XF\Pub\Controller\Thread), NULL)
#18 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#19 src/XF/App.php(2178): 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(38) "/konu/tekstil-atiklari.14363/add-reply"
  ["referrer"] => string(62) "https://www.cevremuhendisleri.net/konu/tekstil-atiklari.14363/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(10) {
    ["message_html"] => string(150) "<p>xxxx</span></p>"
    ["attachment_hash"] => string(32) "9984417dc90d06057c8ca6bf95c089e5"
    ["attachment_hash_combined"] => string(87) "{"type":"post","context":{"thread_id":14363},"hash":"9984417dc90d06057c8ca6bf95c089e5"}"
    ["last_date"] => string(10) "1568703249"
    ["last_known_date"] => string(10) "1568703249"
    ["tpr_post_id"] => string(6) "162540"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(29) "/konu/tekstil-atiklari.14363/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Last edited:
Top Bottom