Exceptions
Exception
ErrorException
in
src/AppBundle/Controller/ui/LoginController.php
(line 39)
return $this->render('login.twig', ['error' => $this->lastError, 'errorDetails' => $this->lastErrorDetails, 'last_username' => $this->userName]);}#[Route('/', name: 'login_check', methods: ['POST'])]public function loginAction(Request $request): Response {$this->userName = trim($_POST['_username']);$password = trim($_POST['_password']);$requestBody = json_encode(["client_id" => "cspro_android", "client_secret" => "cspro", "grant_type" => "password", "username" => $this->userName, "password" => $password], JSON_THROW_ON_ERROR);$response = $this->client->request('POST', 'token', $requestBody, ['Content-Type' => 'application/json','Accept' => 'application/json']);
in
vendor/symfony/http-kernel/HttpKernel.php
->
loginAction
(line 163)
$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);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);try {return $this->handleRaw($request, $type);} catch (\Exception $e) {if ($e instanceof RequestExceptionInterface) {$e = new BadRequestHttpException($e->getMessage(), $e);}if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();++$this->requestStackSize;$this->resetServices = true;try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter//Request::enableHttpMethodParameterOverride();$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();$kernel->terminate($request, $response);
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 13:32:18 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "cfc44a"
},
"request_uri": "http://169.58.137.185:8080/_profiler/cfc44a",
"method": "GET"
}
|
| DEBUG 13:32:18 | app | Event Subscriber: OnKernelController |
| DEBUG 13:32:18 | app | route is http://169.58.137.185:8080/_profiler/cfc44a |
| DEBUG 13:32:18 | app | Event Subscriber: OnKernelController |
| DEBUG 13:32:18 | app | route is http://169.58.137.185:8080/_fragment?_path=_format%3Dhtml%26_locale%3Den%26_controller%3Dweb_profiler.controller.exception_panel%253A%253Astylesheet |
| DEBUG 13:32:18 | app | Event Subscriber: OnKernelController |
| DEBUG 13:32:18 | app | route is http://169.58.137.185:8080/_fragment?_path=_format%3Dhtml%26_locale%3Den%26_controller%3Dweb_profiler.controller.profiler%253A%253AsearchBarAction |
| DEBUG 13:32:18 | app | Event Subscriber: OnKernelController |
| DEBUG 13:32:18 | app | route is http://169.58.137.185:8080/_fragment?_path=_format%3Dhtml%26_locale%3Den%26_controller%3Dweb_profiler.controller.exception_panel%253A%253Abody |
Stack Trace
|
ErrorException
|
|---|
ErrorException:
Warning: Undefined array key "_username"
at src/AppBundle/Controller/ui/LoginController.php:39
at AppBundle\Controller\ui\LoginController->loginAction()
(vendor/symfony/http-kernel/HttpKernel.php:163)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:75)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:202)
at Symfony\Component\HttpKernel\Kernel->handle()
(app.php/:27)
|