https://169.58.137.185/

Exceptions

Warning: Undefined array key "_username"

Exception

ErrorException

  1.         return $this->render('login.twig', ['error' => $this->lastError, 'errorDetails' => $this->lastErrorDetails, 'last_username' => $this->userName]);
  2.     }
  3.     #[Route('/', name: 'login_check', methods: ['POST'])]
  4.     public function loginAction(Request $request): Response {
  5.         $this->userName = trim($_POST['_username']);
  6.         $password = trim($_POST['_password']);
  7.         $requestBody = json_encode(["client_id" => "cspro_android", "client_secret" => "cspro", "grant_type" => "password", "username" => $this->userName, "password" => $password], JSON_THROW_ON_ERROR);
  8.         $response = $this->client->request('POST', 'token', $requestBody, ['Content-Type' => 'application/json',
  9.             'Accept' => 'application/json']);
in vendor/symfony/http-kernel/HttpKernel.php -> loginAction (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle() in app.php/ (line 27)
  1. // When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
  2. //Request::enableHttpMethodParameterOverride();
  3. $request = Request::createFromGlobals();
  4. $response = $kernel->handle($request);
  5. $response->send();
  6. $kernel->terminate($request, $response);

Logs

Level Channel Message
INFO 12:58:47 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?panel=exception",
    "method": "GET"
}
DEBUG 12:58:47 app Event Subscriber: OnKernelController
DEBUG 12:58:47 app route is http://169.58.137.185:8080/_profiler/cfc44a?panel=exception
DEBUG 12:58:47 app Event Subscriber: OnKernelController
DEBUG 12:58:47 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 12:58:47 app Event Subscriber: OnKernelController
DEBUG 12:58:47 app route is http://169.58.137.185:8080/_fragment?_path=_format%3Dhtml%26_locale%3Den%26_controller%3Dweb_profiler.controller.profiler%253A%253AsearchBarAction&panel=exception
DEBUG 12:58:47 app Event Subscriber: OnKernelController
DEBUG 12:58:47 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)