Running npx sfcc-ci code:deploy
results in "The requested URL was not found on this server"
#321
Labels
bug
Something isn't working
I am on WINDOWS and seem to be the only one of my colleagues who face this issue when running
npx sfcc-ci code:deploy
resulting in the error message "The requested URL was not found on this server."
File:
/lib/webdav.js
Issue: The
/
at the start ofWEBDAV_BASE
string leads to the below REQUEST object:REQUEST {
baseUrl: 'https://*****.sandbox.us01.dx.commercecloud.salesforce.com',
uri: '\on\demandware.servlet\webdav\Sites\cartridges\version1.zip',
auth: { bearer: 'aY_TPqnkH19VOy-8AnyLmxV4Ov0' },
strictSSL: true,
method: 'DELETE',
callback: [Function (anonymous)]
}
which ends up as:
https://*****.sandbox.us01.dx.commercecloud.salesforce.com//on/demandware.servlet/webdav/Sites/cartridges/version1.zip
Notice the double
//
beforeon/demandware.servlet
, hence my suggestion to remove that forward slash from the stringWEBDAV_BASE
Result:
const WEBDAV_BASE = 'lib/webdav.json/demandware.servlet/webdav/Sites';
The text was updated successfully, but these errors were encountered: