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

Running npx sfcc-ci code:deploy results in "The requested URL was not found on this server" #321

Open
Timi96 opened this issue Aug 22, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@Timi96
Copy link

Timi96 commented Aug 22, 2022

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 of WEBDAV_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 // before on/demandware.servlet, hence my suggestion to remove that forward slash from the string WEBDAV_BASE

Result:
const WEBDAV_BASE = 'lib/webdav.json/demandware.servlet/webdav/Sites';

@tobiaslohr
Copy link
Contributor

Thanks for raising @Timi96! Quick question: concatenating the baseUrl and the uri from the request details above would end up to https://*****.sandbox.us01.dx.commercecloud.salesforce.com\on\demandware.servlet\webdav\Sites\cartridges\version1.zip.

Do you make sure, not to pass --instance with a trailing / in the value?

@tobiaslohr tobiaslohr added the bug Something isn't working label Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants