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 everybody, I am upgrading spryker from 202009 to 202108. The `docker/sdk up` is working well, the

Posts: 9 πŸ§‘πŸ»β€πŸš€ - Cadet

Hi everybody, I am upgrading spryker from 202009 to 202108. The docker/sdk up is working well, the zed backend is ok, but in Yves, when we need to communicate with Zed it always failing with an error as:

Symfony\Component\HttpKernel\Exception\NotFoundHttpException: No route found for "POST <https://zed.de.shop-b2b.local/customer/gateway/customer&quot>; in file /data/vendor/symfony/http-kernel/EventListener/RouterListener.php on line 135 β—€

Caused by
Symfony\Component\Routing\Exception\ResourceNotFoundException: None of the routers in the chain matched this request POST /customer/gateway/customer HTTP/1.1

The RouterDependencyProvider in Zed has updated as in the b2b-demo-shop:

/**
 * @return \Spryker\Zed\RouterExtension\Dependency\Plugin\RouterPluginInterface[]
 */
protected function getBackofficeRouterPlugins(): array
{
    return [
        new BackofficeRouterPlugin(),
    ];
}

/**
 * @return \Spryker\Zed\RouterExtension\Dependency\Plugin\RouterPluginInterface[]
 */
protected function getBackendGatewayRouterPlugins(): array
{
    return [
        new BackendGatewayRouterPlugin(),
    ];
}

And even I have tested with the old one:

protected function getRouterPlugins(): array
{
    return [
        new ZedRouterPlugin(),
        // This router will only be hit, when no other router is able to match/generate
        new ZedDevelopmentRouterPlugin(),
    ];
}

But nothing works. Running the console command vendor/bin/console router:debug:backend-gateway the route is showed. Has anybody any clue about what would be wrong?

Welcome!

It looks like you're new here. Sign in or register to get started.

Comments

  • Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,115 βš–οΈ - Guardians (admin)

    Did you also update the docker-sdk?

  • Posts: 9 πŸ§‘πŸ»β€πŸš€ - Cadet

    Yes, the docker repository was updated

  • Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,115 βš–οΈ - Guardians (admin)

    When you updated the routing then another idea to check would be the config files (make a compare)

  • Posts: 9 πŸ§‘πŸ»β€πŸš€ - Cadet

    Yes, I did it, but I have not found any clue in the config files neither

  • Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,115 βš–οΈ - Guardians (admin)
    No route found for "POST <https://zed.de.shop-b2b.local/customer/gateway/customer>"
    

    the problem is that for you the request from client to the gateway is still done through zed, but it should call backend-gateway - some setting must be missing (can not tell which without debugging by myself)

  • Posts: 9 πŸ§‘πŸ»β€πŸš€ - Cadet

    Thanks for all, I am going to review our deploy.dev.yml because we did some changes.

  • Posts: 9 πŸ§‘πŸ»β€πŸš€ - Cadet

    Hi again, after change the deploy.dev.yml file as in the b2b-demo-shop, now the error is:

    Failed to complete request with server authority <http://backend-gateway.de.shop-b2b.local>.\n
    Configured with (SSL Disabled) backend-gateway.de.jh-shop-b2b.local: in /data/config/Shared/config_default.php. Error: Stacktrace:\n
    \n
    File not found.
    

    And now the zed backend (backoffice) is not working any more.

  • Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,115 βš–οΈ - Guardians (admin)
    edited October 2022

    Do you have the public/BackOffice/index.php file etc? - also for BackendGateway

  • Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,115 βš–οΈ - Guardians (admin)
  • Posts: 9 πŸ§‘πŸ»β€πŸš€ - Cadet

    Yes, I had the files, but I copied again and restarted the docker environment, docker/sdk down and docker/sdk up and now the backoffice is working again and it seems the communication between yves and zed now is working too. Thank you so much.

Welcome!

It looks like you're new here. Sign in or register to get started.