https://demo.easytransfer24.de/service/v2/orders

Exceptions

Falscher Content-Type ()

Exception

Symfony\Component\HttpKernel\Exception\ AccessDeniedHttpException

  1.         {
  2.             $data $request->request->all();
  3.         }
  4.         else
  5.         {
  6.             throw new AccessDeniedHttpException("Falscher Content-Type (".$contentType.")");
  7.         }
  8.         if ((!array_key_exists("login",$data))||(!array_key_exists("password",$data)))
  9.         {
  10.             throw new AccessDeniedHttpException("Fehlende Zugangsdaten.");
  11.         }
ServiceBaseController->parseRequest() in src/Diplix/KMGBundle/Controller/Service/Api2Controller.php (line 62)
  1.         }
  2.         return false;
  3.     }
  4.     protected function parseAndAuth(Request $request)
  5.     {
  6.         $data $this->parseRequest($request);
  7.         $this->loadUser($data['login'],$data['password'],false);
  8.         // do not detach user -> deprecated and kills further ops which rely on objects with an association with that user (e.g. deviceTokens)
  9.         return $data;
  10.     }
Api2Controller->parseAndAuth() in src/Diplix/KMGBundle/Controller/Service/Api2Controller.php (line 189)
  1.         ]);
  2.     }
  3.     public function ordersAction(Request $request)
  4.     {
  5.         $req $this->parseAndAuth($request);
  6.         // get filters owned orders
  7.         $filterStatus array_key_exists('status',$req) ? $req['status'] : 0;
  8.         $from = (new \DateTime())->sub(new \DateInterval('P3M'));
  9.         $to = (new \DateTime())->add(new \DateInterval('P3M'));
  10.         $from array_key_exists('from',$req) ? new \DateTime($req['from']) : $from ;
in vendor/symfony/http-kernel/HttpKernel.php -> ordersAction (line 163)
  1.         $this->dispatcher->dispatch($eventKernelEvents::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($eventKernelEvents::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 web/app.php (line 38)
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new AppKernel($_SERVER['APP_ENV'], (bool)$_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Logs

Level Channel Message
INFO 19:06:29 php User Deprecated: Since symfony/http-foundation 5.2: The "HEADER_X_FORWARDED_ALL" constant is deprecated, use either "HEADER_X_FORWARDED_FOR | HEADER_X_FORWARDED_HOST | HEADER_X_FORWARDED_PORT | HEADER_X_FORWARDED_PROTO" or "HEADER_X_FORWARDED_AWS_ELB" or "HEADER_X_FORWARDED_TRAEFIK" constants instead.
{
    "exception": {}
}
INFO 19:06:29 php User Deprecated: Method "Symfony\Component\HttpKernel\Bundle\Bundle::getContainerExtension()" might add "?ExtensionInterface" as a native return type declaration in the future. Do the same in child class "BoShurik\TelegramBotBundle\BoShurikTelegramBotBundle" now to avoid errors or add an explicit @return annotation to suppress this message.
{
    "exception": {}
}
INFO 19:06:29 php User Deprecated: Method "Symfony\Component\HttpKernel\Bundle\Bundle::getContainerExtension()" might add "?ExtensionInterface" as a native return type declaration in the future. Do the same in child class "Kreait\Firebase\Symfony\Bundle\FirebaseBundle" now to avoid errors or add an explicit @return annotation to suppress this message.
{
    "exception": {}
}
INFO 19:06:29 php User Deprecated: Since symfony/monolog-bridge 6.4: The "Symfony\Bridge\Monolog\Logger" class is deprecated, use HttpKernel's DebugLoggerConfigurator instead.
{
    "exception": {}
}
INFO 19:06:29 php User Deprecated: The Liip\ImagineBundle\Templating\FilterTrait trait is deprecated since version 2.7 and will be removed in 3.0; use Twig instead.
{
    "exception": {}
}
INFO 19:06:29 php User Deprecated: The Liip\ImagineBundle\Templating\FilterExtension class is deprecated since version 2.7 and will be removed in 3.0; configure "liip_imagine.twig.mode" to "lazy" instead.
{
    "exception": {}
}
INFO 19:06:29 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "latest"
    },
    "request_uri": "https://demo.easytransfer24.de/_profiler/latest?panel=exception",
    "method": "GET"
}
INFO 19:06:29 php User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.factory.service" service is deprecated, use "session.storage.factory.native", "session.storage.factory.php_bridge" or "session.storage.factory.mock_file" instead.
{
    "exception": {}
}
INFO 19:06:29 php User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.native" service is deprecated, use "session.storage.factory.native" instead.
{
    "exception": {}
}
INFO 19:06:29 php User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.metadata_bag" service is deprecated, create your own "session.storage.factory" instead.
{
    "exception": {}
}
INFO 19:06:29 php User Deprecated: Method "Doctrine\ORM\Query\Filter\SQLFilter::addFilterConstraint()" might add "string" as a native return type declaration in the future. Do the same in child class "Diplix\KMGBundle\Filter\BeDeletedFilter" now to avoid errors or add an explicit @return annotation to suppress this message.
{
    "exception": {}
}
INFO 19:06:29 doctrine Connecting with parameters {params}
{
    "params": {
        "driver": "pdo_mysql",
        "host": "127.0.0.1",
        "port": null,
        "dbname": "kwdemo",
        "user": "kwdemo",
        "password": "<redacted>",
        "charset": "UTF8",
        "idle_connection_ttl": 600,
        "driverOptions": [],
        "defaultTableOptions": []
    }
}
INFO 19:06:29 php Deprecated: Diplix\KMGBundle\Entity\User implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary)
{
    "exception": {}
}
INFO 19:06:29 php User Deprecated: Class "Diplix\KMGBundle\Entity\User" should implement method "Symfony\Component\Security\Core\User\UserInterface::getUserIdentifier(): string": returns the identifier for this user (e.g. its username or email address).
{
    "exception": {}
}
INFO 19:06:29 php User Deprecated: Method "Symfony\Component\Security\Core\User\UserInterface::getUsername()" might add "string" as a native return type declaration in the future. Do the same in implementation "Diplix\KMGBundle\Entity\User" now to avoid errors or add an explicit @return annotation to suppress this message.
{
    "exception": {}
}
INFO 19:06:29 php User Deprecated: Method "Symfony\Component\Security\Core\User\UserInterface::getSalt()" might add "?string" as a native return type declaration in the future. Do the same in implementation "Diplix\KMGBundle\Entity\User" now to avoid errors or add an explicit @return annotation to suppress this message.
{
    "exception": {}
}
INFO 19:06:29 php User Deprecated: Method "Symfony\Component\Security\Core\User\EquatableInterface::isEqualTo()" might add "bool" as a native return type declaration in the future. Do the same in implementation "Diplix\KMGBundle\Entity\User" now to avoid errors or add an explicit @return annotation to suppress this message.
{
    "exception": {}
}
INFO 19:06:29 php User Deprecated: Since symfony/http-foundation 5.2: The "HEADER_X_FORWARDED_ALL" constant is deprecated, use either "HEADER_X_FORWARDED_FOR | HEADER_X_FORWARDED_HOST | HEADER_X_FORWARDED_PORT | HEADER_X_FORWARDED_PROTO" or "HEADER_X_FORWARDED_AWS_ELB" or "HEADER_X_FORWARDED_TRAEFIK" constants instead.
{
    "exception": {}
}
INFO 19:06:29 php User Deprecated: Since symfony/http-foundation 5.2: The "HEADER_X_FORWARDED_ALL" constant is deprecated, use either "HEADER_X_FORWARDED_FOR | HEADER_X_FORWARDED_HOST | HEADER_X_FORWARDED_PORT | HEADER_X_FORWARDED_PROTO" or "HEADER_X_FORWARDED_AWS_ELB" or "HEADER_X_FORWARDED_TRAEFIK" constants instead.
{
    "exception": {}
}

Stack Trace

AccessDeniedHttpException
Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException:
Falscher Content-Type ()

  at src/Diplix/KMGBundle/Controller/Service/ServiceBaseController.php:82
  at Diplix\KMGBundle\Controller\Service\ServiceBaseController->parseRequest()
     (src/Diplix/KMGBundle/Controller/Service/Api2Controller.php:62)
  at Diplix\KMGBundle\Controller\Service\Api2Controller->parseAndAuth()
     (src/Diplix/KMGBundle/Controller/Service/Api2Controller.php:189)
  at Diplix\KMGBundle\Controller\Service\Api2Controller->ordersAction()
     (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()
     (web/app.php:38)