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
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">; 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?
Comments
-
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 โ๏ธ - Guardians (admin)
Did you also update the docker-sdk?
0 -
Yes, the docker repository was updated
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 โ๏ธ - Guardians (admin)
When you updated the routing then another idea to check would be the config files (make a compare)
0 -
Yes, I did it, but I have not found any clue in the config files neither
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 โ๏ธ - 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)
0 -
Thanks for all, I am going to review our
deploy.dev.yml
because we did some changes.0 -
Hi again, after change the
deploy.dev.yml
file as in theb2b-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.
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 โ๏ธ - Guardians (admin)
Do you have the public/BackOffice/index.php file etc? - also for BackendGateway
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 โ๏ธ - Guardians (admin)
-
Yes, I had the files, but I copied again and restarted the docker environment,
docker/sdk down
anddocker/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.0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K ๐ Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random