node azure/cosmo throwing exceptions



Bump into another one of these error while trying to use azure/cosmo db :-


{ Error: self signed certificate
    at TLSSocket.onConnectSecure (_tls_wrap.js:1048:34)
    at TLSSocket.emit (events.js:182:13)
    at TLSSocket._finishInit (_tls_wrap.js:628:8)
  code: 'DEPTH_ZERO_SELF_SIGNED_CERT',
  headers:
   { 'x-ms-throttle-retry-count': 0,
     'x-ms-throttle-retry-wait-time-ms': 0 } }



the solution is simply :-

set NODE_TLS_REJECT_UNAUTHORIZED=0




Comments

Popular posts from this blog

PySpark - Working with JDBC Sqlite database