ApiPlatform\State\ApiResource\Error
Show contents
ApiPlatform\State\ApiResource\Error {#1492
#message: "An error occurred"
#code: 500
#file: "/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/api-platform/state/ApiResource/Error.php"
#line: 196
-id: null
-title: "An error occurred"
-detail: "ApiPlatform\Hydra\Serializer\PartialCollectionViewNormalizer::populateDataWithCursorBasedPagination(): Argument #3 ($object) must be of type Traversable, array given, called in /home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/api-platform/hydra/Serializer/PartialCollectionViewNormalizer.php on line 100"
-status: 500
-instance: null
-type: "/errors/500"
-headers: []
-meta: null
-source: null
+originalTrace: [
[
"file" => "/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/api-platform/hydra/Serializer/PartialCollectionViewNormalizer.php"
"line" => 100
"function" => "populateDataWithCursorBasedPagination"
"class" => "ApiPlatform\Hydra\Serializer\PartialCollectionViewNormalizer"
"type" => "->"
]
[
"file" => "/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/api-platform/hydra/Serializer/CollectionFiltersNormalizer.php"
"line" => 76
"function" => "normalize"
"class" => "ApiPlatform\Hydra\Serializer\PartialCollectionViewNormalizer"
"type" => "->"
]
[
"file" => "/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/symfony/serializer/Debug/TraceableNormalizer.php"
"line" => 50
"function" => "normalize"
"class" => "ApiPlatform\Hydra\Serializer\CollectionFiltersNormalizer"
"type" => "->"
]
[
"file" => "/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/symfony/serializer/Serializer.php"
"line" => 152
"function" => "normalize"
"class" => "Symfony\Component\Serializer\Debug\TraceableNormalizer"
"type" => "->"
]
[
"file" => "/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/symfony/serializer/Serializer.php"
"line" => 131
"function" => "normalize"
"class" => "Symfony\Component\Serializer\Serializer"
"type" => "->"
]
[
"file" => "/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/symfony/serializer/Debug/TraceableSerializer.php"
"line" => 44
"function" => "serialize"
"class" => "Symfony\Component\Serializer\Serializer"
"type" => "->"
]
[
"file" => "/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/api-platform/state/Processor/SerializeProcessor.php"
"line" => 74
"function" => "serialize"
"class" => "Symfony\Component\Serializer\Debug\TraceableSerializer"
"type" => "->"
]
[
"file" => "/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/api-platform/state/Processor/WriteProcessor.php"
"line" => 51
"function" => "process"
"class" => "ApiPlatform\State\Processor\SerializeProcessor"
"type" => "->"
]
[
"file" => "/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/api-platform/symfony/Controller/MainController.php"
"line" => 112
"function" => "process"
"class" => "ApiPlatform\State\Processor\WriteProcessor"
"type" => "->"
]
[
"file" => "/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/symfony/http-kernel/HttpKernel.php"
"line" => 183
"function" => "__invoke"
"class" => "ApiPlatform\Symfony\Controller\MainController"
"type" => "->"
]
[
"file" => "/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/symfony/http-kernel/HttpKernel.php"
"line" => 76
"function" => "handleRaw"
"class" => "Symfony\Component\HttpKernel\HttpKernel"
"type" => "->"
]
[
"file" => "/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/symfony/http-kernel/Kernel.php"
"line" => 182
"function" => "handle"
"class" => "Symfony\Component\HttpKernel\HttpKernel"
"type" => "->"
]
[
"file" => "/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php"
"line" => 35
"function" => "handle"
"class" => "Symfony\Component\HttpKernel\Kernel"
"type" => "->"
]
[
"file" => "/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/autoload_runtime.php"
"line" => 29
"function" => "run"
"class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
"type" => "->"
]
[
"file" => "/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/public/index.php"
"line" => 11
"function" => "require_once"
]
]
trace: {
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/api-platform/state/ApiResource/Error.php:196 {
ApiPlatform\State\ApiResource\Error::createFromException(Exception|Throwable $exception, int $status): self …
›
› return new self('An error occurred', $exception->getMessage(), $status, $exception->getTrace(), type: "/errors/$status", headers: $headers, previous: $exception->getPrevious());
› }
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/api-platform/state/ErrorProvider.php:76 {
ApiPlatform\State\ErrorProvider->provide(Operation $operation, array $uriVariables = [], array $context = []): object …
› $cl = is_a($operation->getClass(), ErrorResourceInterface::class, true) ? $operation->getClass() : Error::class;
› $error = $cl::createFromException($exception, $status);
› if (!$this->debug && $status >= 500 && method_exists($error, 'setDetail')) {
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/api-platform/state/CallableProvider.php:43 {
ApiPlatform\State\CallableProvider->provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null …
›
› return $providerInstance->provide($operation, $uriVariables, $context);
› }
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/api-platform/state/Provider/ReadProvider.php:79 {
ApiPlatform\State\Provider\ReadProvider->provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null …
› try {
› $data = $this->provider->provide($operation, $uriVariables, $context);
› } catch (ProviderNotFoundException $e) {
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/api-platform/symfony/Bundle/SwaggerUi/SwaggerUiProvider.php:50 {
ApiPlatform\Symfony\Bundle\SwaggerUi\SwaggerUiProvider->provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null …
› ) {
› return $this->decorated->provide($operation, $uriVariables, $context);
› }
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/api-platform/symfony/Security/State/AccessCheckerProvider.php:62 {
ApiPlatform\Symfony\Security\State\AccessCheckerProvider->provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null …
›
› $body = $this->decorated->provide($operation, $uriVariables, $context);
› if (null === $isGranted) {
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/api-platform/state/Provider/SecurityParameterProvider.php:50 {
ApiPlatform\State\Provider\SecurityParameterProvider->provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null …
› {
› $body = $this->decorated->provide($operation, $uriVariables, $context);
› $request = $context['request'] ?? null;
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/api-platform/state/Provider/DeserializeProvider.php:56 {
ApiPlatform\State\Provider\DeserializeProvider->provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null …
›
› $data = $this->decorated ? $this->decorated->provide($operation, $uriVariables, $context) : $request->attributes->get('data');
›
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/api-platform/symfony/Security/State/AccessCheckerProvider.php:62 {
ApiPlatform\Symfony\Security\State\AccessCheckerProvider->provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null …
›
› $body = $this->decorated->provide($operation, $uriVariables, $context);
› if (null === $isGranted) {
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/api-platform/symfony/Validator/State/ValidateProvider.php:32 {
ApiPlatform\Symfony\Validator\State\ValidateProvider->provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null …
› {
› $body = $this->decorated?->provide($operation, $uriVariables, $context) ?? ($context['request'] ?? null)?->attributes->get('data');
›
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/api-platform/symfony/Security/State/AccessCheckerProvider.php:62 {
ApiPlatform\Symfony\Security\State\AccessCheckerProvider->provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null …
›
› $body = $this->decorated->provide($operation, $uriVariables, $context);
› if (null === $isGranted) {
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/api-platform/symfony/Validator/State/ParameterValidatorProvider.php:102 {
ApiPlatform\Symfony\Validator\State\ParameterValidatorProvider->provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null …
›
› return $this->decorated->provide($operation, $uriVariables, $context);
› }
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/api-platform/state/Provider/ParameterProvider.php:99 {
ApiPlatform\State\Provider\ParameterProvider->provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null …
›
› return $this->decorated?->provide($operation, $uriVariables, $context);
› }
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/api-platform/state/Provider/ContentNegotiationProvider.php:51 {
ApiPlatform\State\Provider\ContentNegotiationProvider->provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null …
›
› return $this->decorated?->provide($operation, $uriVariables, $context);
› }
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/api-platform/symfony/Controller/MainController.php:83 {
ApiPlatform\Symfony\Controller\MainController->__invoke(Request $request): Response …
›
› $body = $this->provider->provide($operation, $uriVariables, $context);
›
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/symfony/http-kernel/HttpKernel.php:183 {
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
› // call controller
› $response = $controller(...$arguments);
›
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/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) {
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/symfony/http-kernel/EventListener/ErrorListener.php:99 {
Symfony\Component\HttpKernel\EventListener\ErrorListener->onKernelException(ExceptionEvent $event): void …
› try {
› $response = $event->getKernel()->handle($request, HttpKernelInterface::SUB_REQUEST, false);
› } catch (\Exception $e) {
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/api-platform/symfony/EventListener/ExceptionListener.php:50 {
ApiPlatform\Symfony\EventListener\ExceptionListener->onKernelException(ExceptionEvent $event): void …
›
› $this->errorListener->onKernelException($event);
› }
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/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 {
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/symfony/event-dispatcher/EventDispatcher.php:206 {
Symfony\Component\EventDispatcher\EventDispatcher->callListeners(iterable $listeners, string $eventName, object $event): void …
› }
› $listener($event, $eventName, $this);
› }
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/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);
› }
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:126 {
Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object $event, ?string $eventName = null): object …
› try {
› $this->dispatcher->dispatch($event, $eventName);
› } finally {
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/symfony/http-kernel/HttpKernel.php:241 {
Symfony\Component\HttpKernel\HttpKernel->handleThrowable(Throwable $e, Request $request, int $type): Response …
› $event = new ExceptionEvent($this, $request, $type, $e, isKernelTerminating: $this->terminating);
› $this->dispatcher->dispatch($event, KernelEvents::EXCEPTION);
›
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/symfony/http-kernel/HttpKernel.php:91 {
Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
›
› return $response = $this->handleThrowable($e, $request, $type);
› } finally {
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/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 {
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
› {
› $response = $this->kernel->handle($this->request);
›
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/autoload_runtime.php:29 {
require_once …
› ->getRunner($app)
› ->run()
› );
}
/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/public/index.php:11 {
›
› require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
›
arguments: {
"/home/u416871480/domains/atelier-des-prompts.fr/public_html/admin/vendor/autoload_runtime.php"
}
}
}
}
|
Format: jsonld
Show context
[
"openapi_definition_name" => ""
"groups" => [
"jsonld"
"trace"
]
"skip_null_values" => true
"ignored_attributes" => [
"trace"
"file"
"line"
"code"
"message"
"traceAsString"
"previous"
]
"api_error_resource" => true
"operation_name" => "_api_errors_hydra"
"operation" => ApiPlatform\Metadata\Error {#1491
#parameters: null
#shortName: "Error"
#class: "ApiPlatform\State\ApiResource\Error"
#description: "A representation of common errors."
#urlGenerationStrategy: null
#deprecationReason: null
#normalizationContext: [
"openapi_definition_name" => ""
"groups" => [
"jsonld"
]
"skip_null_values" => true
"ignored_attributes" => [
"trace"
"file"
"line"
"code"
"message"
"traceAsString"
"previous"
]
"api_error_resource" => true
]
#denormalizationContext: null
#collectDenormalizationErrors: null
#validationContext: null
#filters: []
#mercure: null
#messenger: null
#input: null
#output: null
#order: null
#fetchPartial: null
#forceEager: null
#paginationEnabled: null
#paginationType: null
#paginationItemsPerPage: null
#paginationMaximumItemsPerPage: null
#paginationPartial: null
#paginationClientEnabled: null
#paginationClientItemsPerPage: null
#paginationClientPartial: null
#paginationFetchJoinCollection: null
#paginationUseOutputWalkers: null
#security: null
#securityMessage: null
#securityPostDenormalize: null
#securityPostDenormalizeMessage: null
#securityPostValidation: null
#securityPostValidationMessage: null
#provider: "api_platform.state.error_provider"
#processor: null
#stateOptions: null
#rules: null
#policy: null
#middleware: null
#queryParameterValidationEnabled: null
#strictQueryParameterValidation: null
#hideHydraOperation: null
#extraProperties: [
"user_defined_uri_template" => true
]
#paginationViaCursor: null
#read: true
#deserialize: false
#validate: false
#write: false
#serialize: true
#priority: 1
#name: "_api_errors_hydra"
#method: "GET"
#uriTemplate: "/errors/{status}{._format}"
#types: null
#formats: null
#inputFormats: [
"jsonld" => [
"application/ld+json"
]
"json" => [
"application/json"
]
"html" => [
"text/html"
]
]
#outputFormats: [
"jsonld" => [
"application/problem+json"
"application/ld+json"
]
]
#uriVariables: [
"status" => ApiPlatform\Metadata\Link {#1343
#key: null
#schema: null
#openApi: null
#provider: null
#filter: null
#property: null
#description: null
#properties: null
#required: null
#priority: null
#hydra: null
#constraints: null
#security: null
#securityMessage: null
#extraProperties: [
"_api_values" => ApiPlatform\State\ParameterNotFound {#1494}
]
#filterContext: null
#nativeType: null
#castToArray: null
#castToNativeType: null
#castFn: null
-parameterName: "status"
-fromProperty: null
-toProperty: null
-fromClass: "ApiPlatform\State\ApiResource\Error"
-toClass: null
-identifiers: [
"status"
]
-compositeIdentifier: null
-expandedValue: null
-securityObjectName: null
}
]
#routePrefix: null
#routeName: "_api_errors"
#defaults: null
#requirements: [
"status" => "\d+"
]
#options: null
#stateless: null
#sunset: null
#acceptPatch: null
#status: 500
#host: null
#schemes: null
#condition: null
#controller: null
#headers: null
#cacheHeaders: null
#hydraContext: null
#openapi: false
#exceptionToStatus: null
#links: [
Symfony\Component\WebLink\Link {#1342
-rel: [
"http://www.w3.org/ns/json-ld#error" => "http://www.w3.org/ns/json-ld#error"
]
-attributes: []
-href: "http://www.w3.org/ns/hydra/error"
}
]
#errors: []
}
"resource_class" => "ApiPlatform\State\ApiResource\Error"
"iri_only" => false
"request_uri" => "/api/products?shop=19"
"uri" => "https://admin.atelier-des-prompts.fr/api/products?shop=19"
"input" => null
"output" => null
"uri_variables" => []
"exclude_from_cache_key" => [
"root_operation"
"operation"
"object"
"data"
"property_metadata"
"circular_reference_limit_counters"
"debug_trace_id"
"resources"
"resources_to_push"
]
"api_gateway" => false
"base_url" => ""
"spec_version" => ""
"resources" => ApiPlatform\State\ResourceList {#1489
storage: [
"/api/errors/500" => "/api/errors/500"
]
flag::STD_PROP_LIST: false
flag::ARRAY_AS_PROPS: false
iteratorClass: "ArrayIterator"
}
"resources_to_push" => ApiPlatform\State\ResourceList {#1490
storage: []
flag::STD_PROP_LIST: false
flag::ARRAY_AS_PROPS: false
iteratorClass: "ArrayIterator"
}
]
|
ErrorNormalizer (1.36 ms)
|
JsonEncoder (0.02 ms)
|
1.41 ms
|
SerializeProcessor.php
line 74
$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) {
|