macaw-cad / sxa-umbrella

Project structure and tools to optimize front-end team development workflow in any Sitecore SXA project
6 stars 3 forks source link

If scriban items occur twice upload can result in status code 424 #15

Open svdoever opened 4 years ago

svdoever commented 4 years ago

When (due to issue #13) an item occurs twice with the same name in the scriban tree (e.g. item.scriban) the following error may occur:

Scriban import failed for Scriban files in the folder 'Rendering Variants/DMP Site/-/scriban': Response code 424 (Method Failure)

Quick-fix: remove the double item.

svdoever commented 4 years ago

If the above issue occurs, it is possible to configure the parallel upload of artifacts to Sitecore by opening the file config/gulp.config.js and changing the following section:

// The "limiter.schedule()" functionality of the NPM package Bottleneck (https://www.npmjs.com/package/bottleneck)
// is used to handle file changes and requests to the Sitecore API.  Play with this configuration to 
// optimize for your situation. 
bottleneckConfig: {
    maxConcurrent: 5,
    minTime: 100
},

Increase the value of minTime (in milliseconds) until no issues occur, or set maxConcurrent to 1 to make sure no simultaneous uploads occur.