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, we are using the B2C Shop in a B2B Scenario (fits the customer better). However we have the
Hi all,
we are using the B2C Shop in a B2B Scenario (fits the customer better). However we have the issue, that the /cart Route can not handle more than ~180 Products in the cart. Our Customer is using the quickorder feature and sometimes there can be huge orders around 200+ items.
When accessing the cart, we get the following error:Failed to complete request with server authorityΒ <http://spryker-zed-de>. Configured with (SSL Disabled) spryker-zed-de: in /data/config/Shared/config_default.php. Error: Stacktrace: <html> <head><title>413 Request Entity Too Large</title></head> <body> <center><h1>413 Request Entity Too Large</h1></center> <hr><center>nginx/1.19.3</center> </body> </html>
I can reproduce it in the B2C Shop (https://www.de.b2c.demo-spryker.com/) -> Adding 180 Items in the Cart (Variants) result in a faile Whale
However i can not reproduce it in the B2B Shop. There is the multi-cart feature active and the cart can handle (seemingly) unlimited number of items.
Do you have any idea why the B2C Cart runs into an Exception while reading the persistent Cart?
Comments
-
cc @U014B6AG7EX
0 -
It seems it is nginx settings. What environment do you run?
0 -
We are using docker. However the same issue can be reproduced on the b2c online Demo
0 -
It is related to
client_max_body_size
settings in nginx. And just today we are developing a possibility to set this via deploy.yml file. It will be available very soon.However it also related to other possible issue: Yves always passes the entire cart to Zed Gateway and the error you see means that the payload is bigger than 10M, that is too much.
0 -
thanks @ULYHPR789! But why is the B2B cart not crashing? Do you have any insight why it behaves differently?
0 -
I am not sure, however the cart data can be much less in B2B than in B2C
0 -
https://github.com/spryker/docker-sdk/pull/154 - just in case if you need it
0 -
@ULYHPR789: the nginx client_max_request_body_size was the issue. The default was 1 mb, a cart with 222 Items is around 1.7mb in our b2c Shop. Now the request loads (slowly) and works.
0 -
Thanks!
0 -
It was released, So you can use master as well
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 75 Spryker News
- 924 Developer Corner
- 783 Spryker Development
- 88 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
- 25 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