Hii Team , I am accessing the 'access-tokens' api through postman for generating the token but i go

U04UE6DF06N
U04UE6DF06N Posts: 77 🧑🏻‍🚀 - Cadet
edited June 2023 in Spryker Development

Hii Team ,
I am accessing the 'access-tokens' api through postman for generating the token but i got this error : -
Spryker\Glue\RestRequestValidator\Processor\Exception\CacheFileNotFoundException - Exception: Validation cache is
enabled, but cache file is not found.
in
/data/vendor/spryker/rest-request-validator/src/Spryker/Glue/RestRequestValidator/Processor/Validator/Configuration/RestRequestValidatorConfigReader.php
(78)

Request URI: /access-tokens

Trace:

0

/data/vendor/spryker/rest-request-validator/src/Spryker/Glue/RestRequestValidator/Processor/Validator/Constraint/RestRequestValidatorConstraintResolver.php(88):
Spryker\Glue\RestRequestValidator\Processor\Validator\Configuration\RestRequestValidatorConfigReader->findValidationConfiguration(Object(Spryker\Glue\GlueApplication\Rest\Request\Data\RestRequest))

1

/data/vendor/spryker/rest-request-validator/src/Spryker/Glue/RestRequestValidator/Processor/Validator/Constraint/RestRequestValidatorConstraintResolver.php(68):
Spryker\Glue\RestRequestValidator\Processor\Validator\Constraint\RestRequestValidatorConstraintResolver->getConstraintFromConfig(Object(Spryker\Glue\GlueApplication\Rest\Request\Data\RestRequest))

2

/data/vendor/spryker/rest-request-validator/src/Spryker/Glue/RestRequestValidator/Processor/Validator/RestRequestValidator.php(77):
Spryker\Glue\RestRequestValidator\Processor\Validator\Constraint\RestRequestValidatorConstraintResolver->getConstraintCollection(Object(Spryker\Glue\GlueApplication\Rest\Request\Data\RestRequest))

3

/data/vendor/spryker/rest-request-validator/src/Spryker/Glue/RestRequestValidator/Plugin/ValidateRestRequestAttributesPlugin.php(36):
Spryker\Glue\RestRequestValidator\Processor\Validator\RestRequestValidator->validate(Object(Symfony\Component\HttpFoundation\Request),
Object(Spryker\Glue\GlueApplication\Rest\Request\Data\RestRequest))

4 /data/vendor/spryker/glue-application/src/Spryker/Glue/GlueApplication/Rest/Request/RestRequestValidator.php(170):

Spryker\Glue\RestRequestValidator\Plugin\ValidateRestRequestAttributesPlugin->validate(Object(Symfony\Component\HttpFoundation\Request),
Object(Spryker\Glue\GlueApplication\Rest\Request\Data\RestRequest))

5 /data/vendor/spryker/glue-application/src/Spryker/Glue/GlueApplication/Rest/Request/RestRequestValidator.php(72):

Spryker\Glue\GlueApplication\Rest\Request\RestRequestValidator->executeRestRequestValidatorPlugins(Object(Symfony\Component\HttpFoundation\Request),
Object(Spryker\Glue\GlueApplication\Rest\Request\Data\RestRequest))

6 /data/vendor/spryker/glue-application/src/Spryker/Glue/GlueApplication/Rest/ControllerFilter.php(287):

Spryker\Glue\GlueApplication\Rest\Request\RestRequestValidator->validate(Object(Symfony\Component\HttpFoundation\Request),
Object(Spryker\Glue\GlueApplication\Rest\Request\Data\RestRequest))

7 /data/vendor/spryker/glue-application/src/Spryker/Glue/GlueApplication/Rest/ControllerFilter.php(157):

Spryker\Glue\GlueApplication\Rest\ControllerFilter->validateRequest(Object(Spryker\Glue\AuthRestApi\Controller\AccessTokensResourceController),
Object(Symfony\Component\HttpFoundation\Request), Object(Spryker\Glue\GlueApplication\Rest\Request\Data\RestRequest))

8

/data/vendor/spryker/glue-application/src/Spryker/Glue/GlueApplication/Plugin/EventDispatcher/GlueRestControllerListenerEventDispatcherPlugin.php(71):
Spryker\Glue\GlueApplication\Rest\ControllerFilter->filter(Object(Spryker\Glue\AuthRestApi\Controller\AccessTokensResourceController),
'postAction', Object(Symfony\Component\HttpFoundation\Request))

9

/data/vendor/spryker/glue-application/src/Spryker/Glue/GlueApplication/Plugin/EventDispatcher/GlueRestControllerListenerEventDispatcherPlugin.php(56):
Spryker\Glue\GlueApplication\Plugin\EventDispatcher\GlueRestControllerListenerEventDispatcherPlugin->filter(Object(Spryker\Glue\AuthRestApi\Controller\AccessTokensResourceController),
'postAction', Object(Symfony\Component\HttpFoundation\Request))

10 /data/vendor/symfony/http-kernel/HttpKernel.php(163):

Spryker\Glue\GlueApplication\Plugin\EventDispatcher\GlueRestControllerListenerEventDispatcherPlugin->Spryker\Glue\GlueApplication\Plugin\EventDispatcher{closure}()

11 /data/vendor/symfony/http-kernel/HttpKernel.php(75):

Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)

12 /data/vendor/spryker/application/src/Spryker/Shared/Application/Application.php(138):

Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request))

13 /data/vendor/spryker/application/src/Spryker/Shared/Application/Application.php(116):

Spryker\Shared\Application\Application->handle(Object(Symfony\Component\HttpFoundation\Request))

14 /data/vendor/spryker/glue-application/src/Spryker/Glue/GlueApplication/ApiApplication/ApiApplicationProxy.php(107):

Spryker\Shared\Application\Application->run()

15 /data/public/Glue/index.php(24): Spryker\Glue\GlueApplication\ApiApplication\ApiApplicationProxy->run()

16 {main}

Fatal error: Uncaught ValueError: Path cannot be empty in [no active file]:0
Stack trace:

0

thrown in [no active file] on line 0

Please help me out

Comments

  • Alberto Reyer
    Alberto Reyer Posts: 690 🪐 - Explorer

    docker/sdk console glue:rest:build-request-validation-cache

  • U04UE6DF06N
    U04UE6DF06N Posts: 77 🧑🏻‍🚀 - Cadet

    that command gives me error
    Symfony\Component\Console\Exception\NamespaceNotFoundException - Exception: There are no commands defined in the "glue:rest" namespace.

    Did you mean this?
    code:test
    in /data/vendor/symfony/console/Application.php (650)

    Command: /data/vendor/bin/console glue:rest:build-request-validation-cache

    Trace:

    0 /data/vendor/symfony/console/Application.php(701): Symfony\Component\Console\Application->findNamespace('glue:rest')

    1 /data/vendor/symfony/console/Application.php(259): Symfony\Component\Console\Application->find('glue:rest:build...')

    2 /data/vendor/spryker/console/src/Spryker/Zed/Console/Communication/Bootstrap/ConsoleBootstrap.php(114): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

    3 /data/vendor/symfony/console/Application.php(171): Spryker\Zed\Console\Communication\Bootstrap\ConsoleBootstrap->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

    4 /data/vendor/spryker/console/bin/console(27): Symfony\Component\Console\Application->run()

    5 /data/vendor/bin/console(120): include('/data/vendor/sp...')