ApiPlatform\State\ApiResource\Error
Show contents
ApiPlatform\State\ApiResource\Error {#1577
#message: "An error occurred"
#code: 422
#file: "/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/api-platform/core/src/State/ApiResource/Error.php"
#line: 173
-previous: Symfony\Component\Validator\Exception\ValidationFailedException {#928 …}
-id: null
-title: "An error occurred"
-detail: "Имя пользователя может содержать только латинские символы и цифры."
-status: 422
-instance: null
-type: "/errors/422"
-headers: []
-meta: null
-source: null
+originalTrace: [
[
"file" => "/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/symfony/http-kernel/Controller/ArgumentResolver/RequestPayloadValueResolver.php"
"line" => 154
"function" => "fromStatusCode"
"class" => "Symfony\Component\HttpKernel\Exception\HttpException"
"type" => "::"
]
[
"file" => "/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/symfony/event-dispatcher/Debug/WrappedListener.php"
"line" => 115
"function" => "onKernelControllerArguments"
"class" => "Symfony\Component\HttpKernel\Controller\ArgumentResolver\RequestPayloadValueResolver"
"type" => "->"
]
[
"file" => "/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php"
"line" => 206
"function" => "__invoke"
"class" => "Symfony\Component\EventDispatcher\Debug\WrappedListener"
"type" => "->"
]
[
"file" => "/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php"
"line" => 56
"function" => "callListeners"
"class" => "Symfony\Component\EventDispatcher\EventDispatcher"
"type" => "->"
]
[
"file" => "/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php"
"line" => 122
"function" => "dispatch"
"class" => "Symfony\Component\EventDispatcher\EventDispatcher"
"type" => "->"
]
[
"file" => "/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/symfony/http-kernel/HttpKernel.php"
"line" => 178
"function" => "dispatch"
"class" => "Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher"
"type" => "->"
]
[
"file" => "/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/symfony/http-kernel/HttpKernel.php"
"line" => 76
"function" => "handleRaw"
"class" => "Symfony\Component\HttpKernel\HttpKernel"
"type" => "->"
]
[
"file" => "/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/symfony/http-kernel/Kernel.php"
"line" => 182
"function" => "handle"
"class" => "Symfony\Component\HttpKernel\HttpKernel"
"type" => "->"
]
[
"file" => "/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php"
"line" => 35
"function" => "handle"
"class" => "Symfony\Component\HttpKernel\Kernel"
"type" => "->"
]
[
"file" => "/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/autoload_runtime.php"
"line" => 29
"function" => "run"
"class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
"type" => "->"
]
[
"file" => "/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/public/index.php"
"line" => 5
"function" => "require_once"
]
]
trace: {
/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/api-platform/core/src/State/ApiResource/Error.php:173 {
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/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/api-platform/core/src/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/shared-backend/web/mikkiswim-api.itlabs.top/public_html/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);
› }
}
/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/api-platform/core/src/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/shared-backend/web/mikkiswim-api.itlabs.top/public_html/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);
› }
}
/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/api-platform/core/src/JsonApi/State/JsonApiProvider.php:30 {
ApiPlatform\JsonApi\State\JsonApiProvider->provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null …
› if (!$request || 'jsonapi' !== $request->getRequestFormat()) {
› return $this->decorated->provide($operation, $uriVariables, $context);
› }
}
/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/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) {
}
/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/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;
}
/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/api-platform/core/src/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/shared-backend/web/mikkiswim-api.itlabs.top/public_html/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) {
}
/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/api-platform/core/src/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/shared-backend/web/mikkiswim-api.itlabs.top/public_html/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) {
}
/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/api-platform/core/src/Symfony/Validator/State/ParameterValidatorProvider.php:94 {
ApiPlatform\Symfony\Validator\State\ParameterValidatorProvider->provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null …
›
› return $this->decorated->provide($operation, $uriVariables, $context);
› }
}
/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/api-platform/core/src/State/Provider/ParameterProvider.php:119 {
ApiPlatform\State\Provider\ParameterProvider->provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null …
›
› return $this->decorated?->provide($operation, $uriVariables, $context);
› }
}
/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/api-platform/core/src/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/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/api-platform/core/src/Symfony/Controller/MainController.php:83 {
ApiPlatform\Symfony\Controller\MainController->__invoke(Request $request): Response …
›
› $body = $this->provider->provide($operation, $uriVariables, $context);
›
}
/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/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/shared-backend/web/mikkiswim-api.itlabs.top/public_html/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/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/symfony/http-kernel/EventListener/ErrorListener.php:97 {
Symfony\Component\HttpKernel\EventListener\ErrorListener->onKernelException(ExceptionEvent $event): void …
› try {
› $response = $event->getKernel()->handle($request, HttpKernelInterface::SUB_REQUEST, false);
› } catch (\Exception $e) {
}
/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/api-platform/core/src/Symfony/EventListener/ExceptionListener.php:50 {
ApiPlatform\Symfony\EventListener\ExceptionListener->onKernelException(ExceptionEvent $event): void …
›
› $this->errorListener->onKernelException($event);
› }
}
/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/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/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:206 {
Symfony\Component\EventDispatcher\EventDispatcher->callListeners(iterable $listeners, string $eventName, object $event): void …
› }
› $listener($event, $eventName, $this);
› }
}
/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/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/shared-backend/web/mikkiswim-api.itlabs.top/public_html/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 {
}
/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/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/shared-backend/web/mikkiswim-api.itlabs.top/public_html/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/shared-backend/web/mikkiswim-api.itlabs.top/public_html/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/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
› {
› $response = $this->kernel->handle($this->request);
›
}
/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/vendor/autoload_runtime.php:29 {
require_once …
› ->getRunner($app)
› ->run()
› );
}
/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/public/index.php:5 {
› \r
› require_once dirname(__DIR__).'/vendor/autoload_runtime.php';\r
› \r
arguments: {
"/home/shared-backend/web/mikkiswim-api.itlabs.top/public_html/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 {#1600
#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: []
#elasticsearch: null
#mercure: null
#messenger: null
#input: null
#output: null
#order: null
#fetchPartial: null
#forceEager: null
#paginationEnabled: null
#paginationType: null
#paginationItemsPerPage: 25
#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: [
"json" => [
"application/json"
]
"jsonld" => [
"application/ld+json"
]
"jsonhal" => [
"application/hal+json"
]
"jsonapi" => [
"application/vnd.api+json"
]
"csv" => [
"text/csv"
]
"html" => [
"text/html"
]
"form-data" => [
"multipart/form-data"
]
]
#outputFormats: [
"jsonld" => [
"application/problem+json"
"application/ld+json"
]
]
#uriVariables: [
"status" => ApiPlatform\Metadata\Link {#1436
#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: []
#filterContext: 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: 422
#host: null
#schemes: null
#condition: null
#controller: null
#headers: null
#cacheHeaders: null
#hydraContext: null
#openapi: false
#exceptionToStatus: null
#links: [
Symfony\Component\WebLink\Link {#1435
-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/register"
"uri" => "https://mikkiswim-api.itlabs.top/api/register"
"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 {#1475
storage: [
"/api/errors/422" => "/api/errors/422"
]
flag::STD_PROP_LIST: false
flag::ARRAY_AS_PROPS: false
iteratorClass: "ArrayIterator"
}
"resources_to_push" => ApiPlatform\State\ResourceList {#1583
storage: []
flag::STD_PROP_LIST: false
flag::ARRAY_AS_PROPS: false
iteratorClass: "ArrayIterator"
}
]
|
ErrorNormalizer (4.98 ms)
|
JsonEncoder (0.02 ms)
|
5.06 ms
|
SerializeProcessor.php
line 74
$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());
|