-
Notifications
You must be signed in to change notification settings - Fork 104
Description
sfcc-ci Version
2.7.1
NodeJS Version
20.13.1
sfcc-ci Path
/usr/local/bin/sfcc-ci
Host OS Details
ProductName: macOS
ProductVersion: 12.6.6
BuildVersion: 21G646
Darwin lisab-m-6908.local 21.6.0 Darwin Kernel Version 21.6.0: Mon Apr 24 21:10:53 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_X86_64 x86_64
What happened?
I needed to generate a new registration link for my ODS, so I ran sfcc-ci sandbox:list
to grab my sandbox id. That command results in the following error, which I have never gotten until this morning (nothing in my environment has changed):
/snapshot/master/lib/sandbox.js:892
if (list.length === 0) {
TypeError: Cannot read property 'length' of undefined
at /snapshot/master/lib/sandbox.js:892:22
at /snapshot/master/lib/sandbox.js:360:9
at ensureValidToken (/snapshot/master/lib/ocapi.js:94:9)
at Request._callback (/snapshot/master/lib/ocapi.js:148:9)
at Request.callback (/snapshot/master/node_modules/request/request.js:185:22)
at Request.emit (events.js:323:22)
at Request.<anonymous> (/snapshot/master/node_modules/request/request.js:1154:10)
at Request.emit (events.js:311:20)
at IncomingMessage.<anonymous> (/snapshot/master/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:417:28)
When running that command with the debug flag, things appear normal as well.
Furthermore, when I run sfcc-ci sandbox:alias:list --sandbox [my sandbox ID]
with the sandbox ID I have saved in my environment, I get the following error, even though I have already authenticated:
Error: WebDAV authentication failed. Please (re-)authenticate first by running ´sfcc-ci auth:login´ or ´sfcc-ci client:auth´. No token auto-renewal is performed. If the problem still occurs please check the WebDAV Client Permissions on the instance and ensure your client ID has been granted access to required WebDAV resources.
I am able to run sfcc-ci auth:login
and login just fine. I have checked my WebDAV Client Permissions and nothing has changed in there -- the client ID is correct.
Any guidance would be much appreciated!
Relevant log output
/snapshot/master/lib/sandbox.js:892
if (list.length === 0) {
^
TypeError: Cannot read property 'length' of undefined
at /snapshot/master/lib/sandbox.js:892:22
at /snapshot/master/lib/sandbox.js:360:9
at ensureValidToken (/snapshot/master/lib/ocapi.js:94:9)
at Request._callback (/snapshot/master/lib/ocapi.js:148:9)
at Request.callback (/snapshot/master/node_modules/request/request.js:185:22)
at Request.emit (events.js:311:20)
at Request.<anonymous> (/snapshot/master/node_modules/request/request.js:1154:10)
at Request.emit (events.js:311:20)
at IncomingMessage.<anonymous> (/snapshot/master/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:417:28)
`
When running that command with the debug flag, things appear normal as well:
`REQUEST onRequestResponse https://admin.us01.dx.commercecloud.salesforce.com/api/v1/sandboxes?include_deleted=false 301 {
location: 'https://admin.dx.commercecloud.salesforce.com/api/v1/sandboxes?include_deleted=false',
date: 'Wed, 16 Oct 2024 16:15:44 GMT',
server: 'istio-envoy',
connection: 'close',
'content-length': '0'
}
REQUEST redirect https://admin.dx.commercecloud.salesforce.com/api/v1/sandboxes?include_deleted=false
REQUEST redirect to https://admin.dx.commercecloud.salesforce.com/api/v1/sandboxes?include_deleted=false
{
redirect: {
debugId: 1,
statusCode: 301,
headers: {
location: 'https://admin.dx.commercecloud.salesforce.com/api/v1/sandboxes?include_deleted=false',
date: 'Wed, 16 Oct 2024 16:15:44 GMT',
server: 'istio-envoy',
connection: 'close',
'content-length': '0'
},
uri: 'https://admin.dx.commercecloud.salesforce.com/api/v1/sandboxes?include_deleted=false'
}
}
REQUEST {}
REQUEST response end https://admin.dx.commercecloud.salesforce.com/api/v1/sandboxes?include_deleted=false 301 {
location: 'https://admin.dx.commercecloud.salesforce.com/api/v1/sandboxes?include_deleted=false',
date: 'Wed, 16 Oct 2024 16:15:44 GMT',
server: 'istio-envoy',
connection: 'close',
'content-length': '0'
}
REQUEST make request https://admin.dx.commercecloud.salesforce.com/api/v1/sandboxes?include_deleted=false
{
request: {
debugId: 1,
uri: 'https://admin.dx.commercecloud.salesforce.com/api/v1/sandboxes?include_deleted=false',
method: 'GET',
headers: {
accept: 'application/json',
referer: 'https://admin.us01.dx.commercecloud.salesforce.com/api/v1/sandboxes?include_deleted=false',
host: 'admin.dx.commercecloud.salesforce.com'
}
}
}
REQUEST onRequestResponse https://admin.dx.commercecloud.salesforce.com/api/v1/sandboxes?include_deleted=false 200 {
'content-type': 'application/json',
date: 'Wed, 16 Oct 2024 16:15:45 GMT',
'content-length': '65',
'x-envoy-upstream-service-time': '4',
server: 'istio-envoy',
connection: 'close'
}
REQUEST reading response's body
REQUEST finish init function https://admin.dx.commercecloud.salesforce.com/api/v1/sandboxes?include_deleted=false
REQUEST response end https://admin.dx.commercecloud.salesforce.com/api/v1/sandboxes?include_deleted=false 200 {
'content-type': 'application/json',
date: 'Wed, 16 Oct 2024 16:15:45 GMT',
'content-length': '65',
'x-envoy-upstream-service-time': '4',
server: 'istio-envoy',
connection: 'close'
}
REQUEST end event https://admin.dx.commercecloud.salesforce.com/api/v1/sandboxes?include_deleted=false
REQUEST has body https://admin.dx.commercecloud.salesforce.com/api/v1/sandboxes?include_deleted=false 65
REQUEST emitting complete https://admin.dx.commercecloud.salesforce.com/api/v1/sandboxes?include_deleted=false
{
response: {
debugId: 1,
headers: {
'content-type': 'application/json',
date: 'Wed, 16 Oct 2024 16:15:45 GMT',
'content-length': '65',
'x-envoy-upstream-service-time': '4',
server: 'istio-envoy',
connection: 'close'
},
statusCode: 200,
body: { kind: 'SandboxList', code: 200, status: 'Success' }
}
}