XF 2.1 ErrorException: Push notification failure: {"success":false,"endpoint":{},"message":"Client error: `POST https:\/\/db5p.notify.windows.com

Robru

Well-known member
Code:
Server error log

    ErrorException: Push notification failure: {"success":false,"endpoint":{},"message":"Client error: `POST https:\/\/db5p.notify.windows.com\/w\/?token=BQYAAADjVgGdxC3EadfzrhRjSSbarKWpgkoDmMlLBeGFIoLU3Idex8Xa4Dpcj7vBLd8d%2f%2bELzapr6GN5MPVx8DPf7SAYLpSgTDoMUhRMj9pQV1yi1fYWloy7jROjDrJpR%2b3eS1b2Cr067ksEOfLiJ4mw1M%2fH3wgTN2%2b61Jm%2fmc6R8cpmdDKjBqhceUZ3qo%2fcea8ZhSM2birpzFDQcVcV8xa14f87ClmQ2f82FD%2fIScsYdsQnMafb9Kx78XN2dX3fbGAy6xfrQFGk7c6ET%2bPttMeHqncWii8ZfqLai6U4E%2fk7v%2fTbGsW1TsyBBV3RXfwgPjyPcUUHf0lxiaQuVBE7dVXFXUB%2b` resulted in a `406 Not Acceptable` response","statusCode":406,"reasonPhrase":"Not Acceptable","expired":false,"content":{},"headers":{"Content-Length":["0"],"X-WNS-NOTIFICATIONSTATUS":["appthrottled"],"X-WNS-STATUS":["appthrottled"],"X-WNS-MSG-ID":["6E017D110CE59DCE"],"X-WNS-DEBUG-TRACE":["DB5PEPF00000446"],"MS-CV":["PckpkFBZr0+WfOY4ZdOH5w.0"],"Strict-Transport-Security":["max-age=31536000; includeSubDomains"],"Date":["Sat, 18 May 2019 08:49:28 GMT"]}} src/XF/Error.php:75

Code:
Stack trace

#0 src/XF.php(187): XF\Error->logError('Push notificati...', false)
#1 src/XF/Service/PushNotification.php(241): 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/Service/Conversation/Notifier.php(130): XF\Service\Conversation\Pusher->push()
#5 src/XF/Service/Conversation/Notifier.php(58): XF\Service\Conversation\Notifier->_sendNotifications('create', Array, Object(XF\Entity\ConversationMessage))
#6 src/XF/Service/Conversation/Creator.php(254): XF\Service\Conversation\Notifier->notifyCreate()
#7 src/XF/Service/Conversation/Creator.php(244): XF\Service\Conversation\Creator->sendNotifications()
#8 src/XF/Service/ValidateAndSavableTrait.php(40): XF\Service\Conversation\Creator->_save()
#9 src/XF/Pub/Controller/Conversation.php(320): XF\Service\Conversation\Creator->save()
#10 src/XF/Mvc/Dispatcher.php(321): XF\Pub\Controller\Conversation->actionAdd(Object(XF\Mvc\ParameterBag))
#11 src/XF/Mvc/Dispatcher.php(244): XF\Mvc\Dispatcher->dispatchClass('XF:Conversation', 'Add', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Conversation), NULL)
#12 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Conversation), NULL)
#13 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#14 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#15 src/XF.php(390): XF\App->run()
#16 index.php(20): XF::runApp('XF\\Pub\\App')
#17 {main}
 
We are getting about a dozen of these 406 Not Acceptable errors every day.

Is this the workaround that will ship with XenForo 2.1.3, @Chris D?

Code:
--- a/src/XF/Service/PushNotification.php
+++ b/src/XF/Service/PushNotification.php
@@ -236,6 +236,7 @@ class PushNotification extends AbstractService
                             }
                             break;

+                        case 416:
                         case 500:
                         case 502:
                         case 503:
 
