What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hi all. I am currently working my way through the "Spryker Backend Fundamentals" course and the "Per

U054MS2PN7Q
U054MS2PN7Q Posts: 3 🧑🏻‍🚀 - Cadet

Hi all. I am currently working my way through the "Spryker Backend Fundamentals" course and the "Persist, Fetch, and Transport Data across Layers and Services" part. After doing all the steps as stated there and trying to view the page, I got the following error message. Am I still missing something? What else do I have to do to view this page?

Comments

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,051 ⚖️ - Guardians (admin)

    Hey, can you please expand the exception-message on the left?

  • U054MS2PN7Q
    U054MS2PN7Q Posts: 3 🧑🏻‍🚀 - Cadet
    Failed to complete request with server authority <http://backend-gateway.de.spryker.local>. Configured with (SSL Disabled) backend-gateway.de.spryker.local: in /data/config/Shared/config_default.php. Error: Stacktrace: <div style="font-family: Helvetica, Arial, sans-serif; font-size: 14px"><h1>ZED Exception</h1><div style="background: #dadada; padding: 5px"><font style="12"><b>Symfony\Component\HttpKernel\Exception\NotFoundHttpException - No route found for "POST <http://backend-gateway.de.spryker.local/training/gateway/get-antelope>"</b></font></div><p>in /data/vendor/symfony/http-kernel/EventListener/RouterListener.php (135)</p><p><b>Url:</b>/training/gateway/get-antelope</p><p><b>Trace:</b></p><pre>#0 /data/vendor/symfony/event-dispatcher/EventDispatcher.php(230): Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest(Object(Symfony\Component\HttpKernel\Event\RequestEvent), 'kernel.request', Object(Spryker\Shared\EventDispatcher\EventDispatcher)) #1 /data/vendor/symfony/event-dispatcher/EventDispatcher.php(59): Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, 'kernel.request', Object(Symfony\Component\HttpKernel\Event\RequestEvent)) #2 /data/vendor/symfony/http-kernel/HttpKernel.php(139): Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\RequestEvent), 'kernel.request') #3 /data/vendor/symfony/http-kernel/HttpKernel.php(75): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #4 /data/vendor/spryker/application/src/Spryker/Shared/Application/Application.php(138): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #5 /data/vendor/spryker/application/src/Spryker/Shared/Application/Application.php(116): Spryker\Shared\Application\Application->handle(Object(Symfony\Component\HttpFoundation\Request)) #6 /data/public/BackendGateway/index.php(20): Spryker\Shared\Application\Application->run() #7 {main}</pre></div><br /> <b>Fatal error</b>: Uncaught ValueError: Path cannot be empty in [no active file]:0 Stack trace: #0 {main} thrown in <b>[no active file]</b> on line <b>0</b><br />
    

    "No route found" 🤔

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,051 ⚖️ - Guardians (admin)

    you have created the gateway-controller like the following, right?

    class GatewayController extends AbstractGatewayController
    {
        public function getAntelopeAction(AntelopeCriteriaTransfer $antelopeCriteria) : AntelopeResponseTransfer
        {
            return $this->getFacade()
                ->getAntelope($antelopeCriteria);
        }
    }
    

    Can you execute docker/sdk console cache:empty-all and try again pls?

  • U054MS2PN7Q
    U054MS2PN7Q Posts: 3 🧑🏻‍🚀 - Cadet

    It works now. In the end it was a wrong file path.