Exceptions
Exceptions 3
Symfony\Component\HttpKernel\Exception\ HttpException
Show exception properties
Symfony\Component\HttpKernel\Exception\HttpException {#3084 -statusCode: 401 -headers: [] }
private function throwUnauthorizedException(AuthenticationException $authException): never{$this->logger?->notice(\sprintf('No Authentication entry point configured, returning a %s HTTP response. Configure "entry_point" on the firewall "%s" if you want to modify the response.', Response::HTTP_UNAUTHORIZED, $this->firewallName));throw new HttpException(Response::HTTP_UNAUTHORIZED, $authException->getMessage(), $authException, [], $authException->getCode());}}
in
vendor/symfony/security-http/Firewall/ExceptionListener.php
->
throwUnauthorizedException
(line 179)
}private function startAuthentication(Request $request, AuthenticationException $authException): Response{if (null === $this->authenticationEntryPoint) {$this->throwUnauthorizedException($authException);}$this->logger?->debug('Calling Authentication entry point.', ['entry_point' => $this->authenticationEntryPoint]);if (!$this->stateless) {
in
vendor/symfony/security-http/Firewall/ExceptionListener.php
->
startAuthentication
(line 138)
$insufficientAuthenticationException = new InsufficientAuthenticationException('Full authentication is required to access this resource.', 0, $exception);if (null !== $token) {$insufficientAuthenticationException->setToken($token);}$event->setResponse($this->startAuthentication($event->getRequest(), $insufficientAuthenticationException));} catch (\Exception $e) {$event->setThrowable($e);}return;
in
vendor/symfony/security-http/Firewall/ExceptionListener.php
->
handleAccessDeniedException
(line 93)
return;}if ($exception instanceof AccessDeniedException) {$this->handleAccessDeniedException($event, $exception);return;}if ($exception instanceof LazyResponseException) {
in
vendor/symfony/event-dispatcher/Debug/WrappedListener.php
->
onKernelException
(line 115)
$this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener);$e = $this->stopwatch->start($this->name, 'event_listener');try {($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);} finally {if ($e->isStarted()) {$e->stop();}}
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
__invoke
(line 206)
foreach ($listeners as $listener) {if ($stoppable && $event->isPropagationStopped()) {break;}$listener($event, $eventName, $this);}}/*** Sorts the internal list of listeners for the given event by priority.
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
callListeners
(line 56)
} else {$listeners = $this->getListeners($eventName);}if ($listeners) {$this->callListeners($listeners, $eventName, $event);}return $event;}
in
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
->
dispatch
(line 126)
try {$this->beforeDispatch($eventName, $event);try {$e = $this->stopwatch->start($eventName, 'section');try {$this->dispatcher->dispatch($event, $eventName);} finally {if ($e->isStarted()) {$e->stop();}}
in
vendor/symfony/http-kernel/HttpKernel.php
->
dispatch
(line 241)
* Handles a throwable by trying to convert it to a Response.*/private function handleThrowable(\Throwable $e, Request $request, int $type): Response{$event = new ExceptionEvent($this, $request, $type, $e, isKernelTerminating: $this->terminating);$this->dispatcher->dispatch($event, KernelEvents::EXCEPTION);// a listener might have replaced the exception$e = $event->getThrowable();if (!$event->hasResponse()) {
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleThrowable
(line 91)
$this->finishRequest($request, $type);throw $e;}return $response = $this->handleThrowable($e, $request, $type);} finally {$this->requestStack->pop();if ($response instanceof StreamedResponse && $callback = $response->getCallback()) {$requestStack = $this->requestStack;
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 193)
if (!$this->handlingHttpCache) {$this->resetServices = true;}try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
in
vendor/runtime/frankenphp-symfony/src/Runner.php
->
handle
(line 38)
$handler = function () use ($server, &$sfRequest, &$sfResponse): void {// Merge the environment variables coming from DotEnv with the ones tied to the current request$_SERVER += $server;$sfRequest = Request::createFromGlobals();$sfResponse = $this->kernel->handle($sfRequest);$sfResponse->send();};$loops = 0;
Runner->{closure:Runtime\FrankenPhpSymfony\Runner::run():33}()
in
vendor/runtime/frankenphp-symfony/src/Runner.php
frankenphp_handle_request
(line 45)
$sfResponse->send();};$loops = 0;do {$ret = \frankenphp_handle_request($handler);if ($this->kernel instanceof TerminableInterface && $sfRequest && $sfResponse) {$this->kernel->terminate($sfRequest, $sfResponse);}
in
vendor/autoload_runtime.php
->
run
(line 32)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
declare(strict_types=1);use App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) {return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};
Symfony\Component\Security\Core\Exception\ InsufficientAuthenticationException
$token = $this->tokenStorage->getToken();if (!$this->authenticationTrustResolver->isFullFledged($token)) {$this->logger?->debug('Access denied, the user is not fully authenticated; redirecting to authentication entry point.', ['exception' => $exception]);try {$insufficientAuthenticationException = new InsufficientAuthenticationException('Full authentication is required to access this resource.', 0, $exception);if (null !== $token) {$insufficientAuthenticationException->setToken($token);}$event->setResponse($this->startAuthentication($event->getRequest(), $insufficientAuthenticationException));
in
vendor/symfony/security-http/Firewall/ExceptionListener.php
->
handleAccessDeniedException
(line 93)
return;}if ($exception instanceof AccessDeniedException) {$this->handleAccessDeniedException($event, $exception);return;}if ($exception instanceof LazyResponseException) {
in
vendor/symfony/event-dispatcher/Debug/WrappedListener.php
->
onKernelException
(line 115)
$this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener);$e = $this->stopwatch->start($this->name, 'event_listener');try {($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);} finally {if ($e->isStarted()) {$e->stop();}}
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
__invoke
(line 206)
foreach ($listeners as $listener) {if ($stoppable && $event->isPropagationStopped()) {break;}$listener($event, $eventName, $this);}}/*** Sorts the internal list of listeners for the given event by priority.
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
callListeners
(line 56)
} else {$listeners = $this->getListeners($eventName);}if ($listeners) {$this->callListeners($listeners, $eventName, $event);}return $event;}
in
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
->
dispatch
(line 126)
try {$this->beforeDispatch($eventName, $event);try {$e = $this->stopwatch->start($eventName, 'section');try {$this->dispatcher->dispatch($event, $eventName);} finally {if ($e->isStarted()) {$e->stop();}}
in
vendor/symfony/http-kernel/HttpKernel.php
->
dispatch
(line 241)
* Handles a throwable by trying to convert it to a Response.*/private function handleThrowable(\Throwable $e, Request $request, int $type): Response{$event = new ExceptionEvent($this, $request, $type, $e, isKernelTerminating: $this->terminating);$this->dispatcher->dispatch($event, KernelEvents::EXCEPTION);// a listener might have replaced the exception$e = $event->getThrowable();if (!$event->hasResponse()) {
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleThrowable
(line 91)
$this->finishRequest($request, $type);throw $e;}return $response = $this->handleThrowable($e, $request, $type);} finally {$this->requestStack->pop();if ($response instanceof StreamedResponse && $callback = $response->getCallback()) {$requestStack = $this->requestStack;
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 193)
if (!$this->handlingHttpCache) {$this->resetServices = true;}try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
in
vendor/runtime/frankenphp-symfony/src/Runner.php
->
handle
(line 38)
$handler = function () use ($server, &$sfRequest, &$sfResponse): void {// Merge the environment variables coming from DotEnv with the ones tied to the current request$_SERVER += $server;$sfRequest = Request::createFromGlobals();$sfResponse = $this->kernel->handle($sfRequest);$sfResponse->send();};$loops = 0;
Runner->{closure:Runtime\FrankenPhpSymfony\Runner::run():33}()
in
vendor/runtime/frankenphp-symfony/src/Runner.php
frankenphp_handle_request
(line 45)
$sfResponse->send();};$loops = 0;do {$ret = \frankenphp_handle_request($handler);if ($this->kernel instanceof TerminableInterface && $sfRequest && $sfResponse) {$this->kernel->terminate($sfRequest, $sfResponse);}
in
vendor/autoload_runtime.php
->
run
(line 32)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
declare(strict_types=1);use App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) {return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};
Symfony\Component\Security\Core\Exception\ AccessDeniedException
$token = $this->tokenStorage->getToken() ?? new NullToken();$accessDecision = new AccessDecision();if (!$accessDecision->isGranted = $this->accessDecisionManager->decide($token, $attributes, $request, $accessDecision, true)) {$e = new AccessDeniedException($accessDecision->getMessage());$e->setAttributes($attributes);$e->setSubject($request);$e->setAccessDecision($accessDecision);throw $e;
in
vendor/symfony/security-bundle/Debug/WrappedLazyListener.php
->
authenticate
(line 46)
public function authenticate(RequestEvent $event): void{$startTime = microtime(true);try {$this->listener->authenticate($event);} catch (LazyResponseException $e) {$this->response = $e->getResponse();throw $e;} finally {
in
vendor/symfony/security-bundle/Debug/TraceableFirewallListener.php
->
authenticate
(line 94)
foreach ($requestListeners as $listener) {if (!$listener instanceof FirewallListenerInterface) {$listener($event);} elseif (false !== $listener->supports($event->getRequest())) {$listener->authenticate($event);}if ($event->hasResponse()) {break;}
in
vendor/symfony/security-http/Firewall.php
->
callListeners
(line 93)
if (null !== $logoutListener) {yield $logoutListener;}};$this->callListeners($event, $authenticationListeners());}/*** @return void*/
in
vendor/symfony/event-dispatcher/Debug/WrappedListener.php
->
onKernelRequest
(line 115)
$this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener);$e = $this->stopwatch->start($this->name, 'event_listener');try {($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);} finally {if ($e->isStarted()) {$e->stop();}}
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
__invoke
(line 206)
foreach ($listeners as $listener) {if ($stoppable && $event->isPropagationStopped()) {break;}$listener($event, $eventName, $this);}}/*** Sorts the internal list of listeners for the given event by priority.
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
callListeners
(line 56)
} else {$listeners = $this->getListeners($eventName);}if ($listeners) {$this->callListeners($listeners, $eventName, $event);}return $event;}
in
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
->
dispatch
(line 126)
try {$this->beforeDispatch($eventName, $event);try {$e = $this->stopwatch->start($eventName, 'section');try {$this->dispatcher->dispatch($event, $eventName);} finally {if ($e->isStarted()) {$e->stop();}}
in
vendor/symfony/http-kernel/HttpKernel.php
->
dispatch
(line 159)
*/private function handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response{// request$event = new RequestEvent($this, $request, $type);$this->dispatcher->dispatch($event, KernelEvents::REQUEST);if ($event->hasResponse()) {return $this->filterResponse($event->getResponse(), $request, $type);}
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 193)
if (!$this->handlingHttpCache) {$this->resetServices = true;}try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
in
vendor/runtime/frankenphp-symfony/src/Runner.php
->
handle
(line 38)
$handler = function () use ($server, &$sfRequest, &$sfResponse): void {// Merge the environment variables coming from DotEnv with the ones tied to the current request$_SERVER += $server;$sfRequest = Request::createFromGlobals();$sfResponse = $this->kernel->handle($sfRequest);$sfResponse->send();};$loops = 0;
Runner->{closure:Runtime\FrankenPhpSymfony\Runner::run():33}()
in
vendor/runtime/frankenphp-symfony/src/Runner.php
frankenphp_handle_request
(line 45)
$sfResponse->send();};$loops = 0;do {$ret = \frankenphp_handle_request($handler);if ($this->kernel instanceof TerminableInterface && $sfRequest && $sfResponse) {$this->kernel->terminate($sfRequest, $sfResponse);}
in
vendor/autoload_runtime.php
->
run
(line 32)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
declare(strict_types=1);use App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) {return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 11:45:24 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "27b5da"
},
"request_uri": "https://api.staging.innerorbit.com/_profiler/27b5da",
"method": "GET"
}
|
Stack Traces 3
|
[3/3]
HttpException
|
|---|
Symfony\Component\HttpKernel\Exception\HttpException:
Full authentication is required to access this resource.
at vendor/symfony/security-http/Firewall/ExceptionListener.php:216
at Symfony\Component\Security\Http\Firewall\ExceptionListener->throwUnauthorizedException(object(InsufficientAuthenticationException))
(vendor/symfony/security-http/Firewall/ExceptionListener.php:179)
at Symfony\Component\Security\Http\Firewall\ExceptionListener->startAuthentication(object(Request), object(InsufficientAuthenticationException))
(vendor/symfony/security-http/Firewall/ExceptionListener.php:138)
at Symfony\Component\Security\Http\Firewall\ExceptionListener->handleAccessDeniedException(object(ExceptionEvent), object(AccessDeniedException))
(vendor/symfony/security-http/Firewall/ExceptionListener.php:93)
at Symfony\Component\Security\Http\Firewall\ExceptionListener->onKernelException(object(ExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
(vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(ExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
(vendor/symfony/event-dispatcher/EventDispatcher.php:206)
at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.exception', object(ExceptionEvent))
(vendor/symfony/event-dispatcher/EventDispatcher.php:56)
at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
(vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:126)
at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
(vendor/symfony/http-kernel/HttpKernel.php:241)
at Symfony\Component\HttpKernel\HttpKernel->handleThrowable(object(AccessDeniedException), object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:91)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:193)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(vendor/runtime/frankenphp-symfony/src/Runner.php:38)
at Runtime\FrankenPhpSymfony\Runner->{closure:Runtime\FrankenPhpSymfony\Runner::run():33}()
at frankenphp_handle_request(object(Closure))
(vendor/runtime/frankenphp-symfony/src/Runner.php:45)
at Runtime\FrankenPhpSymfony\Runner->run()
(vendor/autoload_runtime.php:32)
at require_once('/app/vendor/autoload_runtime.php')
(public/index.php:7)
|
|
[2/3]
InsufficientAuthenticationException
|
|---|
Symfony\Component\Security\Core\Exception\InsufficientAuthenticationException:
Full authentication is required to access this resource.
at vendor/symfony/security-http/Firewall/ExceptionListener.php:133
at Symfony\Component\Security\Http\Firewall\ExceptionListener->handleAccessDeniedException(object(ExceptionEvent), object(AccessDeniedException))
(vendor/symfony/security-http/Firewall/ExceptionListener.php:93)
at Symfony\Component\Security\Http\Firewall\ExceptionListener->onKernelException(object(ExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
(vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(ExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
(vendor/symfony/event-dispatcher/EventDispatcher.php:206)
at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.exception', object(ExceptionEvent))
(vendor/symfony/event-dispatcher/EventDispatcher.php:56)
at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
(vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:126)
at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
(vendor/symfony/http-kernel/HttpKernel.php:241)
at Symfony\Component\HttpKernel\HttpKernel->handleThrowable(object(AccessDeniedException), object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:91)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:193)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(vendor/runtime/frankenphp-symfony/src/Runner.php:38)
at Runtime\FrankenPhpSymfony\Runner->{closure:Runtime\FrankenPhpSymfony\Runner::run():33}()
at frankenphp_handle_request(object(Closure))
(vendor/runtime/frankenphp-symfony/src/Runner.php:45)
at Runtime\FrankenPhpSymfony\Runner->run()
(vendor/autoload_runtime.php:32)
at require_once('/app/vendor/autoload_runtime.php')
(public/index.php:7)
|
|
[1/3]
AccessDeniedException
|
|---|
Symfony\Component\Security\Core\Exception\AccessDeniedException:
Access Denied. The user is not appropriately authenticated.
at vendor/symfony/security-http/Firewall/AccessListener.php:79
at Symfony\Component\Security\Http\Firewall\AccessListener->authenticate(object(RequestEvent))
(vendor/symfony/security-bundle/Debug/WrappedLazyListener.php:46)
at Symfony\Bundle\SecurityBundle\Debug\WrappedLazyListener->authenticate(object(RequestEvent))
(vendor/symfony/security-bundle/Debug/TraceableFirewallListener.php:94)
at Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener->callListeners(object(RequestEvent), object(Generator))
(vendor/symfony/security-http/Firewall.php:93)
at Symfony\Component\Security\Http\Firewall->onKernelRequest(object(RequestEvent), 'kernel.request', object(TraceableEventDispatcher))
(vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(RequestEvent), 'kernel.request', object(TraceableEventDispatcher))
(vendor/symfony/event-dispatcher/EventDispatcher.php:206)
at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(RequestEvent))
(vendor/symfony/event-dispatcher/EventDispatcher.php:56)
at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
(vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:126)
at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
(vendor/symfony/http-kernel/HttpKernel.php:159)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:193)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(vendor/runtime/frankenphp-symfony/src/Runner.php:38)
at Runtime\FrankenPhpSymfony\Runner->{closure:Runtime\FrankenPhpSymfony\Runner::run():33}()
at frankenphp_handle_request(object(Closure))
(vendor/runtime/frankenphp-symfony/src/Runner.php:45)
at Runtime\FrankenPhpSymfony\Runner->run()
(vendor/autoload_runtime.php:32)
at require_once('/app/vendor/autoload_runtime.php')
(public/index.php:7)
|