Exceptions
Exception
Symfony\Component\Serializer\Exception\ UnsupportedFormatException
in
vendor/symfony/serializer/Serializer.php
(line 127)
}final public function serialize(mixed $data, string $format, array $context = []): string{if (!$this->supportsEncoding($format, $context)) {throw new UnsupportedFormatException(\sprintf('Serialization for the format "%s" is not supported.', $format));}if ($this->encoder->needsNormalization($format, $context)) {$data = $this->normalize($data, $format, $context);}
in
vendor/symfony/serializer/Debug/TraceableSerializer.php
->
serialize
(line 44)
public function serialize(mixed $data, string $format, array $context = []): string{$context[self::DEBUG_TRACE_ID] = $traceId = bin2hex(random_bytes(4));$startTime = microtime(true);$result = $this->serializer->serialize($data, $format, $context);$time = microtime(true) - $startTime;$caller = $this->getCaller(__FUNCTION__, SerializerInterface::class);$this->dataCollector->collectSerialize($traceId, $data, $format, $context, $time, $caller, $this->serializerName);
in
vendor/api-platform/state/Processor/SerializeProcessor.php
->
serialize
(line 85)
$resourcesToPush = new ResourceList();$serializerContext['resources_to_push'] = &$resourcesToPush;$serializerContext[AbstractObjectNormalizer::EXCLUDE_FROM_CACHE_KEY][] = 'resources_to_push';$serialized = $this->serializer->serialize($data, $request->getRequestFormat(), $serializerContext);$request->attributes->set('_resources', $request->attributes->get('_resources', []) + (array) $resources);if (\count($resourcesToPush)) {$linkProvider = $request->attributes->get('_api_platform_links', new GenericLinkProvider());foreach ($resourcesToPush as $resourceToPush) {$linkProvider = $linkProvider->withLink((new Link('preload', $resourceToPush))->withAttribute('as', 'fetch'));
in
vendor/api-platform/state/Processor/WriteProcessor.php
->
process
(line 54)
if ($data instanceof Response|| !($operation->canWrite() ?? true)|| !$operation->getProcessor()) {return $this->processor ? $this->processor->process($data, $operation, $uriVariables, $context) : $data;}$this->stopwatch?->start('api_platform.processor.write');$data = $this->callableProcessor->process($data, $operation, $uriVariables, $context);$this->stopwatch?->stop('api_platform.processor.write');
in
vendor/api-platform/symfony/Validator/State/ValidateProcessor.php
->
process
(line 51)
// Only validate at the processor level when ObjectMapper is used (canMap() is true).// Without ObjectMapper, ValidateProvider already handles validation in the provider chain,// so running it again here would cause duplicate external API calls and DB queries.if (!$operation->canMap()) {return $this->decorated ? $this->decorated->process($data, $operation, $uriVariables, $context) : $data;}$this->validator->validate($data, $operation->getValidationContext() ?? []);return $this->decorated ? $this->decorated->process($data, $operation, $uriVariables, $context) : $data;
in
vendor/api-platform/symfony/Action/EntrypointAction.php
->
process
(line 61)
);$request->attributes->set('_api_operation', $operation);$body = $this->provider->provide($operation, [], $context);$operation = $request->attributes->get('_api_operation');return $this->processor->process($body, $operation, [], $context);}public function provide(): Entrypoint{return new Entrypoint($this->resourceNameCollection);
in
vendor/symfony/http-kernel/HttpKernel.php
->
__invoke
(line 183)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response, $event);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 76)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);$response = null;try {return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {if ($e instanceof \Error && !$this->handleAllThrowables) {throw $e;}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 193)
if (!$this->handlingHttpCache) {$this->resetServices = true;}try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 34)
) {}public function run(): int{$response = $this->kernel->handle($this->request);$response->send(false);if (\function_exists('fastcgi_finish_request') && !$this->debug) {fastcgi_finish_request();
in
vendor/autoload_runtime.php
->
run
(line 32)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
<?phpuse App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return static function (array $context) {return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 21:56:56 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "bc6fd6"
},
"request_uri": "https://admin-a-la-carte.wevoria.com/_profiler/bc6fd6",
"method": "GET"
}
|
Stack Trace
|
UnsupportedFormatException
|
|---|
Symfony\Component\Serializer\Exception\UnsupportedFormatException:
Serialization for the format "jsonld" is not supported.
at vendor/symfony/serializer/Serializer.php:127
at Symfony\Component\Serializer\Serializer->serialize()
(vendor/symfony/serializer/Debug/TraceableSerializer.php:44)
at Symfony\Component\Serializer\Debug\TraceableSerializer->serialize()
(vendor/api-platform/state/Processor/SerializeProcessor.php:85)
at ApiPlatform\State\Processor\SerializeProcessor->process()
(vendor/api-platform/state/Processor/WriteProcessor.php:54)
at ApiPlatform\State\Processor\WriteProcessor->process()
(vendor/api-platform/symfony/Validator/State/ValidateProcessor.php:51)
at ApiPlatform\Symfony\Validator\State\ValidateProcessor->process()
(vendor/api-platform/symfony/Action/EntrypointAction.php:61)
at ApiPlatform\Symfony\Action\EntrypointAction->__invoke()
(vendor/symfony/http-kernel/HttpKernel.php:183)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:193)
at Symfony\Component\HttpKernel\Kernel->handle()
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:34)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:32)
at require_once('/var/www/admin-a-la-carte/vendor/autoload_runtime.php')
(public/index.php:5)
|