Page MenuHomeDevCentral

Test Aphlict notifications trigger a 500 error
Closed, ResolvedPublic

Description

Example of failure payload:

{"storyID":"7877","storyType":"PhabricatorNotificationTestFeedStory","storyData":{"title":"This is a test notification, sent at Mon, Jul 11, 00:23."},"storyAuthorPHID":"PHID-APPS-PhabricatorNotificationsApplication","storyText":"This is a test notification, sent at Mon, Jul 11, 00:23.","epoch":"1468196609"}

Stacktrace

[2016-07-11 02:31:50] production.ERROR: exception 'ErrorException' with message 'Undefined index: objectPHID' in /var/wwwroot/default/app/Phabricator/Phabricat
orStory.php:111
Stack trace:
#0 /var/wwwroot/default/app/Phabricator/PhabricatorStory.php(111): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, 'Undefined index...', '/var
/wwwroot/de...', 111, Array)
#1 /var/wwwroot/default/app/Notifications/PhabricatorNotification.php(37): Nasqueron\Notifications\Phabricator\PhabricatorStory->getObjectType()
#2 /var/wwwroot/default/app/Jobs/FirePhabricatorNotification.php(52): Nasqueron\Notifications\Notifications\PhabricatorNotification->__construct('Nasqueron', O
bject(Nasqueron\Notifications\Phabricator\PhabricatorStory))
#3 /var/wwwroot/default/app/Jobs/FirePhabricatorNotification.php(38): Nasqueron\Notifications\Jobs\FirePhabricatorNotification->createNotification()
#4 /var/wwwroot/default/app/Listeners/NotificationListener.php(48): Nasqueron\Notifications\Jobs\FirePhabricatorNotification->handle()
#5 [internal function]: Nasqueron\Notifications\Listeners\NotificationListener->onPhabricatorPayload(Object(Nasqueron\Notifications\Events\PhabricatorPayloadEv
ent))