askvortsov1 / flarum-pwa

Progressive Web App support for Flarum
MIT License
34 stars 12 forks source link

500 POST h/pwa/push #3

Closed GameBurrow closed 3 years ago

GameBurrow commented 4 years ago

I keep getting following error as a popup on lower left: image

500
POST https://forum.gogroupvirtual.eu/api/pwa/push

{
  "errors": [
    {
      "status": "500",
      "code": "unknown",
      "detail": "PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'https://am3p.notify.windows.com/w/?token=redacted-token-value-not-sure-if-I-can-share-it' for key 'forum_push_subscriptions_endpoint_unique' in /home/webs/gogroupvirtual.eu/forum/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:127\nStack trace:\n#0 /home/webs/gogroupvirtual.eu/forum/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(127): PDOStatement->execute(NULL)\n#1 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Connection.php(458): Doctrine\\DBAL\\Driver\\PDOStatement->execute()\n#2 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Connection.php(657): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('insert into `fo...', Array)\n#3 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Connection.php(624): Illuminate\\Database\\Connection->runQueryCallback('insert into `fo...', Array, Object(Closure))\n#4 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Connection.php(459): Illuminate\\Database\\Connection->run('insert into `fo...', Array, Object(Closure))\n#5 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Connection.php(411): Illuminate\\Database\\Connection->statement('insert into `fo...', Array)\n#6 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Query/Processors/Processor.php(32): Illuminate\\Database\\Connection->insert('insert into `fo...', Array)\n#7 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Query/Builder.php(2628): Illuminate\\Database\\Query\\Processors\\Processor->processInsertGetId(Object(Illuminate\\Database\\Query\\Builder), 'insert into `fo...', Array, 'id')\n#8 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Eloquent/Builder.php(1338): Illuminate\\Database\\Query\\Builder->insertGetId(Array, 'id')\n#9 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Eloquent/Model.php(823): Illuminate\\Database\\Eloquent\\Builder->__call('insertGetId', Array)\n#10 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Eloquent/Model.php(788): Illuminate\\Database\\Eloquent\\Model->insertAndSetId(Object(Illuminate\\Database\\Eloquent\\Builder), Array)\n#11 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Eloquent/Model.php(651): Illuminate\\Database\\Eloquent\\Model->performInsert(Object(Illuminate\\Database\\Eloquent\\Builder))\n#12 /home/webs/gogroupvirtual.eu/forum/vendor/askvortsov/flarum-pwa/src/Api/Controller/AddPushSubscriptionController.php(78): Illuminate\\Database\\Eloquent\\Model->save()\n#13 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(96): Askvortsov\\FlarumPWA\\Api\\Controller\\AddPushSubscriptionController->data(Object(Laminas\\Diactoros\\ServerRequest), Object(Tobscure\\JsonApi\\Document))\n#14 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Api/Controller/AbstractCreateController.php(22): Flarum\\Api\\Controller\\AbstractSerializeController->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#15 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\\Api\\Controller\\AbstractCreateController->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#16 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php(65): Flarum\\Http\\RouteHandlerFactory->Flarum\\Http\\{closure}(Object(Laminas\\Diactoros\\ServerRequest), Array)\n#17 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\DispatchRoute->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Closure))\n#18 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#19 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\SetLocale->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#20 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(45): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#21 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\CheckCsrfToken->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#22 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(55): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#23 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithHeader->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#24 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#25 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithSession->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#26 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(51): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#27 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\RememberFromCookie->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#28 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#29 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\StartSession->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#30 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#31 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Api\\Middleware\\FakeHttpMethods->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#32 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#33 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\ParseJsonBody->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#34 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#35 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\HandleErrors->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#36 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#37 /home/webs/gogroupvirtual.eu/forum/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\\Stratigility\\MiddlewarePipe->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#38 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\RequestHandler->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#39 /home/webs/gogroupvirtual.eu/forum/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#40 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePathRouter->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#41 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(42): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#42 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Laminas\\Stratigility\\Middleware\\OriginalMessages->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#43 /home/webs/gogroupvirtual.eu/forum/vendor/middlewares/base-path/src/BasePath.php(53): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#44 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePath->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#45 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#46 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\\Stratigility\\MiddlewarePipe->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\EmptyPipelineHandler))\n#47 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\\Stratigility\\MiddlewarePipe->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#48 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Server.php(42): Laminas\\HttpHandlerRunner\\RequestHandlerRunner->run()\n#49 /home/webs/gogroupvirtual.eu/forum/public/index.php(22): Flarum\\Http\\Server->listen()\n#50 {main}\n\nNext Doctrine\\DBAL\\Driver\\PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'https://am3p.notify.windows.com/w/?token=BQYAAAApNteQg4d%2fBhLsY' for key 'forum_push_subscriptions_endpoint_unique' in /home/webs/gogroupvirtual.eu/forum/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:129\nStack trace:\n#0 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Connection.php(458): Doctrine\\DBAL\\Driver\\PDOStatement->execute()\n#1 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Connection.php(657): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('insert into `fo...', Array)\n#2 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Connection.php(624): Illuminate\\Database\\Connection->runQueryCallback('insert into `fo...', Array, Object(Closure))\n#3 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Connection.php(459): Illuminate\\Database\\Connection->run('insert into `fo...', Array, Object(Closure))\n#4 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Connection.php(411): Illuminate\\Database\\Connection->statement('insert into `fo...', Array)\n#5 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Query/Processors/Processor.php(32): Illuminate\\Database\\Connection->insert('insert into `fo...', Array)\n#6 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Query/Builder.php(2628): Illuminate\\Database\\Query\\Processors\\Processor->processInsertGetId(Object(Illuminate\\Database\\Query\\Builder), 'insert into `fo...', Array, 'id')\n#7 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Eloquent/Builder.php(1338): Illuminate\\Database\\Query\\Builder->insertGetId(Array, 'id')\n#8 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Eloquent/Model.php(823): Illuminate\\Database\\Eloquent\\Builder->__call('insertGetId', Array)\n#9 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Eloquent/Model.php(788): Illuminate\\Database\\Eloquent\\Model->insertAndSetId(Object(Illuminate\\Database\\Eloquent\\Builder), Array)\n#10 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Eloquent/Model.php(651): Illuminate\\Database\\Eloquent\\Model->performInsert(Object(Illuminate\\Database\\Eloquent\\Builder))\n#11 /home/webs/gogroupvirtual.eu/forum/vendor/askvortsov/flarum-pwa/src/Api/Controller/AddPushSubscriptionController.php(78): Illuminate\\Database\\Eloquent\\Model->save()\n#12 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(96): Askvortsov\\FlarumPWA\\Api\\Controller\\AddPushSubscriptionController->data(Object(Laminas\\Diactoros\\ServerRequest), Object(Tobscure\\JsonApi\\Document))\n#13 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Api/Controller/AbstractCreateController.php(22): Flarum\\Api\\Controller\\AbstractSerializeController->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#14 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\\Api\\Controller\\AbstractCreateController->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#15 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php(65): Flarum\\Http\\RouteHandlerFactory->Flarum\\Http\\{closure}(Object(Laminas\\Diactoros\\ServerRequest), Array)\n#16 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\DispatchRoute->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Closure))\n#17 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#18 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\SetLocale->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#19 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(45): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#20 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\CheckCsrfToken->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#21 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(55): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#22 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithHeader->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#23 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#24 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithSession->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#25 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(51): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#26 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\RememberFromCookie->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#27 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#28 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\StartSession->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#29 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#30 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Api\\Middleware\\FakeHttpMethods->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#31 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#32 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\ParseJsonBody->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#33 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#34 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\HandleErrors->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#35 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#36 /home/webs/gogroupvirtual.eu/forum/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\\Stratigility\\MiddlewarePipe->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#37 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\RequestHandler->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#38 /home/webs/gogroupvirtual.eu/forum/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#39 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePathRouter->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#40 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(42): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#41 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Laminas\\Stratigility\\Middleware\\OriginalMessages->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#42 /home/webs/gogroupvirtual.eu/forum/vendor/middlewares/base-path/src/BasePath.php(53): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#43 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePath->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#44 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#45 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\\Stratigility\\MiddlewarePipe->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\EmptyPipelineHandler))\n#46 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\\Stratigility\\MiddlewarePipe->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#47 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Server.php(42): Laminas\\HttpHandlerRunner\\RequestHandlerRunner->run()\n#48 /home/webs/gogroupvirtual.eu/forum/public/index.php(22): Flarum\\Http\\Server->listen()\n#49 {main}\n\nNext Illuminate\\Database\\QueryException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'https://am3p.notify.windows.com/w/?token=BQYAAAApNteQg4d%2fBhLsY' for key 'forum_push_subscriptions_endpoint_unique' (SQL: insert into `forum_push_subscriptions` (`user_id`, `endpoint`, `expires_at`, `vapid_public_key`, `keys`) values (1, https://am3p.notify.windows.com/w/token=BQYAAAApNteQg4d%2fBhLsYjMp%2fhMEoGh7tltS9YJAA0LQheV%2fgQSVlRp%2bj2S9gRGVqAThzaxht8Q4mv3xpWH4SvoJ61RFKnYAYBFjKnIUFR6QnqQpABXEH3nUSo7Lgk87Lt%2ftxUhtAQ7RLWJlgQqSZaLRhiM2Cjd%2fFSaSSma14uam7UIyJmEjeF7O9uWaVUhMtnGQ6AK3UTeWWXDtPuq4A%2f0aB1BbhWwqguAUhfsEL28sXAZJTzdHX%2fyBlhiTa3Nhw3sNCilTHurCJMxDGvd7DZGD5DVfeNEVDC2LR0d0deEYle4ssUFKXoTdhnVUw6JmEzWTsiuQZU0pl4T5JXJjYzlGGAid, BKiIbwY0JnvS_L2QGqnFalch8L6aDhUl9KA06RxvcdBgTuyJ48TZunOIXAlUlCfQJHbgaOvJgooXsECBOhZn3u4, {\"p256dh\":\"BGHMLFRs14zQuwUKqMqYN0iwkUxBL7jGFMs-c41odH3osoIjbI5f_p8EAKpgsnBaAoCZQjdbJmoNbAhVg9qfwp4\",\"auth\":\"wmiX4z5XJmLFFVQ6DZCgeA\"}, ?)) in /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Connection.php:664\nStack trace:\n#0 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Connection.php(624): Illuminate\\Database\\Connection->runQueryCallback('insert into `fo...', Array, Object(Closure))\n#1 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Connection.php(459): Illuminate\\Database\\Connection->run('insert into `fo...', Array, Object(Closure))\n#2 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Connection.php(411): Illuminate\\Database\\Connection->statement('insert into `fo...', Array)\n#3 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Query/Processors/Processor.php(32): Illuminate\\Database\\Connection->insert('insert into `fo...', Array)\n#4 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Query/Builder.php(2628): Illuminate\\Database\\Query\\Processors\\Processor->processInsertGetId(Object(Illuminate\\Database\\Query\\Builder), 'insert into `fo...', Array, 'id')\n#5 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Eloquent/Builder.php(1338): Illuminate\\Database\\Query\\Builder->insertGetId(Array, 'id')\n#6 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Eloquent/Model.php(823): Illuminate\\Database\\Eloquent\\Builder->__call('insertGetId', Array)\n#7 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Eloquent/Model.php(788): Illuminate\\Database\\Eloquent\\Model->insertAndSetId(Object(Illuminate\\Database\\Eloquent\\Builder), Array)\n#8 /home/webs/gogroupvirtual.eu/forum/vendor/illuminate/database/Eloquent/Model.php(651): Illuminate\\Database\\Eloquent\\Model->performInsert(Object(Illuminate\\Database\\Eloquent\\Builder))\n#9 /home/webs/gogroupvirtual.eu/forum/vendor/askvortsov/flarum-pwa/src/Api/Controller/AddPushSubscriptionController.php(78): Illuminate\\Database\\Eloquent\\Model->save()\n#10 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(96): Askvortsov\\FlarumPWA\\Api\\Controller\\AddPushSubscriptionController->data(Object(Laminas\\Diactoros\\ServerRequest), Object(Tobscure\\JsonApi\\Document))\n#11 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Api/Controller/AbstractCreateController.php(22): Flarum\\Api\\Controller\\AbstractSerializeController->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#12 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\\Api\\Controller\\AbstractCreateController->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#13 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php(65): Flarum\\Http\\RouteHandlerFactory->Flarum\\Http\\{closure}(Object(Laminas\\Diactoros\\ServerRequest), Array)\n#14 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\DispatchRoute->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Closure))\n#15 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#16 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\SetLocale->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#17 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(45): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#18 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\CheckCsrfToken->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#19 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(55): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#20 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithHeader->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#21 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#22 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithSession->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#23 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(51): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#24 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\RememberFromCookie->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#25 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#26 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\StartSession->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#27 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#28 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Api\\Middleware\\FakeHttpMethods->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#29 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#30 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\ParseJsonBody->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#31 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#32 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\HandleErrors->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#33 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#34 /home/webs/gogroupvirtual.eu/forum/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\\Stratigility\\MiddlewarePipe->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#35 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\RequestHandler->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#36 /home/webs/gogroupvirtual.eu/forum/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#37 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePathRouter->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#38 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(42): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#39 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Laminas\\Stratigility\\Middleware\\OriginalMessages->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#40 /home/webs/gogroupvirtual.eu/forum/vendor/middlewares/base-path/src/BasePath.php(53): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#41 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePath->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#42 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#43 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\\Stratigility\\MiddlewarePipe->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\EmptyPipelineHandler))\n#44 /home/webs/gogroupvirtual.eu/forum/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\\Stratigility\\MiddlewarePipe->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#45 /home/webs/gogroupvirtual.eu/forum/vendor/flarum/core/src/Http/Server.php(42): Laminas\\HttpHandlerRunner\\RequestHandlerRunner->run()\n#46 /home/webs/gogroupvirtual.eu/forum/public/index.php(22): Flarum\\Http\\Server->listen()\n#47 {main}"
    }
  ]
}
askvortsov1 commented 3 years ago

This should be fixed now, thanks!