Error 406 Not Acceptable

GET https://prod2024.esas-study.ch/wp-json/gravitysmtp/v1/tests/mock-data

Serializer

1 Handled
0.16 ms Total time

default 1

serialize 1

Data Context Normalizer Encoder Time Caller
Symfony\Component\ErrorHandler\Exception\FlattenException
Show contents
Symfony\Component\ErrorHandler\Exception\FlattenException {#865
  -message: "No matching accepted Response format could be determined"
  -code: 0
  -previous: null
  -trace: [
    [
      "namespace" => ""
      "short_class" => ""
      "class" => ""
      "type" => ""
      "function" => ""
      "file" => "/var/www/esas-study_ch/www/vendor/friendsofsymfony/rest-bundle/EventListener/FormatListener.php"
      "line" => 58
      "args" => []
    ]
    [
      "namespace" => "FOS\RestBundle\EventListener"
      "short_class" => "FormatListener"
      "class" => "FOS\RestBundle\EventListener\FormatListener"
      "type" => "->"
      "function" => "onKernelRequest"
      "file" => "/var/www/esas-study_ch/www/vendor/symfony/event-dispatcher/Debug/WrappedListener.php"
      "line" => 115
      "args" => [
        [
          "object"
          "Symfony\Component\HttpKernel\Event\RequestEvent"
        ]
        [
          "string"
          "kernel.request"
        ]
        [
          "object"
          "Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher"
        ]
      ]
    ]
    [
      "namespace" => "Symfony\Component\EventDispatcher\Debug"
      "short_class" => "WrappedListener"
      "class" => "Symfony\Component\EventDispatcher\Debug\WrappedListener"
      "type" => "->"
      "function" => "__invoke"
      "file" => "/var/www/esas-study_ch/www/vendor/symfony/event-dispatcher/EventDispatcher.php"
      "line" => 206
      "args" => [
        [
          "object"
          "Symfony\Component\HttpKernel\Event\RequestEvent"
        ]
        [
          "string"
          "kernel.request"
        ]
        [
          "object"
          "Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher"
        ]
      ]
    ]
    [
      "namespace" => "Symfony\Component\EventDispatcher"
      "short_class" => "EventDispatcher"
      "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
      "type" => "->"
      "function" => "callListeners"
      "file" => "/var/www/esas-study_ch/www/vendor/symfony/event-dispatcher/EventDispatcher.php"
      "line" => 56
      "args" => [
        [
          "array"
          [
            [
              "object"
              "Symfony\Component\EventDispatcher\Debug\WrappedListener"
            ]
            [
              "object"
              "Symfony\Component\EventDispatcher\Debug\WrappedListener"
            ]
            [
              "object"
              "Symfony\Component\EventDispatcher\Debug\WrappedListener"
            ]
            [
              "object"
              "Symfony\Component\EventDispatcher\Debug\WrappedListener"
            ]
            [
              "object"
              "Symfony\Component\EventDispatcher\Debug\WrappedListener"
            ]
            [
              "object"
              "Symfony\Component\EventDispatcher\Debug\WrappedListener"
            ]
            [
              "object"
              "Symfony\Component\EventDispatcher\Debug\WrappedListener"
            ]
            [
              "object"
              "Symfony\Component\EventDispatcher\Debug\WrappedListener"
            ]
            [
              "object"
              "Symfony\Component\EventDispatcher\Debug\WrappedListener"
            ]
            [
              "object"
              "Symfony\Component\EventDispatcher\Debug\WrappedListener"
            ]
            [
              "object"
              "Symfony\Component\EventDispatcher\Debug\WrappedListener"
            ]
            [
              "object"
              "Symfony\Component\EventDispatcher\Debug\WrappedListener"
            ]
            [
              "object"
              "Symfony\Component\EventDispatcher\Debug\WrappedListener"
            ]
            [
              "object"
              "Symfony\Component\EventDispatcher\Debug\WrappedListener"
            ]
          ]
        ]
        [
          "string"
          "kernel.request"
        ]
        [
          "object"
          "Symfony\Component\HttpKernel\Event\RequestEvent"
        ]
      ]
    ]
    [
      "namespace" => "Symfony\Component\EventDispatcher"
      "short_class" => "EventDispatcher"
      "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
      "type" => "->"
      "function" => "dispatch"
      "file" => "/var/www/esas-study_ch/www/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php"
      "line" => 122
      "args" => [
        [
          "object"
          "Symfony\Component\HttpKernel\Event\RequestEvent"
        ]
        [
          "string"
          "kernel.request"
        ]
      ]
    ]
    [
      "namespace" => "Symfony\Component\EventDispatcher\Debug"
      "short_class" => "TraceableEventDispatcher"
      "class" => "Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher"
      "type" => "->"
      "function" => "dispatch"
      "file" => "/var/www/esas-study_ch/www/vendor/symfony/http-kernel/HttpKernel.php"
      "line" => 159
      "args" => [
        [
          "object"
          "Symfony\Component\HttpKernel\Event\RequestEvent"
        ]
        [
          "string"
          "kernel.request"
        ]
      ]
    ]
    [
      "namespace" => "Symfony\Component\HttpKernel"
      "short_class" => "HttpKernel"
      "class" => "Symfony\Component\HttpKernel\HttpKernel"
      "type" => "->"
      "function" => "handleRaw"
      "file" => "/var/www/esas-study_ch/www/vendor/symfony/http-kernel/HttpKernel.php"
      "line" => 76
      "args" => [
        [
          "object"
          "Symfony\Component\HttpFoundation\Request"
        ]
        [
          "integer"
          1
        ]
      ]
    ]
    [
      "namespace" => "Symfony\Component\HttpKernel"
      "short_class" => "HttpKernel"
      "class" => "Symfony\Component\HttpKernel\HttpKernel"
      "type" => "->"
      "function" => "handle"
      "file" => "/var/www/esas-study_ch/www/vendor/symfony/http-kernel/Kernel.php"
      "line" => 182
      "args" => [
        [
          "object"
          "Symfony\Component\HttpFoundation\Request"
        ]
        [
          "integer"
          1
        ]
        [
          "boolean"
          true
        ]
      ]
    ]
    [
      "namespace" => "Symfony\Component\HttpKernel"
      "short_class" => "Kernel"
      "class" => "Symfony\Component\HttpKernel\Kernel"
      "type" => "->"
      "function" => "handle"
      "file" => "/var/www/esas-study_ch/www/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php"
      "line" => 35
      "args" => [
        [
          "object"
          "Symfony\Component\HttpFoundation\Request"
        ]
      ]
    ]
    [
      "namespace" => "Symfony\Component\Runtime\Runner\Symfony"
      "short_class" => "HttpKernelRunner"
      "class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
      "type" => "->"
      "function" => "run"
      "file" => "/var/www/esas-study_ch/www/vendor/autoload_runtime.php"
      "line" => 29
      "args" => []
    ]
    [
      "namespace" => ""
      "short_class" => ""
      "class" => ""
      "type" => ""
      "function" => "require_once"
      "file" => "/var/www/esas-study_ch/www/public/index.php"
      "line" => 5
      "args" => [
        [
          "string"
          "/var/www/esas-study_ch/www/vendor/autoload_runtime.php"
        ]
      ]
    ]
  ]
  -traceAsString: """
    #0 /var/www/esas-study_ch/www/vendor/symfony/event-dispatcher/Debug/WrappedListener.php(115): FOS\RestBundle\EventListener\FormatListener->onKernelRequest(Object(Symfony\Component\HttpKernel\Event\RequestEvent), 'kernel.request', Object(Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher))\n
    #1 /var/www/esas-study_ch/www/vendor/symfony/event-dispatcher/EventDispatcher.php(206): Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(Object(Symfony\Component\HttpKernel\Event\RequestEvent), 'kernel.request', Object(Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher))\n
    #2 /var/www/esas-study_ch/www/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, 'kernel.request', Object(Symfony\Component\HttpKernel\Event\RequestEvent))\n
    #3 /var/www/esas-study_ch/www/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php(122): Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\RequestEvent), 'kernel.request')\n
    #4 /var/www/esas-study_ch/www/vendor/symfony/http-kernel/HttpKernel.php(159): Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\RequestEvent), 'kernel.request')\n
    #5 /var/www/esas-study_ch/www/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)\n
    #6 /var/www/esas-study_ch/www/vendor/symfony/http-kernel/Kernel.php(182): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)\n
    #7 /var/www/esas-study_ch/www/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php(35): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request))\n
    #8 /var/www/esas-study_ch/www/vendor/autoload_runtime.php(29): Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()\n
    #9 /var/www/esas-study_ch/www/public/index.php(5): require_once('/var/www/esas-s...')\n
    #10 {main}
    """
  -class: "Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException"
  -statusCode: 406
  -statusText: "Not Acceptable"
  -headers: [
    "Vary" => "Accept"
    "X-Debug-Exception" => "No%20matching%20accepted%20Response%20format%20could%20be%20determined"
    "X-Debug-Exception-File" => "%2Fvar%2Fwww%2Fesas-study_ch%2Fwww%2Fvendor%2Ffriendsofsymfony%2Frest-bundle%2FEventListener%2FFormatListener.php:58"
    "Content-Type" => "application/json"
  ]
  -file: "/var/www/esas-study_ch/www/vendor/friendsofsymfony/rest-bundle/EventListener/FormatListener.php"
  -line: 58
  -asString: "{"type":"https:\/\/tools.ietf.org\/html\/rfc2616#section-10","title":"An error occurred","status":406,"detail":"No matching accepted Response format could be determined","class":"Symfony\\Component\\HttpKernel\\Exception\\NotAcceptableHttpException","trace":[{"namespace":"","short_class":"","class":"","type":"","function":"","file":"\/var\/www\/esas-study_ch\/www\/vendor\/friendsofsymfony\/rest-bundle\/EventListener\/FormatListener.php","line":58,"args":[]},{"namespace":"FOS\\RestBundle\\EventListener","short_class":"FormatListener","class":"FOS\\RestBundle\\EventListener\\FormatListener","type":"->","function":"onKernelRequest","file":"\/var\/www\/esas-study_ch\/www\/vendor\/symfony\/event-dispatcher\/Debug\/WrappedListener.php","line":115,"args":[["object","Symfony\\Component\\HttpKernel\\Event\\RequestEvent"],["string","kernel.request"],["object","Symfony\\Component\\HttpKernel\\Debug\\TraceableEventDispatcher"]]},{"namespace":"Symfony\\Component\\EventDispatcher\\Debug","short_class":"WrappedListener","class":"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener","type":"->","function":"__invoke","file":"\/var\/www\/esas-study_ch\/www\/vendor\/symfony\/event-dispatcher\/EventDispatcher.php","line":206,"args":[["object","Symfony\\Component\\HttpKernel\\Event\\RequestEvent"],["string","kernel.request"],["object","Symfony\\Component\\HttpKernel\\Debug\\TraceableEventDispatcher"]]},{"namespace":"Symfony\\Component\\EventDispatcher","short_class":"EventDispatcher","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","function":"callListeners","file":"\/var\/www\/esas-study_ch\/www\/vendor\/symfony\/event-dispatcher\/EventDispatcher.php","line":56,"args":[["array",[["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"]]],["string","kernel.request"],["object","Symfony\\Component\\HttpKernel\\Event\\RequestEvent"]]},{"namespace":"Symfony\\Component\\EventDispatcher","short_class":"EventDispatcher","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","function":"dispatch","file":"\/var\/www\/esas-study_ch\/www\/vendor\/symfony\/event-dispatcher\/Debug\/TraceableEventDispatcher.php","line":122,"args":[["object","Symfony\\Component\\HttpKernel\\Event\\RequestEvent"],["string","kernel.request"]]},{"namespace":"Symfony\\Component\\EventDispatcher\\Debug","short_class":"TraceableEventDispatcher","class":"Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcher","type":"->","function":"dispatch","file":"\/var\/www\/esas-study_ch\/www\/vendor\/symfony\/http-kernel\/HttpKernel.php","line":159,"args":[["object","Symfony\\Component\\HttpKernel\\Event\\RequestEvent"],["string","kernel.request"]]},{"namespace":"Symfony\\Component\\HttpKernel","short_class":"HttpKernel","class":"Symfony\\Component\\HttpKernel\\HttpKernel","type":"->","function":"handleRaw","file":"\/var\/www\/esas-study_ch\/www\/vendor\/symfony\/http-kernel\/HttpKernel.php","line":76,"args":[["object","Symfony\\Component\\HttpFoundation\\Request"],["integer",1]]},{"namespace":"Symfony\\Component\\HttpKernel","short_class":"HttpKernel","class":"Symfony\\Component\\HttpKernel\\HttpKernel","type":"->","function":"handle","file":"\/var\/www\/esas-study_ch\/www\/vendor\/symfony\/http-kernel\/Kernel.php","line":182,"args":[["object","Symfony\\Component\\HttpFoundation\\Request"],["integer",1],["boolean",true]]},{"namespace":"Symfony\\Component\\HttpKernel","short_class":"Kernel","class":"Symfony\\Component\\HttpKernel\\Kernel","type":"->","function":"handle","file":"\/var\/www\/esas-study_ch\/www\/vendor\/symfony\/runtime\/Runner\/Symfony\/HttpKernelRunner.php","line":35,"args":[["object","Symfony\\Component\\HttpFoundation\\Request"]]},{"namespace":"Symfony\\Component\\Runtime\\Runner\\Symfony","short_class":"HttpKernelRunner","class":"Symfony\\Component\\Runtime\\Runner\\Symfony\\HttpKernelRunner","type":"->","function":"run","file":"\/var\/www\/esas-study_ch\/www\/vendor\/autoload_runtime.php","line":29,"args":[]},{"namespace":"","short_class":"","class":"","type":"","function":"require_once","file":"\/var\/www\/esas-study_ch\/www\/public\/index.php","line":5,"args":[["string","\/var\/www\/esas-study_ch\/www\/vendor\/autoload_runtime.php"]]}]}"
  -dataRepresentation: ? Symfony\Component\VarDumper\Cloner\Data
}
Format: json
Show context
[
  "exception" => Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException {#571
    #message: "No matching accepted Response format could be determined"
    #code: 0
    #file: "/var/www/esas-study_ch/www/vendor/friendsofsymfony/rest-bundle/EventListener/FormatListener.php"
    #line: 58
    -statusCode: 406
    -headers: []
    trace: {
      /var/www/esas-study_ch/www/vendor/friendsofsymfony/rest-bundle/EventListener/FormatListener.php:58 {
        FOS\RestBundle\EventListener\FormatListener->onKernelRequest(RequestEvent $event): void …
        › if ($event->isMainRequest()) {
        ›     throw new NotAcceptableHttpException('No matching accepted Response format could be determined');
        › }
      }
      /var/www/esas-study_ch/www/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115 {
        Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object $event, string $eventName, EventDispatcherInterface $dispatcher): void …
        › try {
        ›     ($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
        › } finally {
        arguments: {
          $event: Symfony\Component\HttpKernel\Event\RequestEvent {#182 …}
          ...: {
            "kernel.request"
            Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher {#101 …}
          }
        }
      }
      /var/www/esas-study_ch/www/vendor/symfony/event-dispatcher/EventDispatcher.php:206 {
        Symfony\Component\EventDispatcher\EventDispatcher->callListeners(iterable $listeners, string $eventName, object $event): void …
        ›     }
        ›     $listener($event, $eventName, $this);
        › }
        arguments: {
          $event: Symfony\Component\HttpKernel\Event\RequestEvent {#182 …}
          $eventName: "kernel.request"
          $dispatcher: Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher {#101 …}
        }
      }
      /var/www/esas-study_ch/www/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);
        › }
        arguments: {
          $listeners: [ …14]
          $eventName: "kernel.request"
          $event: Symfony\Component\HttpKernel\Event\RequestEvent {#182 …}
        }
      }
      /var/www/esas-study_ch/www/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:122 {
        Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object $event, ?string $eventName = null): object …
        › try {
        ›     $this->dispatcher->dispatch($event, $eventName);
        › } finally {
        arguments: {
          $event: Symfony\Component\HttpKernel\Event\RequestEvent {#182 …}
          $eventName: "kernel.request"
        }
      }
      /var/www/esas-study_ch/www/vendor/symfony/http-kernel/HttpKernel.php:159 {
        Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
        › $event = new RequestEvent($this, $request, $type);
        › $this->dispatcher->dispatch($event, KernelEvents::REQUEST);
        › 
        arguments: {
          $event: Symfony\Component\HttpKernel\Event\RequestEvent {#182 …}
          $eventName: "kernel.request"
        }
      }
      /var/www/esas-study_ch/www/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) {
        arguments: {
          $request: Symfony\Component\HttpFoundation\Request {#2 …}
          $type: 1
        }
      }
      /var/www/esas-study_ch/www/vendor/symfony/http-kernel/Kernel.php:182 {
        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 {
        arguments: {
          $request: Symfony\Component\HttpFoundation\Request {#2 …}
          $type: 1
          $catch: true
        }
      }
      /var/www/esas-study_ch/www/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
        Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
        › {
        ›     $response = $this->kernel->handle($this->request);
        › 
        arguments: {
          $request: Symfony\Component\HttpFoundation\Request {#2 …}
        }
      }
      /var/www/esas-study_ch/www/vendor/autoload_runtime.php:29 {
        require_once …
        ›         ->getRunner($app)
        ›         ->run()
        › );
      }
      /var/www/esas-study_ch/www/public/index.php:5 {
        › 
        › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
        › 
        arguments: {
          "/var/www/esas-study_ch/www/vendor/autoload_runtime.php"
        }
      }
    }
  }
  "debug" => true
]
ProblemNormalizer (0.01 ms) JsonEncoder (0.03 ms) 0.16 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.