Skip to content

Instantly share code, notes, and snippets.

@kzhangworks
Last active April 27, 2017 17:46
Show Gist options
  • Save kzhangworks/bc190955d2f1a763b5d24c47b497d97f to your computer and use it in GitHub Desktop.
Save kzhangworks/bc190955d2f1a763b5d24c47b497d97f to your computer and use it in GitHub Desktop.
1. Enable the more verbose logging can be enabled here in /opt/appcelerator/360/conf/default/partners/acs.js on line 16. nodeAcsDebugApiCalls,
change it to nodeAcsDebugApiCalls: true,
You will get following Error:
```
GET /api/v1/org/env 200 59.349 ms - 506
[Node.ACS] API call: {"method":"GET","uri":"https://admin.mbaas.perf.api.enedis.fr/admin/apps/777887479634955","timeout":30000,"headers":{"x-auth-token":"25NwQ6IvZsDoS8outJBz2b7aaZ58dQ"}}
{ [Error: Hostname/IP doesn't match certificate's altnames]
__cached_trace__:
[ { receiver: [Object], fun: [Function], pos: 39197 },
{ receiver: [Object], fun: [Function: emit], pos: 3276 },
```
To fix this error:
Please add this setting process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; to line 9 of /opt/appcelerator/360/conf/default/partners/acs.js, and
then restart dashboard.
Reference:
https://github.com/appcelerator/360/blob/on-premise-enedis/conf/default/partners/acs.js#L16
https://groups.google.com/forum/#!msg/node-red/8iHufbwgxX8/GFcc1Q5OqSsJ
http://stackoverflow.com/questions/10888610/ignore-invalid-self-signed-ssl-certificate-in-node-js-with-https-request/21961005#21961005
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment