ApiPlatform\State\ApiResource\Error
Show contents
ApiPlatform\State\ApiResource\Error {#1122
#message: "An error occurred"
#code: 404
#file: "/home/ht2/public_html/data.ht2techinfo.cd/vendor/api-platform/core/src/State/ApiResource/Error.php"
#line: 119
-previous: Symfony\Component\Routing\Exception\ResourceNotFoundException {#562 …}
-title: "An error occurred"
-detail: "No route found for "GET http://data.ht2techinfo.cd/robots.txt""
-status: 404
-instance: null
-type: "/errors/404"
-headers: []
+originalTrace: [
[
"file" => "/home/ht2/public_html/data.ht2techinfo.cd/vendor/symfony/event-dispatcher/Debug/WrappedListener.php"
"line" => 116
"function" => "onKernelRequest"
"class" => "Symfony\Component\HttpKernel\EventListener\RouterListener"
"type" => "->"
]
[
"file" => "/home/ht2/public_html/data.ht2techinfo.cd/vendor/symfony/event-dispatcher/EventDispatcher.php"
"line" => 220
"function" => "__invoke"
"class" => "Symfony\Component\EventDispatcher\Debug\WrappedListener"
"type" => "->"
]
[
"file" => "/home/ht2/public_html/data.ht2techinfo.cd/vendor/symfony/event-dispatcher/EventDispatcher.php"
"line" => 56
"function" => "callListeners"
"class" => "Symfony\Component\EventDispatcher\EventDispatcher"
"type" => "->"
]
[
"file" => "/home/ht2/public_html/data.ht2techinfo.cd/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php"
"line" => 139
"function" => "dispatch"
"class" => "Symfony\Component\EventDispatcher\EventDispatcher"
"type" => "->"
]
[
"file" => "/home/ht2/public_html/data.ht2techinfo.cd/vendor/symfony/http-kernel/HttpKernel.php"
"line" => 157
"function" => "dispatch"
"class" => "Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher"
"type" => "->"
]
[
"file" => "/home/ht2/public_html/data.ht2techinfo.cd/vendor/symfony/http-kernel/HttpKernel.php"
"line" => 76
"function" => "handleRaw"
"class" => "Symfony\Component\HttpKernel\HttpKernel"
"type" => "->"
]
[
"file" => "/home/ht2/public_html/data.ht2techinfo.cd/vendor/symfony/http-kernel/Kernel.php"
"line" => 197
"function" => "handle"
"class" => "Symfony\Component\HttpKernel\HttpKernel"
"type" => "->"
]
[
"file" => "/home/ht2/public_html/data.ht2techinfo.cd/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php"
"line" => 35
"function" => "handle"
"class" => "Symfony\Component\HttpKernel\Kernel"
"type" => "->"
]
[
"file" => "/home/ht2/public_html/data.ht2techinfo.cd/vendor/autoload_runtime.php"
"line" => 29
"function" => "run"
"class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
"type" => "->"
]
[
"file" => "/home/ht2/public_html/data.ht2techinfo.cd/public/index.php"
"line" => 5
"function" => "require_once"
]
]
trace: {
/home/ht2/public_html/data.ht2techinfo.cd/vendor/api-platform/core/src/State/ApiResource/Error.php:119 {
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/ht2/public_html/data.ht2techinfo.cd/vendor/api-platform/core/src/State/ErrorProvider.php:41 {
ApiPlatform\State\ErrorProvider->provide(Operation $operation, array $uriVariables = [], array $context = []): object …
› $status = $operation->getStatus() ?? 500;
› $error = Error::createFromException($exception, $status);
› if (!$this->debug && $status >= 500) {
arguments: {
$exception: Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#1023 …}
$status: 404
}
}
/home/ht2/public_html/data.ht2techinfo.cd/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);
› }
arguments: {
$operation: ApiPlatform\Metadata\Error {#1126 …}
$uriVariables: []
$context: [ …17]
}
}
/home/ht2/public_html/data.ht2techinfo.cd/vendor/api-platform/core/src/State/Provider/ReadProvider.php:75 {
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) {
arguments: {
$operation: ApiPlatform\Metadata\Error {#1126 …}
$uriVariables: []
$context: [ …17]
}
}
/home/ht2/public_html/data.ht2techinfo.cd/vendor/api-platform/core/src/Symfony/Bundle/SwaggerUi/SwaggerUiProvider.php:48 {
ApiPlatform\Symfony\Bundle\SwaggerUi\SwaggerUiProvider->provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null …
› ) {
› return $this->decorated->provide($operation, $uriVariables, $context);
› }
arguments: {
$operation: ApiPlatform\Metadata\Error {#1126 …}
$uriVariables: []
$context: [ …17]
}
}
/home/ht2/public_html/data.ht2techinfo.cd/vendor/api-platform/core/src/Symfony/Security/State/AccessCheckerProvider.php:53 {
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) {
arguments: {
$operation: ApiPlatform\Metadata\Error {#1126 …}
$uriVariables: []
$context: [ …3]
}
}
/home/ht2/public_html/data.ht2techinfo.cd/vendor/api-platform/core/src/State/Provider/DeserializeProvider.php:47 {
ApiPlatform\State\Provider\DeserializeProvider->provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null …
› {
› $data = $this->decorated->provide($operation, $uriVariables, $context);
›
arguments: {
$operation: ApiPlatform\Metadata\Error {#1126 …}
$uriVariables: []
$context: [ …3]
}
}
/home/ht2/public_html/data.ht2techinfo.cd/vendor/api-platform/core/src/Symfony/Security/State/AccessCheckerProvider.php:53 {
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) {
arguments: {
$operation: ApiPlatform\Metadata\Error {#1126 …}
$uriVariables: []
$context: [ …3]
}
}
/home/ht2/public_html/data.ht2techinfo.cd/vendor/api-platform/core/src/Symfony/Validator/State/QueryParameterValidateProvider.php:42 {
ApiPlatform\Symfony\Validator\State\QueryParameterValidateProvider->provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null …
› if (!($operation->getQueryParameterValidationEnabled() ?? true) || !$operation instanceof CollectionOperationInterface) {
› return $this->decorated->provide($operation, $uriVariables, $context);
› }
arguments: {
$operation: ApiPlatform\Metadata\Error {#1126 …}
$uriVariables: []
$context: [ …3]
}
}
/home/ht2/public_html/data.ht2techinfo.cd/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);
›
arguments: {
$operation: ApiPlatform\Metadata\Error {#1126 …}
$uriVariables: []
$context: [ …3]
}
}
/home/ht2/public_html/data.ht2techinfo.cd/vendor/api-platform/core/src/Symfony/Security/State/AccessCheckerProvider.php:53 {
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) {
arguments: {
$operation: ApiPlatform\Metadata\Error {#1126 …}
$uriVariables: []
$context: [ …3]
}
}
/home/ht2/public_html/data.ht2techinfo.cd/vendor/api-platform/core/src/State/Provider/ContentNegotiationProvider.php:56 {
ApiPlatform\State\Provider\ContentNegotiationProvider->provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null …
›
› return $this->decorated->provide($operation, $uriVariables, $context);
› }
arguments: {
$operation: ApiPlatform\Metadata\Error {#1126 …}
$uriVariables: []
$context: [ …3]
}
}
/home/ht2/public_html/data.ht2techinfo.cd/vendor/api-platform/core/src/Symfony/Controller/MainController.php:82 {
ApiPlatform\Symfony\Controller\MainController->__invoke(Request $request): Response …
›
› $body = $this->provider->provide($operation, $uriVariables, $context);
›
arguments: {
$operation: ApiPlatform\Metadata\Error {#1126 …}
$uriVariables: []
$context: [ …3]
}
}
/home/ht2/public_html/data.ht2techinfo.cd/vendor/symfony/http-kernel/HttpKernel.php:181 {
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
› // call controller
› $response = $controller(...$arguments);
›
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#799 …}
}
}
/home/ht2/public_html/data.ht2techinfo.cd/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 {#799 …}
$type: 2
}
}
/home/ht2/public_html/data.ht2techinfo.cd/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) {
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#799 …}
$type: 2
$catch: false
}
}
/home/ht2/public_html/data.ht2techinfo.cd/vendor/api-platform/core/src/Symfony/EventListener/ExceptionListener.php:40 {
ApiPlatform\Symfony\EventListener\ExceptionListener->onKernelException(ExceptionEvent $event): void …
›
› $this->errorListener->onKernelException($event);
› }
arguments: {
$event: Symfony\Component\HttpKernel\Event\ExceptionEvent {#1017 …}
}
}
/home/ht2/public_html/data.ht2techinfo.cd/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 {
arguments: {
$event: Symfony\Component\HttpKernel\Event\ExceptionEvent {#1017 …}
...: {
"kernel.exception"
Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher {#509 …}
}
}
}
/home/ht2/public_html/data.ht2techinfo.cd/vendor/symfony/event-dispatcher/EventDispatcher.php:220 {
Symfony\Component\EventDispatcher\EventDispatcher->callListeners(iterable $listeners, string $eventName, object $event) …
› }
› $listener($event, $eventName, $this);
› }
arguments: {
$event: Symfony\Component\HttpKernel\Event\ExceptionEvent {#1017 …}
$eventName: "kernel.exception"
$dispatcher: Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher {#509 …}
}
}
/home/ht2/public_html/data.ht2techinfo.cd/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: [ …8]
$eventName: "kernel.exception"
$event: Symfony\Component\HttpKernel\Event\ExceptionEvent {#1017 …}
}
}
/home/ht2/public_html/data.ht2techinfo.cd/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 {
arguments: {
$event: Symfony\Component\HttpKernel\Event\ExceptionEvent {#1017 …}
$eventName: "kernel.exception"
}
}
/home/ht2/public_html/data.ht2techinfo.cd/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);
›
arguments: {
$event: Symfony\Component\HttpKernel\Event\ExceptionEvent {#1017 …}
$eventName: "kernel.exception"
}
}
/home/ht2/public_html/data.ht2techinfo.cd/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 {
arguments: {
$e: Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#1023 …}
$request: Symfony\Component\HttpFoundation\Request {#15 …}
$type: 1
}
}
/home/ht2/public_html/data.ht2techinfo.cd/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 {
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#15 …}
$type: 1
$catch: true
}
}
/home/ht2/public_html/data.ht2techinfo.cd/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 {#15 …}
}
}
/home/ht2/public_html/data.ht2techinfo.cd/vendor/autoload_runtime.php:29 {
require_once …
› ->getRunner($app)
› ->run()
› );
}
/home/ht2/public_html/data.ht2techinfo.cd/public/index.php:5 {
›
› require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
›
arguments: {
"/home/ht2/public_html/data.ht2techinfo.cd/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 {#1076
#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
#extraProperties: [
"standard_put" => true
"rfc_7807_compliant_errors" => true
"user_defined_uri_template" => true
]
#paginationViaCursor: null
#read: null
#deserialize: null
#validate: null
#write: false
#serialize: true
#priority: 1
#name: "_api_errors_hydra"
#method: "GET"
#uriTemplate: "/errors/{status}"
#types: [
"hydra:Error"
]
#formats: null
#inputFormats: [
"jsonld" => [
"application/ld+json"
]
]
#outputFormats: [
"jsonld" => [
"application/problem+json"
]
]
#uriVariables: [
"status" => ApiPlatform\Metadata\Link {#885
-parameterName: "status"
-fromProperty: null
-toProperty: null
-fromClass: "ApiPlatform\State\ApiResource\Error"
-toClass: null
-identifiers: [
"status"
]
-compositeIdentifier: null
-expandedValue: null
}
]
#routePrefix: null
#routeName: null
#defaults: null
#requirements: null
#options: null
#stateless: true
#sunset: null
#acceptPatch: null
#status: 404
#host: null
#schemes: null
#condition: null
#controller: "api_platform.symfony.main_controller"
#cacheHeaders: [
"vary" => [
"Content-Type"
"Authorization"
"Origin"
]
]
#hydraContext: null
#openapiContext: null
#openapi: false
#exceptionToStatus: null
#queryParameterValidationEnabled: null
#links: [
Symfony\Component\WebLink\Link {#948
-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: []
}
]
}
"resource_class" => "ApiPlatform\State\ApiResource\Error"
"iri_only" => false
"request_uri" => "/robots.txt"
"uri" => "http://data.ht2techinfo.cd/robots.txt"
"input" => null
"output" => null
"types" => [
"hydra:Error"
]
"uri_variables" => []
"exclude_from_cache_key" => [
"root_operation"
"operation"
"resources"
"resources_to_push"
]
"resources" => ApiPlatform\Serializer\ResourceList {#1074
storage: [
"/api/errors/404" => "/api/errors/404"
]
flag::STD_PROP_LIST: false
flag::ARRAY_AS_PROPS: false
iteratorClass: "ArrayIterator"
}
"resources_to_push" => ApiPlatform\Serializer\ResourceList {#1123
storage: []
flag::STD_PROP_LIST: false
flag::ARRAY_AS_PROPS: false
iteratorClass: "ArrayIterator"
}
]
|
ItemNormalizer (11.57 ms)
|
JsonEncoder (0.02 ms)
|
11.65 ms
|
SerializeProcessor.php
line 65
$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());
|