ApiPlatform\State\ApiResource\Error
Show contents
ApiPlatform\State\ApiResource\Error {#1071
#message: "An error occurred"
#code: 401
#file: "/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/api-platform/core/src/State/ApiResource/Error.php"
#line: 110
-previous: Symfony\Component\Security\Core\Exception\InsufficientAuthenticationException {#979 …}
-title: "An error occurred"
-detail: "Full authentication is required to access this resource."
-status: 401
-instance: null
-type: "/errors/401"
-headers: []
+originalTrace: [
[
"file" => "/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/symfony/security-http/Firewall/ExceptionListener.php"
"line" => 189
"function" => "throwUnauthorizedException"
"class" => "Symfony\Component\Security\Http\Firewall\ExceptionListener"
"type" => "->"
]
[
"file" => "/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/symfony/security-http/Firewall/ExceptionListener.php"
"line" => 148
"function" => "startAuthentication"
"class" => "Symfony\Component\Security\Http\Firewall\ExceptionListener"
"type" => "->"
]
[
"file" => "/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/symfony/security-http/Firewall/ExceptionListener.php"
"line" => 103
"function" => "handleAccessDeniedException"
"class" => "Symfony\Component\Security\Http\Firewall\ExceptionListener"
"type" => "->"
]
[
"file" => "/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/symfony/event-dispatcher/Debug/WrappedListener.php"
"line" => 116
"function" => "onKernelException"
"class" => "Symfony\Component\Security\Http\Firewall\ExceptionListener"
"type" => "->"
]
[
"file" => "/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/symfony/event-dispatcher/EventDispatcher.php"
"line" => 220
"function" => "__invoke"
"class" => "Symfony\Component\EventDispatcher\Debug\WrappedListener"
"type" => "->"
]
[
"file" => "/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/symfony/event-dispatcher/EventDispatcher.php"
"line" => 56
"function" => "callListeners"
"class" => "Symfony\Component\EventDispatcher\EventDispatcher"
"type" => "->"
]
[
"file" => "/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php"
"line" => 139
"function" => "dispatch"
"class" => "Symfony\Component\EventDispatcher\EventDispatcher"
"type" => "->"
]
[
"file" => "/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/symfony/http-kernel/HttpKernel.php"
"line" => 239
"function" => "dispatch"
"class" => "Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher"
"type" => "->"
]
[
"file" => "/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/symfony/http-kernel/HttpKernel.php"
"line" => 91
"function" => "handleThrowable"
"class" => "Symfony\Component\HttpKernel\HttpKernel"
"type" => "->"
]
[
"file" => "/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/symfony/http-kernel/Kernel.php"
"line" => 197
"function" => "handle"
"class" => "Symfony\Component\HttpKernel\HttpKernel"
"type" => "->"
]
[
"file" => "/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php"
"line" => 35
"function" => "handle"
"class" => "Symfony\Component\HttpKernel\Kernel"
"type" => "->"
]
[
"file" => "/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/autoload_runtime.php"
"line" => 29
"function" => "run"
"class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
"type" => "->"
]
[
"file" => "/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/public/index.php"
"line" => 5
"function" => "require_once"
]
]
trace: {
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/api-platform/core/src/State/ApiResource/Error.php:110 {
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());
› }
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/src/State/ErrorProvider.php:27 {
App\State\ErrorProvider->provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null …
› // You don't have to use this, you can use a Response, an array or any object (preferably a resource that API Platform can handle).
› $error = Error::createFromException($exception, $status);
›
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/api-platform/core/src/State/CallableProvider.php:43 {
ApiPlatform\State\CallableProvider->provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null …
›
› return $providerInstance->provide($operation, $uriVariables, $context);
› }
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/api-platform/core/src/State/Provider/ReadProvider.php:80 {
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) {
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/api-platform/core/src/Symfony/Validator/State/ParameterValidatorProvider.php:86 {
ApiPlatform\Symfony\Validator\State\ParameterValidatorProvider->provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null …
›
› return $this->decorated->provide($operation, $uriVariables, $context);
› }
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/api-platform/core/src/State/Provider/ParameterProvider.php:104 {
ApiPlatform\State\Provider\ParameterProvider->provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null …
›
› return $this->decorated?->provide($operation, $uriVariables, $context);
› }
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/api-platform/core/src/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);
› }
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/api-platform/core/src/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) {
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/api-platform/core/src/State/Provider/SecurityParameterProvider.php:39 {
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;
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/api-platform/core/src/Symfony/EventListener/ReadListener.php:95 {
ApiPlatform\Symfony\EventListener\ReadListener->onKernelRequest(RequestEvent $event): void …
› $request->attributes->set('_api_uri_variables', $uriVariables);
› $this->provider->provide($operation, $uriVariables, [
› 'request' => $request,
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/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 {
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/symfony/event-dispatcher/EventDispatcher.php:220 {
Symfony\Component\EventDispatcher\EventDispatcher->callListeners(iterable $listeners, string $eventName, object $event) …
› }
› $listener($event, $eventName, $this);
› }
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/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);
› }
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/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 {
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/symfony/http-kernel/HttpKernel.php:157 {
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);
›
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/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) {
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/symfony/http-kernel/EventListener/ErrorListener.php:117 {
Symfony\Component\HttpKernel\EventListener\ErrorListener->onKernelException(ExceptionEvent $event) …
› try {
› $response = $event->getKernel()->handle($request, HttpKernelInterface::SUB_REQUEST, false);
› } catch (\Exception $e) {
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/api-platform/core/src/Symfony/EventListener/ExceptionListener.php:50 {
ApiPlatform\Symfony\EventListener\ExceptionListener->onKernelException(ExceptionEvent $event): void …
›
› $this->errorListener->onKernelException($event);
› }
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/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 {
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/symfony/event-dispatcher/EventDispatcher.php:220 {
Symfony\Component\EventDispatcher\EventDispatcher->callListeners(iterable $listeners, string $eventName, object $event) …
› }
› $listener($event, $eventName, $this);
› }
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/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);
› }
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/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 {
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/symfony/http-kernel/HttpKernel.php:239 {
Symfony\Component\HttpKernel\HttpKernel->handleThrowable(Throwable $e, Request $request, int $type): Response …
› $event = new ExceptionEvent($this, $request, $type, $e);
› $this->dispatcher->dispatch($event, KernelEvents::EXCEPTION);
›
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/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 {
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/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 {
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
› {
› $response = $this->kernel->handle($this->request);
›
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/autoload_runtime.php:29 {
require_once …
› ->getRunner($app)
› ->run()
› );
}
/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/public/index.php:5 {
›
› require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
›
arguments: {
"/var/www/clients/client2/web89/web/260002-b1rnxobmw8-dev.campagnes-m-call.fr/vendor/autoload_runtime.php"
}
}
}
}
|
Format: jsonld
Show context
[
"groups" => [
"jsonld"
"trace"
]
"skip_null_values" => true
"rfc_7807_compliant_errors" => true
"api_error_resource" => true
"ignored_attributes" => [
"trace"
"file"
"line"
"code"
"message"
"traceAsString"
]
"operation_name" => "_api_errors_hydra"
"operation" => ApiPlatform\Metadata\Error {#1182
#parameters: null
#shortName: "Error"
#class: "ApiPlatform\State\ApiResource\Error"
#description: null
#urlGenerationStrategy: null
#deprecationReason: null
#normalizationContext: [
"groups" => [
"jsonld"
]
"skip_null_values" => true
"rfc_7807_compliant_errors" => true
"api_error_resource" => true
"ignored_attributes" => [
"trace"
"file"
"line"
"code"
"message"
"traceAsString"
]
]
#denormalizationContext: null
#collectDenormalizationErrors: null
#validationContext: null
#filters: []
#elasticsearch: null
#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
#queryParameterValidationEnabled: null
#extraProperties: [
"standard_put" => true
"rfc_7807_compliant_errors" => true
"user_defined_uri_template" => true
]
#paginationViaCursor: null
#read: true
#deserialize: null
#validate: null
#write: null
#serialize: true
#priority: 1
#name: "_api_errors_hydra"
#method: "GET"
#uriTemplate: "/errors/{status}"
#types: null
#formats: null
#inputFormats: [
"jsonld" => [
"application/ld+json"
]
]
#outputFormats: [
"jsonld" => [
"application/problem+json"
]
]
#uriVariables: [
"status" => ApiPlatform\Metadata\Link {#973
#key: null
#schema: null
#openApi: null
#provider: null
#filter: null
#property: null
#description: null
#required: null
#priority: null
#hydra: null
#constraints: null
#security: null
#securityMessage: null
#extraProperties: []
-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: null
#options: null
#stateless: true
#sunset: null
#acceptPatch: null
#status: 401
#host: null
#schemes: null
#condition: null
#controller: null
#headers: null
#cacheHeaders: [
"vary" => [
"Content-Type"
"Authorization"
"Origin"
]
]
#hydraContext: null
#openapiContext: null
#openapi: false
#exceptionToStatus: null
#links: [
Symfony\Component\WebLink\Link {#983
-href: "http://www.w3.org/ns/hydra/error"
-rel: [
"http://www.w3.org/ns/json-ld#error" => "http://www.w3.org/ns/json-ld#error"
]
-attributes: []
}
]
#errors: null
}
"resource_class" => "ApiPlatform\State\ApiResource\Error"
"iri_only" => false
"request_uri" => "/api/users/*"
"uri" => "http://260002-b1rnxobmw8-dev.campagnes-m-call.fr/api/users/*"
"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 {#1183
storage: [
"/api/errors/401" => "/api/errors/401"
]
flag::STD_PROP_LIST: false
flag::ARRAY_AS_PROPS: false
iteratorClass: "ArrayIterator"
}
"resources_to_push" => ApiPlatform\State\ResourceList {#1206
storage: []
flag::STD_PROP_LIST: false
flag::ARRAY_AS_PROPS: false
iteratorClass: "ArrayIterator"
}
]
|
ErrorNormalizer (2.63 ms)
|
JsonEncoder (0.02 ms)
|
2.71 ms
|
SerializeProcessor.php
line 79
$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) {
|