https://portail-global-api.int.villagile.fr/api/public/realms?domainName=https%3A%2F%2Fondijon-int.toutsurmasemop.fr

Exceptions

Too many contracts found (2), expected only one.

Exception

LengthException

  1.                 $this->logger->error($msg = \sprintf(
  2.                     'Too many contracts found (%s), expected only one.',
  3.                     $countContracts,
  4.                 ), ['domainName' => $domainName'contractsId' => \array_column($contracts'id')]);
  5.                 throw new \LengthException($msg);
  6.         }
  7.     }
  8. }
ConfigurationManager->getRealm() in src/Controller/PublicConfigurationController.php (line 50)
  1.      */
  2.     public function getRealm(
  3.         ConfigurationManagerInterface $configurationManager,
  4.         Request $request
  5.     ): JsonResponse {
  6.         return $this->json($configurationManager->getRealm($request->get('domainName')));
  7.     }
  8. }
  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 public/index.php (line 26)
  1. }
  2. $kernel  = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  3. $request Request::createFromGlobals();
  4. $response $kernel->handle($request);
  5. $response->send();
  6. $kernel->terminate($request$response);

Logs

Level Channel Message
INFO 01:57:58 deprecation 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": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "1477801541480014948"
}
INFO 01:57:58 deprecation User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.native" service is deprecated, use "session.storage.factory.native" instead.
{
    "exception": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "12608167690669818528"
}
INFO 01:57:58 deprecation User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.metadata_bag" service is deprecated, create your own "session.storage.factory" instead.
{
    "exception": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "12608167690669818528"
}
INFO 01:57:58 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "latest"
    },
    "request_uri": "https://portail-global-api.int.villagile.fr/_profiler/latest",
    "method": "GET",
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "12608167690669818528"
}
INFO 01:57:58 deprecation User Deprecated: Since symfony/security-http 5.4: The "Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint" class is deprecated, use the new security system with "Symfony\Component\Security\Http\Authenticator\FormLoginAuthenticator" instead.
{
    "exception": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "12608167690669818528"
}
INFO 01:57:58 deprecation 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": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "12608167690669818528"
}
INFO 01:57:58 deprecation User Deprecated: Since symfony/security-http 5.3: The "Symfony\Component\Security\Http\Firewall\AbstractAuthenticationListener" class is deprecated, use the new authenticator system instead.
{
    "exception": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "12608167690669818528"
}
INFO 01:57:58 deprecation User Deprecated: Since symfony/security-bundle 5.3: The "security.authentication.manager" service is deprecated, use the new authenticator system instead.
{
    "exception": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "12608167690669818528"
}
INFO 01:57:58 deprecation User Deprecated: Since symfony/security-core 5.3: The "Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager" class is deprecated, use the new authenticator system instead.
{
    "exception": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "12608167690669818528"
}
INFO 01:57:58 deprecation User Deprecated: Since symfony/security-core 5.3: The "Symfony\Component\Security\Core\Event\AuthenticationFailureEvent" class is deprecated, use "Symfony\Component\Security\Http\Event\LoginFailureEvent" with the new authenticator system instead.
{
    "exception": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "12608167690669818528"
}
INFO 01:57:58 deprecation User Deprecated: Since symfony/security-bundle 5.3: The "security.authentication.listener.anonymous.main" service is deprecated, use the new authenticator system instead.
{
    "exception": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "12608167690669818528"
}
INFO 01:57:58 deprecation User Deprecated: Since symfony/security-http 5.3: The "Symfony\Component\Security\Http\Firewall\AnonymousAuthenticationListener" class is deprecated, use the new authenticator system instead.
{
    "exception": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "12608167690669818528"
}
INFO 01:57:58 deprecation User Deprecated: Since symfony/security-core 5.4: The "Symfony\Component\Security\Core\Authentication\Token\AnonymousToken" class is deprecated.
{
    "exception": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "12608167690669818528"
}
INFO 01:57:58 deprecation User Deprecated: Since symfony/security-core 5.4: Using an object that is not an instance of "Symfony\Component\Security\Core\User\UserInterface" as $user in "Symfony\Component\Security\Core\Authentication\Token\AnonymousToken" is deprecated.
{
    "exception": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "12608167690669818528"
}
INFO 01:57:58 deprecation User Deprecated: Since symfony/security-bundle 5.3: The "security.authentication.provider.guard.api" service is deprecated, use the new authenticator system instead.
{
    "exception": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "12608167690669818528"
}
INFO 01:57:58 deprecation User Deprecated: Since symfony/security-guard 5.3: The "Symfony\Component\Security\Guard\Provider\GuardAuthenticationProvider" class is deprecated, use the new authenticator system instead.
{
    "exception": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "12608167690669818528"
}
INFO 01:57:58 deprecation User Deprecated: Since symfony/security-core 5.3: The "Symfony\Component\Security\Core\Authentication\Provider\AuthenticationProviderInterface" interface is deprecated, use the new authenticator system instead.
{
    "exception": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "12608167690669818528"
}
INFO 01:57:58 deprecation User Deprecated: Since symfony/security-bundle 5.3: The "security.authentication.provider.guard.external_app_connect" service is deprecated, use the new authenticator system instead.
{
    "exception": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "12608167690669818528"
}
INFO 01:57:58 deprecation User Deprecated: Since symfony/security-bundle 5.3: The "security.authentication.provider.anonymous.main" service is deprecated, use the new authenticator system instead.
{
    "exception": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "12608167690669818528"
}
INFO 01:57:58 deprecation User Deprecated: Since symfony/security-core 5.3: The "Symfony\Component\Security\Core\Authentication\Provider\AnonymousAuthenticationProvider" class is deprecated, use the new authenticator system instead.
{
    "exception": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "12608167690669818528"
}
INFO 01:57:58 security Populated the TokenStorage with an anonymous Token.
{
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "12608167690669818528"
}
INFO 01:57:58 deprecation User Deprecated: Since symfony/security-http 5.4: The $authManager argument of "Symfony\Component\Security\Http\Firewall\AccessListener::__construct" is deprecated.
{
    "exception": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "12608167690669818528"
}
INFO 01:57:58 deprecation User Deprecated: Since symfony/security-http 5.4: Not setting the $exceptionOnNoToken argument of "Symfony\Component\Security\Http\Firewall\AccessListener::__construct" to "false" is deprecated.
{
    "exception": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "12608167690669818528"
}
INFO 01:57:58 deprecation User Deprecated: Since symfony/security-bundle 5.4: Setting the $authenticatorManagerEnabled argument of "Symfony\Bundle\SecurityBundle\DataCollector\SecurityDataCollector::__construct" to "false" is deprecated, use the new authenticator system instead.
{
    "exception": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "5188746208813204586"
}
INFO 01:57:58 deprecation User Deprecated: Since symfony/security-core 5.4: Not setting the 5th argument of "Symfony\Component\Security\Core\Authorization\AuthorizationChecker::__construct" to "false" is deprecated.
{
    "exception": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "5188746208813204586"
}
INFO 01:57:58 deprecation 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": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "6172769649983030009"
}
INFO 01:57:58 deprecation 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": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "6172769649983030009"
}
INFO 01:57:58 deprecation 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": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "6172769649983030009"
}
INFO 01:57:58 deprecation 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": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "6172769649983030009"
}
INFO 01:57:58 deprecation 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": {},
    "dd.trace_id": "69bf3e9600000000148234ac1870e464",
    "dd.span_id": "6172769649983030009"
}

Stack Trace

LengthException
LengthException:
Too many contracts found (2), expected only one.

  at src/Manager/ConfigurationManager.php:76
  at App\Manager\ConfigurationManager->getRealm()
     (src/Controller/PublicConfigurationController.php:50)
  at App\Controller\PublicConfigurationController->getRealm()
     (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()
     (public/index.php:26)