nopCommerce version upgrade
Adelaide, AUS

Adelaide, AUS

I am facing issues in downloading pictures on my e-commerce portal in nopCommerce after migrating from 3.5 to 4.0

Challenge

This client of ours has an e-commerce website which publishes online artworks that are colourful, raw and emotive pieces inspired by the creative young minds of children across Australia, America, and the United Kingdom. But after migration of their nopCommerce website from 3.5 to 4.0 their end clients in USA and UK started facing issues with image upload and downloading functionality.

Solution

Upon analysis, Space stem nopCommerce experts realized that the issue is related to minimum request body data rate which is defined by Kestrel. Kestrel is a cross-platform web server for ASP.NET Core and is the web server that's included by default in ASP.NET Core project templates. Kestrel verifies at each second if data is coming at the defined rate (bytes/second) and if this rate falls below the minimum, the connection is timed out.

The grace period (means the chunk of time that Kestrel gives the client to escalate its send rate up to the minimum) was not being analysed during that time. The grace period helps to ignore dropping connections which are originally sending data at a slow rate because of TCP slow-start. With a 5 second grace period, the default minimum rate is 240 bytes/second applied to the response.

The code to set the request limit and the response limit is the same except, for having RequestBody or Response in the property and interface names. The issue was successfully resolved, only after making necessary code changes in the minimum request body data rate and file downloader helper class.

.UseKestrel(options =>
    {
        options.AddServerHeader = false;
        options.Limits.MinResponseDataRate = null;
    })

Tools & Technologies

  • Microsoft ASP.NET Core 2.0
  • nopCommerce 4.0

Testimonial

NopCommerce Migration Issue from 3.5 to 4.0

It was a pleasure working with Space Stem Team. They were very polite and professional. They troubleshooted our error by successfully reproducing it in a test environment. They then quickly found the problem and implemented a solution very quickly, all within 5 hours. They are very good at their job with excellent technical skills. We highly recommend Space Stem Team and will hire them again for other projects. We look forward to working with them again.

I.March, Canada, Australia
Chief Executive Officer

Talk to us if you want to TRY our nopCommerce expertise at No Cost, No Hidden Conditions and No Questions asked.