500 Internal Server Error
POST https://talkie.vn/api/discussions
{
"errors": [
{
"status": "500",
"code": "unknown",
"detail": "Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function getStatusCode() on null in /var/www/vhosts/talkie.vn/httpdocs/vendor/askvortsov/flarum-pwa/src/Listener/SendPushNotifications.php:113\nStack trace:\n#0 [internal function]: Askvortsov\FlarumPWA\Listener\SendPushNotifications->handle(Object(Flarum\Notification\Event\Sending))\n#1 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/events/Dispatcher.php(379): call_user_func_array(Array, Array)\n#2 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/events/Dispatcher.php(209): Illuminate\Events\Dispatcher->Illuminate\Events\{closure}('Flarum\\Notifica...', Array)\n#3 /var/www/vhosts/talkie.vn/httpdocs/vendor/flarum/core/src/helpers.php(93): Illuminate\Events\Dispatcher->dispatch('Flarum\\Notifica...', Array, false)\n#4 /var/www/vhosts/talkie.vn/httpdocs/vendor/flarum/core/src/Notification/Job/SendNotificationsJob.php(38): event(Object(Flarum\Notification\Event\Sending))\n#5 [internal function]: Flarum\Notification\Job\SendNotificationsJob->handle()\n#6 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/container/BoundMethod.php(29): call_user_func_array(Array, Array)\n#7 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/container/BoundMethod.php(87): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()\n#8 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/container/BoundMethod.php(31): Illuminate\Container\BoundMethod::callBoundMethod(Object(Flarum\Foundation\Application), Array, Object(Closure))\n#9 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/container/Container.php(572): Illuminate\Container\BoundMethod::call(Object(Flarum\Foundation\Application), Array, Array, NULL)\n#10 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/bus/Dispatcher.php(94): Illuminate\Container\Container->call(Array)\n#11 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/pipeline/Pipeline.php(128): Illuminate\Bus\Dispatcher->Illuminate\Bus\{closure}(Object(Flarum\Notification\Job\SendNotificationsJob))\n#12 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/pipeline/Pipeline.php(104): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Flarum\Notification\Job\SendNotificationsJob))\n#13 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/bus/Dispatcher.php(98): Illuminate\Pipeline\Pipeline->then(Object(Closure))\n#14 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/queue/CallQueuedHandler.php(49): Illuminate\Bus\Dispatcher->dispatchNow(Object(Flarum\Notification\Job\SendNotificationsJob), false)\n#15 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/queue/Jobs/Job.php(83): Illuminate\Queue\CallQueuedHandler->call(Object(Illuminate\Queue\Jobs\SyncJob), Array)\n#16 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/queue/SyncQueue.php(42): Illuminate\Queue\Jobs\Job->fire()\n#17 /var/www/vhosts/talkie.vn/httpdocs/vendor/flarum/core/src/Notification/NotificationSyncer.php(106): Illuminate\Queue\SyncQueue->push(Object(Flarum\Notification\Job\SendNotificationsJob))\n#18 /var/www/vhosts/talkie.vn/httpdocs/vendor/fof/follow-tags/src/Jobs/SendNotificationWhenDiscussionIsStarted.php(66): Flarum\Notification\NotificationSyncer->sync(Object(FoF\FollowTags\Notifications\NewDiscussionBlueprint), Array)\n#19 [internal function]: FoF\FollowTags\Jobs\SendNotificationWhenDiscussionIsStarted->handle(Object(Flarum\Notification\NotificationSyncer))\n#20 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/container/BoundMethod.php(29): call_user_func_array(Array, Array)\n#21 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/container/BoundMethod.php(87): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()\n#22 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/container/BoundMethod.php(31): Illuminate\Container\BoundMethod::callBoundMethod(Object(Flarum\Foundation\Application), Array, Object(Closure))\n#23 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/container/Container.php(572): Illuminate\Container\BoundMethod::call(Object(Flarum\Foundation\Application), Array, Array, NULL)\n#24 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/bus/Dispatcher.php(94): Illuminate\Container\Container->call(Array)\n#25 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/pipeline/Pipeline.php(128): Illuminate\Bus\Dispatcher->Illuminate\Bus\{closure}(Object(FoF\FollowTags\Jobs\SendNotificationWhenDiscussionIsStarted))\n#26 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/pipeline/Pipeline.php(104): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(FoF\FollowTags\Jobs\SendNotificationWhenDiscussionIsStarted))\n#27 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/bus/Dispatcher.php(98): Illuminate\Pipeline\Pipeline->then(Object(Closure))\n#28 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/queue/CallQueuedHandler.php(49): Illuminate\Bus\Dispatcher->dispatchNow(Object(FoF\FollowTags\Jobs\SendNotificationWhenDiscussionIsStarted), false)\n#29 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/queue/Jobs/Job.php(83): Illuminate\Queue\CallQueuedHandler->call(Object(Illuminate\Queue\Jobs\SyncJob), Array)\n#30 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/queue/SyncQueue.php(42): Illuminate\Queue\Jobs\Job->fire()\n#31 /var/www/vhosts/talkie.vn/httpdocs/vendor/fof/follow-tags/src/Listeners/QueueNotificationJobs.php(34): Illuminate\Queue\SyncQueue->push(Object(FoF\FollowTags\Jobs\SendNotificationWhenDiscussionIsStarted))\n#32 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/events/Dispatcher.php(360): FoF\FollowTags\Listeners\QueueNotificationJobs->whenDiscussionStarted(Object(Flarum\Discussion\Event\Started))\n#33 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/events/Dispatcher.php(209): Illuminate\Events\Dispatcher->Illuminate\Events\{closure}('Flarum\\Discussi...', Array)\n#34 /var/www/vhosts/talkie.vn/httpdocs/vendor/flarum/core/src/Foundation/DispatchEventsTrait.php(33): Illuminate\Events\Dispatcher->dispatch('Flarum\\Discussi...')\n#35 /var/www/vhosts/talkie.vn/httpdocs/vendor/flarum/core/src/Discussion/Command/StartDiscussionHandler.php(99): Flarum\Discussion\Command\StartDiscussionHandler->dispatchEventsFor(Object(Flarum\Discussion\Discussion), Object(Flarum\User\User))\n#36 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/bus/Dispatcher.php(90): Flarum\Discussion\Command\StartDiscussionHandler->handle(Object(Flarum\Discussion\Command\StartDiscussion))\n#37 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/pipeline/Pipeline.php(128): Illuminate\Bus\Dispatcher->Illuminate\Bus\{closure}(Object(Flarum\Discussion\Command\StartDiscussion))\n#38 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/pipeline/Pipeline.php(104): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Flarum\Discussion\Command\StartDiscussion))\n#39 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/bus/Dispatcher.php(98): Illuminate\Pipeline\Pipeline->then(Object(Closure))\n#40 /var/www/vhosts/talkie.vn/httpdocs/vendor/illuminate/bus/Dispatcher.php(76): Illuminate\Bus\Dispatcher->dispatchNow(Object(Flarum\Discussion\Command\StartDiscussion))\n#41 /var/www/vhosts/talkie.vn/httpdocs/vendor/flarum/core/src/Api/Controller/CreateDiscussionController.php(72): Illuminate\Bus\Dispatcher->dispatch(Object(Flarum\Discussion\Command\StartDiscussion))\n#42 /var/www/vhosts/talkie.vn/httpdocs/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(96): Flarum\Api\Controller\CreateDiscussionController->data(Object(Laminas\Diactoros\ServerRequest), Object(Tobscure\JsonApi\Document))\n#43 /var/www/vhosts/talkie.vn/httpdocs/vendor/flarum/core/src/Api/Controller/AbstractCreateController.php(22): Flarum\Api\Controller\AbstractSerializeController->handle(Object(Laminas\Diactoros\ServerRequest))\n#44 /var/www/vhosts/talkie.vn/httpdocs/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\Api\Controller\AbstractCreateController->handle(Object(Laminas\Diactoros\ServerRequest))\n#45 /var/www/vhosts/talkie.vn/httpdocs/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php(65): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}(Object(Laminas\Diactoros\ServerRequest), Array)\n#46 /var/www/vhosts/talkie.vn/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\DispatchRoute->process(Object(Laminas\Diactoros\ServerRequest), Object(Closure))\n#47 /var/www/vhosts/talkie.vn/httpdocs/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))\n#48 /var/www/vhosts/talkie.vn/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\SetLocale->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))\n#49 /var/www/vhosts/talkie.vn/httpdocs/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(45): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))\n#50 /var/www/vhosts/talkie.vn/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\CheckCsrfToken->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))\n#51 /var/www/vhosts/talkie.vn/httpdocs/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(55): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))\n#52 /var/www/vhosts/talkie.vn/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\AuthenticateWithHeader->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))\n#53 /var/www/vhosts/talkie.vn/httpdocs/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))\n#54 /var/www/vhosts/talkie.vn/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\AuthenticateWithSession->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))\n#55 /var/www/vhosts/talkie.vn/httpdocs/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(51): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))\n#56 /var/www/vhosts/talkie.vn/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\RememberFromCookie->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))\n#57 /var/www/vhosts/talkie.vn/httpdocs/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))\n#58 /var/www/vhosts/talkie.vn/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\StartSession->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))\n#59 /var/www/vhosts/talkie.vn/httpdocs/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))\n#60 /var/www/vhosts/talkie.vn/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Api\Middleware\FakeHttpMethods->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))\n#61 /var/www/vhosts/talkie.vn/httpdocs/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))\n#62 /var/www/vhosts/talkie.vn/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ParseJsonBody->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))\n#63 /var/www/vhosts/talkie.vn/httpdocs/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))\n#64 /var/www/vhosts/talkie.vn/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\HandleErrors->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))\n#65 /var/www/vhosts/talkie.vn/httpdocs/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))\n#66 /var/www/vhosts/talkie.vn/httpdocs/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))\n#67 /var/www/vhosts/talkie.vn/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\RequestHandler->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))\n#68 /var/www/vhosts/talkie.vn/httpdocs/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))\n#69 /var/www/vhosts/talkie.vn/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\BasePathRouter->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))\n#70 /var/www/vhosts/talkie.vn/httpdocs/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(42): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))\n#71 /var/www/vhosts/talkie.vn/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Laminas\Stratigility\Middleware\OriginalMessages->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))\n#72 /var/www/vhosts/talkie.vn/httpdocs/vendor/middlewares/base-path/src/BasePath.php(53): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))\n#73 /var/www/vhosts/talkie.vn/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\BasePath->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))\n#74 /var/www/vhosts/talkie.vn/httpdocs/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))\n#75 /var/www/vhosts/talkie.vn/httpdocs/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\Stratigility\MiddlewarePipe->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\EmptyPipelineHandler))\n#76 /var/www/vhosts/talkie.vn/httpdocs/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\Stratigility\MiddlewarePipe->handle(Object(Laminas\Diactoros\ServerRequest))\n#77 /var/www/vhosts/talkie.vn/httpdocs/vendor/flarum/core/src/Http/Server.php(42): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()\n#78 /var/www/vhosts/talkie.vn/httpdocs/public/index.php(26): Flarum\Http\Server->listen()\n#79 {main}"
}
]
}