tourmeister
Active member
So when I first upgraded to XF 2.1, I had no issues.
A few days after upgrading, I had to do a full restoration of my server from a backup made right before I did the upgrade.
I did the upgrade again after restoring from the backup and other than these push errors, everything is fine.
Any idea what might be causing it?
A few days after upgrading, I had to do a full restoration of my server from a backup made right before I did the upgrade.
I did the upgrade again after restoring from the backup and other than these push errors, everything is fine.
Any idea what might be causing it?
Code:
[LIST]
[*]
[*]ErrorException: Push notification failure: {"success":false,"endpoint":{},"message":"Client error: `POST https:\/\/fcm.googleapis.com\/wp\/c-8MoOQ3Zvw:APA91bF7vO5TyLVSmaXcWgK18c4yOGuHzFBxHQffR0_QQk9Zyh3c6ksIqI6C5-jTKhjXIwJnagwPuKydA6i35rR5rsoLeVvbjepmJUaTFUnSwdZoEQLmo7eRUM5u8RjaqDabBKMLecuv` resulted in a `403 Forbidden` response:\n\n<!DOCTYPE html>\n<html lang=en>\n <meta charset=utf-8>\n <meta name=viewport content=\"initial-scale=1, minimum-scale=1, (truncated...)\n","statusCode":403,"reasonPhrase":"Forbidden","expired":false,"content":{},"headers":{"Content-Length":["1449"],"Content-Type":["text\/html; charset=utf-8"],"X-Content-Type-Options":["nosniff"],"X-Frame-Options":["SAMEORIGIN"],"X-Xss-Protection":["1; mode=block"],"Date":["Sun, 10 Feb 2019 02:23:31 GMT"],"Alt-Svc":["quic=\":443\"; ma=2592000; v=\"44,43,39\""]}}
[*]
[*]src/XF/Error.php:75
[*]
[*]
[*]Generated by: maximus_flavius
[*]
[*]Feb 9, 2019 at 8:23 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(28214, 22889, 'maximus_flavius', 'post', 1595658, 'insert', Array)
#6 src/XF/Notifier/AbstractNotifier.php(55): XF\Repository\UserAlert->alert(Object(SV\ContactUsThread\XF\Entity\User), 22889, 'maximus_flavius', 'post', 1595658, 'insert', Array)
#7 src/XF/Notifier/Post/AbstractWatch.php(104): XF\Notifier\AbstractNotifier->basicAlert(Object(SV\ContactUsThread\XF\Entity\User), 22889, 'maximus_flavius', 'post', 1595658, '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(46) "/forums/threads/suzuki-dr-big.119802/add-reply"
["referrer"] => string(58) "https://www.twtex.com/forums/threads/suzuki-dr-big.119802/"
["_GET"] => array(0) {
}
["_POST"] => array(9) {
["message_html"] => string(102) "<p>https://www.twtex.com/forums/threads/is-your-strom-going-to-be-out-of-date.119760/#post-1595478</p>"
["attachment_hash"] => string(32) "f00da9418e27c121472116a4959245d2"
["attachment_hash_combined"] => string(88) "{"type":"post","context":{"thread_id":119802},"hash":"f00da9418e27c121472116a4959245d2"}"
["last_date"] => string(10) "1549765289"
["last_known_date"] => string(10) "1549765289"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(37) "/forums/threads/suzuki-dr-big.119802/"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}