Skip to content

Commit 5a79c88

Browse files
Updating Docs & Removing Console Statements
1 parent b043d1e commit 5a79c88

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

docs/troubleshooting.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ Troubleshooting
99
1010
<img src="https://octodex.github.com/images/dinotocat.png" width="400" />
1111

12-
#### Invalid Domain Certificates
12+
`Error [ERR_TLS_CERT_ALTNAME_INVALID]`
13+
---
1314

1415
For `sfcc-cli` commands that initiate network requests, you may get an error similar to the following:
1516

16-
``Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: Host: dev09.commerce.myclient.demandware.net. is not in the cert's altnames: DNS:*.demandware.net, DNS:demandware.net``
17+
`Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: Host: dev09.commerce.myclient.demandware.net. is not in the cert's altnames: DNS:*.demandware.net, DNS:demandware.net`
1718

1819
This is because node cannot verify that the server is valid according to the TLS certificate. The following command executed in your terminal will temporarily disable this check while you have your terminal session open.
1920

@@ -29,4 +30,9 @@ export NODE_TLS_REJECT_UNAUTHORIZED=0
2930
set NODE_TLS_REJECT_UNAUTHORIZED=0
3031
```
3132

33+
`SyntaxError: Unexpected Token (`
34+
---
3235

36+
You are getting this since the CLI tool uses ES6 Javascript, and you are likely using an older version of node that does not support it. Make sure you are using the latest version of node. We suggest v10+.
37+
38+
Once you have a newer version of Node installed, you will need to uninstall / reinstall this package. Your setup will be save to `~/.sfcc-cli` so it is safe to do a clean install without losing anything.

lib/tail.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ module.exports = async (selected, client, instance, logs, groups, options) => {
3838
const sendLog = data => {
3939
if (remote && typeof remote.emit !== 'undefined') {
4040
remote.emit('log', data)
41-
} else {
42-
output(() => console.log('REMOTE NOT CONNECTED'))
4341
}
4442
}
4543

0 commit comments

Comments
 (0)