Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
svdoever opened this issue May 19, 2020 · 1 comment
Open

Comments

@svdoever
Copy link
Contributor

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
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant