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

Posts: 27 πŸ§‘πŸ»β€πŸš€ - Cadet
edited October 2020 in Help

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?

Welcome!

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

Comments

  • Lead Product Manager Posts: 130 πŸ§‘πŸ»β€πŸš€ - Cadet
  • Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet

    It seems it is nginx settings. What environment do you run?

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

    We are using docker. However the same issue can be reproduced on the b2c online Demo

  • Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet

    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.

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

    thanks @ULYHPR789! But why is the B2B cart not crashing? Do you have any insight why it behaves differently?

  • Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet

    I am not sure, however the cart data can be much less in B2B than in B2C

  • Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet

    https://github.com/spryker/docker-sdk/pull/154 - just in case if you need it

  • Posts: 27 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited October 2020

    @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.

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

    Thanks!

  • Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet

    It was released, So you can use master as well

Welcome!

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