Exceptions
Exception
Symfony\Component\HttpKernel\Exception\ BadRequestHttpException
Show exception properties
Symfony\Component\HttpKernel\Exception\BadRequestHttpException {#354 -statusCode: 400 -headers: [] }
$credentials['username'] = ParameterBagUtils::getRequestParameterValue($request, $this->options['username_parameter']);$credentials['password'] = ParameterBagUtils::getRequestParameterValue($request, $this->options['password_parameter']) ?? '';}if (!\is_string($credentials['username']) && !$credentials['username'] instanceof \Stringable) {throw new BadRequestHttpException(\sprintf('The key "%s" must be a string, "%s" given.', $this->options['username_parameter'], \gettype($credentials['username'])));}$credentials['username'] = trim($credentials['username']);if ('' === $credentials['username']) {
in
vendor/symfony/security-http/Authenticator/FormLoginAuthenticator.php
->
getCredentials
(line 80)
&& ($this->options['form_only'] ? 'form' === $request->getContentTypeFormat() : true);}public function authenticate(Request $request): Passport{$credentials = $this->getCredentials($request);$userBadge = new UserBadge($credentials['username'], $this->userProvider->loadUserByIdentifier(...));$passport = new Passport($userBadge, new PasswordCredentials($credentials['password']), [new RememberMeBadge()]);if ($this->options['enable_csrf']) {
in
vendor/symfony/security-http/Authenticator/Debug/TraceableAuthenticator.php
->
authenticate
(line 74)
public function authenticate(Request $request): Passport{$startTime = microtime(true);try {$this->passport = $this->authenticator->authenticate($request);} finally {$this->duration = microtime(true) - $startTime;}return $this->passport;
in
vendor/symfony/security-http/Authentication/AuthenticatorManager.php
->
authenticate
(line 185)
$passport = null;$previousToken = $this->tokenStorage->getToken();try {// get the passport from the Authenticator$passport = $authenticator->authenticate($request);// check the passport (e.g. password checking)$event = new CheckPassportEvent($authenticator, $passport);$this->eventDispatcher->dispatch($event);
in
vendor/symfony/security-http/Authentication/AuthenticatorManager.php
->
executeAuthenticator
(line 167)
$this->logger?->debug('Skipping the "{authenticator}" authenticator as it did not support the request.', ['authenticator' => ($authenticator instanceof TraceableAuthenticator ? $authenticator->getAuthenticator() : $authenticator)::class]);continue;}$response = $this->executeAuthenticator($authenticator, $request);if (null !== $response) {$this->logger?->debug('The "{authenticator}" authenticator set the response. Any later authenticator will not be called', ['authenticator' => ($authenticator instanceof TraceableAuthenticator ? $authenticator->getAuthenticator() : $authenticator)::class]);return $response;}
in
vendor/symfony/security-http/Authentication/AuthenticatorManager.php
->
executeAuthenticators
(line 149)
if (!$authenticators) {return null;}return $this->executeAuthenticators($authenticators, $request);}/*** @param AuthenticatorInterface[] $authenticators*/
in
vendor/symfony/security-http/Firewall/AuthenticatorManagerListener.php
->
authenticateRequest
(line 38)
}public function authenticate(RequestEvent $event): void{$request = $event->getRequest();$response = $this->authenticatorManager->authenticateRequest($request);if (null === $response) {return;}$event->setResponse($response);
in
vendor/symfony/security-http/Authenticator/Debug/TraceableAuthenticatorManagerListener.php
->
authenticate
(line 58)
return $supports;}public function authenticate(RequestEvent $event): void{$this->authenticationManagerListener->authenticate($event);}public function getAuthenticatorManagerListener(): AuthenticatorManagerListener{return $this->authenticationManagerListener;
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-http/Firewall/AbstractListener.php
->
authenticate
(line 26)
abstract class AbstractListener implements FirewallListenerInterface{final public function __invoke(RequestEvent $event): void{if (false !== $this->supports($event->getRequest())) {$this->authenticate($event);}}public static function getPriority(): int{
in
vendor/symfony/security-bundle/Security/LazyFirewallContext.php
->
__invoke
(line 61)
}}if (!$lazy) {foreach ($listeners as $listener) {$listener($event);if ($event->hasResponse()) {return;}}
in
vendor/symfony/security-bundle/Debug/TraceableFirewallListener.php
->
__invoke
(line 91)
$requestListeners[] = $wrappedListener;}}foreach ($requestListeners as $listener) {$listener($event);if ($event->hasResponse()) {break;}}
in
vendor/symfony/security-http/Firewall.php
->
callListeners
(line 92)
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 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__).'/vendor/autoload_runtime.php';return function (array $context) {return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 08:31:39 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "ef9b50"
},
"request_uri": "https://listedecourses.kramilie.fr/_profiler/ef9b50",
"method": "GET"
}
|
| DEBUG 08:31:39 | event |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener::configure"
}
|
| DEBUG 08:31:39 | event |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener::onKernelRequest"
}
|
| DEBUG 08:31:39 | event |
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 08:31:39 | event |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\SessionListener::onKernelRequest"
}
|
| DEBUG 08:31:39 | event |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::setDefaultLocale". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::setDefaultLocale"
}
|
| DEBUG 08:31:39 | event |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\RouterListener::onKernelRequest"
}
|
| DEBUG 08:31:39 | event |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::onKernelRequest"
}
|
| DEBUG 08:31:39 | event |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleAwareListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleAwareListener::onKernelRequest"
}
|
| DEBUG 08:31:39 | event |
Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::configureLogoutUrlGenerator". {
"event": "kernel.request",
"listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::configureLogoutUrlGenerator"
}
|
| DEBUG 08:31:39 | event |
Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::onKernelRequest"
}
|
| DEBUG 08:31:39 | event |
Notified event "kernel.request" to listener "Symfony\UX\LiveComponent\EventListener\LiveComponentSubscriber::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\UX\\LiveComponent\\EventListener\\LiveComponentSubscriber::onKernelRequest"
}
|
| DEBUG 08:31:39 | event |
Notified event "kernel.controller" to listener "Symfony\UX\LiveComponent\EventListener\LiveComponentSubscriber::onKernelController". {
"event": "kernel.controller",
"listener": "Symfony\\UX\\LiveComponent\\EventListener\\LiveComponentSubscriber::onKernelController"
}
|
| DEBUG 08:31:39 | event |
Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController". {
"event": "kernel.controller",
"listener": "Symfony\\Bundle\\FrameworkBundle\\DataCollector\\RouterDataCollector::onKernelController"
}
|
| DEBUG 08:31:39 | event |
Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController". {
"event": "kernel.controller",
"listener": "Symfony\\Component\\HttpKernel\\DataCollector\\RequestDataCollector::onKernelController"
}
|
| INFO 08:31:39 | deprecation |
User Deprecated: In ORM 3.0, the AttributeDriver will report fields for the classes where they are declared. This may uncover invalid mapping configurations. To opt into the new mode today, set the "reportFieldsWhereDeclared" constructor parameter to true. (AttributeDriver.php:77 called by App_KernelDevDebugContainer.php:1439, https://github.com/doctrine/orm/pull/10455, package doctrine/orm) {
"exception": {}
}
|
| DEBUG 08:31:39 | event |
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 08:31:39 | event |
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 08:31:39 | event |
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 08:31:39 | event |
Notified event "kernel.controller_arguments" to listener "ContainerYqBjTkx\RequestPayloadValueResolverGhost01ca9cc::onKernelControllerArguments". {
"event": "kernel.controller_arguments",
"listener": "ContainerYqBjTkx\\RequestPayloadValueResolverGhost01ca9cc::onKernelControllerArguments"
}
|
| DEBUG 08:31:39 | event |
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
|
BadRequestHttpException
|
|---|
Symfony\Component\HttpKernel\Exception\BadRequestHttpException:
The key "_username" must be a string, "NULL" given.
at vendor/symfony/security-http/Authenticator/FormLoginAuthenticator.php:125
at Symfony\Component\Security\Http\Authenticator\FormLoginAuthenticator->getCredentials()
(vendor/symfony/security-http/Authenticator/FormLoginAuthenticator.php:80)
at Symfony\Component\Security\Http\Authenticator\FormLoginAuthenticator->authenticate()
(vendor/symfony/security-http/Authenticator/Debug/TraceableAuthenticator.php:74)
at Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticator->authenticate()
(vendor/symfony/security-http/Authentication/AuthenticatorManager.php:185)
at Symfony\Component\Security\Http\Authentication\AuthenticatorManager->executeAuthenticator()
(vendor/symfony/security-http/Authentication/AuthenticatorManager.php:167)
at Symfony\Component\Security\Http\Authentication\AuthenticatorManager->executeAuthenticators()
(vendor/symfony/security-http/Authentication/AuthenticatorManager.php:149)
at Symfony\Component\Security\Http\Authentication\AuthenticatorManager->authenticateRequest()
(vendor/symfony/security-http/Firewall/AuthenticatorManagerListener.php:38)
at Symfony\Component\Security\Http\Firewall\AuthenticatorManagerListener->authenticate()
(vendor/symfony/security-http/Authenticator/Debug/TraceableAuthenticatorManagerListener.php:58)
at Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticatorManagerListener->authenticate()
(vendor/symfony/security-bundle/Debug/WrappedLazyListener.php:46)
at Symfony\Bundle\SecurityBundle\Debug\WrappedLazyListener->authenticate()
(vendor/symfony/security-http/Firewall/AbstractListener.php:26)
at Symfony\Component\Security\Http\Firewall\AbstractListener->__invoke()
(vendor/symfony/security-bundle/Security/LazyFirewallContext.php:61)
at Symfony\Bundle\SecurityBundle\Security\LazyFirewallContext->__invoke()
(vendor/symfony/security-bundle/Debug/TraceableFirewallListener.php:91)
at Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener->callListeners()
(vendor/symfony/security-http/Firewall.php:92)
at Symfony\Component\Security\Http\Firewall->onKernelRequest()
(vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
(vendor/symfony/event-dispatcher/EventDispatcher.php:206)
at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
(vendor/symfony/event-dispatcher/EventDispatcher.php:56)
at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
(vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:126)
at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
(vendor/symfony/http-kernel/HttpKernel.php:159)
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/recipe/vendor/autoload_runtime.php')
(public/index.php:5)
|