Error 403 Forbidden

GET https://r7-clip.alpha-soft.fr/api/agencies/02/users

Serializer

1 Handled
15.06 ms Total time

serialize 1

Data Context Normalizer Encoder Time Caller
Symfony\Component\ErrorHandler\Exception\FlattenException
Show contents
Symfony\Component\ErrorHandler\Exception\FlattenException {#1034
  -message: "This action needs a valid token!"
  -code: 0
  -previous: null
  -trace: [
    [
      "namespace" => ""
      "short_class" => ""
      "class" => ""
      "type" => ""
      "function" => ""
      "file" => "/app/src/EventSubscriber/TokenSubscriber.php"
      "line" => 37
      "args" => []
    ]
    [
      "namespace" => "App\EventSubscriber"
      "short_class" => "TokenSubscriber"
      "class" => "App\EventSubscriber\TokenSubscriber"
      "type" => "->"
      "function" => "onKernelController"
      "file" => "/app/vendor/symfony/event-dispatcher/Debug/WrappedListener.php"
      "line" => 116
      "args" => []
    ]
    [
      "namespace" => "Symfony\Component\EventDispatcher\Debug"
      "short_class" => "WrappedListener"
      "class" => "Symfony\Component\EventDispatcher\Debug\WrappedListener"
      "type" => "->"
      "function" => "__invoke"
      "file" => "/app/vendor/symfony/event-dispatcher/EventDispatcher.php"
      "line" => 220
      "args" => []
    ]
    [
      "namespace" => "Symfony\Component\EventDispatcher"
      "short_class" => "EventDispatcher"
      "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
      "type" => "->"
      "function" => "callListeners"
      "file" => "/app/vendor/symfony/event-dispatcher/EventDispatcher.php"
      "line" => 56
      "args" => []
    ]
    [
      "namespace" => "Symfony\Component\EventDispatcher"
      "short_class" => "EventDispatcher"
      "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
      "type" => "->"
      "function" => "dispatch"
      "file" => "/app/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php"
      "line" => 139
      "args" => []
    ]
    [
      "namespace" => "Symfony\Component\EventDispatcher\Debug"
      "short_class" => "TraceableEventDispatcher"
      "class" => "Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher"
      "type" => "->"
      "function" => "dispatch"
      "file" => "/app/vendor/symfony/http-kernel/HttpKernel.php"
      "line" => 169
      "args" => []
    ]
    [
      "namespace" => "Symfony\Component\HttpKernel"
      "short_class" => "HttpKernel"
      "class" => "Symfony\Component\HttpKernel\HttpKernel"
      "type" => "->"
      "function" => "handleRaw"
      "file" => "/app/vendor/symfony/http-kernel/HttpKernel.php"
      "line" => 76
      "args" => []
    ]
    [
      "namespace" => "Symfony\Component\HttpKernel"
      "short_class" => "HttpKernel"
      "class" => "Symfony\Component\HttpKernel\HttpKernel"
      "type" => "->"
      "function" => "handle"
      "file" => "/app/vendor/symfony/http-kernel/Kernel.php"
      "line" => 197
      "args" => []
    ]
    [
      "namespace" => "Symfony\Component\HttpKernel"
      "short_class" => "Kernel"
      "class" => "Symfony\Component\HttpKernel\Kernel"
      "type" => "->"
      "function" => "handle"
      "file" => "/app/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php"
      "line" => 35
      "args" => []
    ]
    [
      "namespace" => "Symfony\Component\Runtime\Runner\Symfony"
      "short_class" => "HttpKernelRunner"
      "class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
      "type" => "->"
      "function" => "run"
      "file" => "/app/vendor/autoload_runtime.php"
      "line" => 29
      "args" => []
    ]
    [
      "namespace" => ""
      "short_class" => ""
      "class" => ""
      "type" => ""
      "function" => "require_once"
      "file" => "/app/public/index.php"
      "line" => 6
      "args" => [
        [
          "string"
          "/app/vendor/autoload_runtime.php"
        ]
      ]
    ]
  ]
  -traceAsString: """
    #0 /app/vendor/symfony/event-dispatcher/Debug/WrappedListener.php(116): App\EventSubscriber\TokenSubscriber->onKernelController()\n
    #1 /app/vendor/symfony/event-dispatcher/EventDispatcher.php(220): Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()\n
    #2 /app/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\Component\EventDispatcher\EventDispatcher->callListeners()\n
    #3 /app/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php(139): Symfony\Component\EventDispatcher\EventDispatcher->dispatch()\n
    #4 /app/vendor/symfony/http-kernel/HttpKernel.php(169): Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()\n
    #5 /app/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()\n
    #6 /app/vendor/symfony/http-kernel/Kernel.php(197): Symfony\Component\HttpKernel\HttpKernel->handle()\n
    #7 /app/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php(35): Symfony\Component\HttpKernel\Kernel->handle()\n
    #8 /app/vendor/autoload_runtime.php(29): Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()\n
    #9 /app/public/index.php(6): require_once('...')\n
    #10 {main}
    """
  -class: "Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException"
  -statusCode: 403
  -statusText: "Forbidden"
  -headers: [
    "Vary" => "Accept"
    "X-Debug-Exception" => "This%20action%20needs%20a%20valid%20token%21"
    "X-Debug-Exception-File" => "%2Fapp%2Fsrc%2FEventSubscriber%2FTokenSubscriber.php:37"
    "Content-Type" => "application/json"
  ]
  -file: "/app/src/EventSubscriber/TokenSubscriber.php"
  -line: 37
  -asString: "{"type":"https:\/\/tools.ietf.org\/html\/rfc2616#section-10","title":"An error occurred","status":403,"detail":"This action needs a valid token!","class":"Symfony\\Component\\HttpKernel\\Exception\\AccessDeniedHttpException","trace":[{"namespace":"","short_class":"","class":"","type":"","function":"","file":"\/app\/src\/EventSubscriber\/TokenSubscriber.php","line":37,"args":[]},{"namespace":"App\\EventSubscriber","short_class":"TokenSubscriber","class":"App\\EventSubscriber\\TokenSubscriber","type":"->","function":"onKernelController","file":"\/app\/vendor\/symfony\/event-dispatcher\/Debug\/WrappedListener.php","line":116,"args":[]},{"namespace":"Symfony\\Component\\EventDispatcher\\Debug","short_class":"WrappedListener","class":"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener","type":"->","function":"__invoke","file":"\/app\/vendor\/symfony\/event-dispatcher\/EventDispatcher.php","line":220,"args":[]},{"namespace":"Symfony\\Component\\EventDispatcher","short_class":"EventDispatcher","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","function":"callListeners","file":"\/app\/vendor\/symfony\/event-dispatcher\/EventDispatcher.php","line":56,"args":[]},{"namespace":"Symfony\\Component\\EventDispatcher","short_class":"EventDispatcher","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","function":"dispatch","file":"\/app\/vendor\/symfony\/event-dispatcher\/Debug\/TraceableEventDispatcher.php","line":139,"args":[]},{"namespace":"Symfony\\Component\\EventDispatcher\\Debug","short_class":"TraceableEventDispatcher","class":"Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcher","type":"->","function":"dispatch","file":"\/app\/vendor\/symfony\/http-kernel\/HttpKernel.php","line":169,"args":[]},{"namespace":"Symfony\\Component\\HttpKernel","short_class":"HttpKernel","class":"Symfony\\Component\\HttpKernel\\HttpKernel","type":"->","function":"handleRaw","file":"\/app\/vendor\/symfony\/http-kernel\/HttpKernel.php","line":76,"args":[]},{"namespace":"Symfony\\Component\\HttpKernel","short_class":"HttpKernel","class":"Symfony\\Component\\HttpKernel\\HttpKernel","type":"->","function":"handle","file":"\/app\/vendor\/symfony\/http-kernel\/Kernel.php","line":197,"args":[]},{"namespace":"Symfony\\Component\\HttpKernel","short_class":"Kernel","class":"Symfony\\Component\\HttpKernel\\Kernel","type":"->","function":"handle","file":"\/app\/vendor\/symfony\/runtime\/Runner\/Symfony\/HttpKernelRunner.php","line":35,"args":[]},{"namespace":"Symfony\\Component\\Runtime\\Runner\\Symfony","short_class":"HttpKernelRunner","class":"Symfony\\Component\\Runtime\\Runner\\Symfony\\HttpKernelRunner","type":"->","function":"run","file":"\/app\/vendor\/autoload_runtime.php","line":29,"args":[]},{"namespace":"","short_class":"","class":"","type":"","function":"require_once","file":"\/app\/public\/index.php","line":6,"args":[["string","\/app\/vendor\/autoload_runtime.php"]]}]}"
  -dataRepresentation: ? Symfony\Component\VarDumper\Cloner\Data
}
Format: json
Show context
[
  "exception" => Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException {#671
    #message: "This action needs a valid token!"
    #code: 0
    #file: "/app/src/EventSubscriber/TokenSubscriber.php"
    #line: 37
    -statusCode: 403
    -headers: []
    trace: {
      /app/src/EventSubscriber/TokenSubscriber.php:37 {
        App\EventSubscriber\TokenSubscriber->onKernelController(ControllerEvent $event): void …
        › if ($apiKey !== $this->apiKey) {    throw new AccessDeniedHttpException('This action needs a valid token!');}
      }
      /app/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:116 {
        Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object $event, string $eventName, EventDispatcherInterface $dispatcher): void …
        › try {    ($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);} finally {
      }
      /app/vendor/symfony/event-dispatcher/EventDispatcher.php:220 {
        Symfony\Component\EventDispatcher\EventDispatcher->callListeners(iterable $listeners, string $eventName, object $event) …
        ›     }    $listener($event, $eventName, $this);}
      }
      /app/vendor/symfony/event-dispatcher/EventDispatcher.php:56 {
        Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object $event, ?string $eventName = null): object …
        › if ($listeners) {    $this->callListeners($listeners, $eventName, $event);}
      }
      /app/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:139 {
        Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object $event, ?string $eventName = null): object …
        › try {    $this->dispatcher->dispatch($event, $eventName);} finally {
      }
      /app/vendor/symfony/http-kernel/HttpKernel.php:169 {
        Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
        › $event = new ControllerEvent($this, $controller, $request, $type);$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER);$controller = $event->getController();
      }
      /app/vendor/symfony/http-kernel/HttpKernel.php:76 {
        Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
        › try {    return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {
      }
      /app/vendor/symfony/http-kernel/Kernel.php:197 {
        Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
        › try {    return $this->getHttpKernel()->handle($request, $type, $catch);} finally {
      }
      /app/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
        Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
        › {    $response = $this->kernel->handle($this->request);}
      /app/vendor/autoload_runtime.php:29 {
        require_once …
        ›         ->getRunner($app)        ->run());
      }
      /app/public/index.php:6 {
        › 
        › require_once dirname(__DIR__) . '/vendor/autoload_runtime.php';arguments: {
          "/app/vendor/autoload_runtime.php"
        }
      }
    }
  }
  "debug" => true
]
ProblemNormalizer (0.01 ms) JsonEncoder (0.02 ms) 15.06 ms

deserialize 0

Nothing was deserialized.

normalize 0

Nothing was normalized.

denormalize 0

Nothing was denormalized.

encode 0

Nothing was encoded.

decode 0

Nothing was decoded.