Exceptions
Exception
App\Exceptions\ ForbiddenApiException
in
apps/billing/src/Controller/DefaultController.php
(line 62)
$message = (string)($token ?? $request->query->get('token') ?? '');try {$data = $encoder->decryptData($dentalProPrivateKey, $message);} catch (EncryptionException) {throw new ForbiddenApiException('Невалидный токен');}$user = $data['user'] ?? [];$licenseKey = $data['key'] ?? null;$timestamp = $data['timestamp'] ?? 0;
in
vendor/symfony/http-kernel/HttpKernel.php
->
auth
(line 183)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response, $event);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 76)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);$response = null;try {return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {if ($e instanceof \Error && !$this->handleAllThrowables) {throw $e;}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 182)
$this->boot();++$this->requestStackSize;$this->resetServices = true;try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
) {}public function run(): int{$response = $this->kernel->handle($this->request);if (Kernel::VERSION_ID >= 60400) {$response->send(false);if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in
vendor/autoload_runtime.php
->
run
(line 29)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
<?phpuse App\Kernel;require_once dirname(__DIR__, 3) . '/vendor/autoload_runtime.php';return static function (array $context) {return new Kernel($context['APP_ENV'], (bool)$context['APP_DEBUG'], 'billing');};
Logs
| Level | Message |
|---|---|
| info 17:47:13 |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "latest"
},
"request_uri": "https://nedanovbilling.lt.dental-pro.online/_profiler/latest?type=request&url=https%3A%2F%2Fnedanovbilling.lt.dental-pro.online%2Fapi%2Fsubscriptions",
"method": "GET"
}
|
| debug 17:47:13 |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener::configure"
}
|
| debug 17:47:13 |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener::onKernelRequest"
}
|
| debug 17:47:13 |
Notified event "kernel.request" to listener "Nelmio\CorsBundle\EventListener\CorsListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Nelmio\\CorsBundle\\EventListener\\CorsListener::onKernelRequest"
}
|
| debug 17:47:13 |
Notified event "kernel.request" to listener "Symfony\Bridge\Doctrine\Middleware\IdleConnection\Listener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Bridge\\Doctrine\\Middleware\\IdleConnection\\Listener::onKernelRequest"
}
|
| debug 17:47:13 |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\SessionListener::onKernelRequest"
}
|
| debug 17:47:13 |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::setDefaultLocale". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::setDefaultLocale"
}
|
| debug 17:47:13 |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\RouterListener::onKernelRequest"
}
|
| debug 17:47:13 |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::onKernelRequest"
}
|
| debug 17:47:13 |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleAwareListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleAwareListener::onKernelRequest"
}
|
| debug 17:47:13 |
Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::configureLogoutUrlGenerator". {
"event": "kernel.request",
"listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::configureLogoutUrlGenerator"
}
|
| debug 17:47:13 |
Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::onKernelRequest"
}
|
| debug 17:47:13 |
Notified event "kernel.request" to listener "Sentry\SentryBundle\EventListener\RequestListener::handleKernelRequestEvent". {
"event": "kernel.request",
"listener": "Sentry\\SentryBundle\\EventListener\\RequestListener::handleKernelRequestEvent"
}
|
| debug 17:47:13 |
Notified event "kernel.request" to listener "Sentry\SentryBundle\EventListener\TracingRequestListener::handleKernelRequestEvent". {
"event": "kernel.request",
"listener": "Sentry\\SentryBundle\\EventListener\\TracingRequestListener::handleKernelRequestEvent"
}
|
| debug 17:47:13 |
Notified event "kernel.request" to listener "Sentry\SentryBundle\EventListener\SubRequestListener::handleKernelRequestEvent". {
"event": "kernel.request",
"listener": "Sentry\\SentryBundle\\EventListener\\SubRequestListener::handleKernelRequestEvent"
}
|
| debug 17:47:13 |
Notified event "kernel.request" to listener "Sentry\SentryBundle\EventListener\TracingSubRequestListener::handleKernelRequestEvent". {
"event": "kernel.request",
"listener": "Sentry\\SentryBundle\\EventListener\\TracingSubRequestListener::handleKernelRequestEvent"
}
|
| debug 17:47:13 |
Notified event "kernel.request" to listener "Sentry\SentryBundle\EventListener\LoginListener::handleKernelRequestEvent". {
"event": "kernel.request",
"listener": "Sentry\\SentryBundle\\EventListener\\LoginListener::handleKernelRequestEvent"
}
|
| debug 17:47:13 |
Notified event "kernel.request" to listener "App\EventListener\RequestListener::onKernelRequest". {
"event": "kernel.request",
"listener": "App\\EventListener\\RequestListener::onKernelRequest"
}
|
| debug 17:47:13 |
Notified event "kernel.controller" to listener "Sentry\SentryBundle\EventListener\RequestListener::handleKernelControllerEvent". {
"event": "kernel.controller",
"listener": "Sentry\\SentryBundle\\EventListener\\RequestListener::handleKernelControllerEvent"
}
|
| debug 17:47:13 |
Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController". {
"event": "kernel.controller",
"listener": "Symfony\\Bundle\\FrameworkBundle\\DataCollector\\RouterDataCollector::onKernelController"
}
|
| debug 17:47:13 |
Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController". {
"event": "kernel.controller",
"listener": "Symfony\\Component\\HttpKernel\\DataCollector\\RequestDataCollector::onKernelController"
}
|
| debug 17:47:13 |
Notified event "kernel.controller_arguments" to listener "Symfony\Component\Security\Http\EventListener\IsCsrfTokenValidAttributeListener::onKernelControllerArguments". {
"event": "kernel.controller_arguments",
"listener": "Symfony\\Component\\Security\\Http\\EventListener\\IsCsrfTokenValidAttributeListener::onKernelControllerArguments"
}
|
| debug 17:47:13 |
Notified event "kernel.controller_arguments" to listener "Symfony\Component\Security\Http\EventListener\IsGrantedAttributeListener::onKernelControllerArguments". {
"event": "kernel.controller_arguments",
"listener": "Symfony\\Component\\Security\\Http\\EventListener\\IsGrantedAttributeListener::onKernelControllerArguments"
}
|
| debug 17:47:13 |
Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\CacheAttributeListener::onKernelControllerArguments". {
"event": "kernel.controller_arguments",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\CacheAttributeListener::onKernelControllerArguments"
}
|
| debug 17:47:13 |
Notified event "kernel.controller_arguments" to listener "Container9WCR4sR\RequestPayloadValueResolverGhost01ca9cc::onKernelControllerArguments". {
"event": "kernel.controller_arguments",
"listener": "Container9WCR4sR\\RequestPayloadValueResolverGhost01ca9cc::onKernelControllerArguments"
}
|
| debug 17:47:13 |
Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\ErrorListener::onControllerArguments". {
"event": "kernel.controller_arguments",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\ErrorListener::onControllerArguments"
}
|
Stack Trace
|
ForbiddenApiException
|
|---|
App\Exceptions\ForbiddenApiException:
Невалидный токен
at apps/billing/src/Controller/DefaultController.php:62
at Billing\Controller\DefaultController->auth()
(vendor/symfony/http-kernel/HttpKernel.php:183)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:182)
at Symfony\Component\HttpKernel\Kernel->handle()
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:29)
at require_once('/var/www/html/vendor/autoload_runtime.php')
(apps/billing/public/index.php:5)
|