same here, started yesterday, hundreds of them on a singel 12 hours...
Server error log
  • ErrorException: Push notification failure: {"success":false,"endpoint":{},"message":"Client error: POST https:\/\/db5p.notify.windows.com\/w\/?token=BQYAAADgyNgoWZ8vqzO4iqX3hjDPwB8qFJobhKYN4IS38csUwmnwhaVa7ayghSG4N9mq3yl4HnyP6uOdyDu3K0RvXvx4L6Z%2fA2qGlpcsxtUoPXsDVDGFepVAVjytV12SLAXhrVeOa2VvjlOPick%2fA2iJzllLYxD6G23OP%2fEa%2fjj%2b9l7ltDvTDjeS%2f1b6fhuvd%2fVysiim07%2fUEk8lgUneZISeTwb0mW7kaZaG1XSgiA0avQ9wMSFZPh3pjSaVSYkvRK%2fl%2fc1d8HIdT6uadDxn9EzujgG%2fnQN%2fpUYcMEUwi5SBYUsvay6Q01aZ3lPm1xaR7L6Ehr3Cndv%2fJy0n2k56yjoyJ%2fC6 resulted in a 406 Not Acceptable response","statusCode":406,"reasonPhrase":"Not Acceptable","expired":false,"content":{},"headers":{"Content-Length":["0"],"X-WNS-NOTIFICATIONSTATUS":["appthrottled"],"X-WNS-STATUS":["appthrottled"],"X-WNS-MSG-ID":["7073E986114F21C4"],"X-WNS-DEBUG-TRACE":["DB5PEPF00000444"],"MS-CV":["nNrbePJYGE6CEoe3isG9gA.0"],"Strict-Transport-Security":["max-age=31536000; includeSubDomains"],"Date":["Sat, 08 Jun 2019 11:47:53 GMT"]}}
  • src/XF/Error.php:75
  • Generated by: Dirk Bazuin
  • Jun 8, 2019 at 1:47 PM
Stack trace
#0 src/XF.php(187): XF\Error->logError('Push notificati...', false)
#1 src/XF/Service/PushNotification.php(241): 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(24256, 2969, 'Dirk Bazuin', 'post', 2042391, 'insert', Array)
#6 src/XF/Notifier/AbstractNotifier.php(55): XF\Repository\UserAlert->alert(Object(XFMG\XF\Entity\User), 2969, 'Dirk Bazuin', 'post', 2042391, 'insert', Array)
#7 src/XF/Notifier/Post/AbstractWatch.php(104): XF\Notifier\AbstractNotifier->basicAlert(Object(XFMG\XF\Entity\User), 2969, 'Dirk Bazuin', 'post', 2042391, '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/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(244): 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(44) "/threads/goede-morgen-topic.162262/add-reply"
["referrer"] => string(63) "https://aquaforum.nl/threads/goede-morgen-topic.162262/page-255"
["_GET"] => array(0) {
}
["_POST"] => array(9) {
["message_html"] => string(149) "<p>Middag<br><br>Net toch maar mijn overtollige LEDS te koop gezet.<br>https://aquaforum.nl/threads/te-koop-eheim-classic-led-2-x-12-watt.163775/</p>"
["attachment_hash"] => string(32) "e597c1d72d616ade587db1b9bc39dbc0"
["attachment_hash_combined"] => string(88) "{"type":"post","context":{"thread_id":162262},"hash":"e597c1d72d616ade587db1b9bc39dbc0"}"
["last_date"] => string(10) "1559993624"
["last_known_date"] => string(10) "1559993624"
["_xfToken"] => string(8) "****"
["_xfRequestUri"] => string(43) "/threads/goede-morgen-topic.162262/page-255"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
 
We are getting about a dozen of these 406 Not Acceptable errors every day.

Is this the workaround that will ship with XenForo 2.1.3, @Chris D?

Code:
--- a/src/XF/Service/PushNotification.php
+++ b/src/XF/Service/PushNotification.php
@@ -236,6 +236,7 @@ class PushNotification extends AbstractService
                             }
                             break;

+                        case 416:
                         case 500:
                         case 502:
                         case 503:
Where does this go?
 
Back
Top Bottom