ewelink-api icon indicating copy to clipboard operation
ewelink-api copied to clipboard

unable to get local issuer certificate

Open airbone42 opened this issue 3 years ago • 0 comments

Hi,

I'm trying to use this handy package, but always end up with following certificate error. As the data is anyway not sensitive, is it possible to bypass the certificate-check?

{ FetchError: request to https://eu-api.coolkit.cc:8080/api/user/login failed, reason: unable to get local issuer certificate
    at ClientRequest.<anonymous> (/openhab/userdata/scripts/watertemperature/node_modules/node-fetch/lib/index.js:1455:11)
    at ClientRequest.emit (events.js:198:13)
    at TLSSocket.socketErrorListener (_http_client.js:401:9)
    at TLSSocket.emit (events.js:198:13)
    at emitErrorNT (internal/streams/destroy.js:91:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  message:
   'request to https://eu-api.coolkit.cc:8080/api/user/login failed, reason: unable to get local issuer certificate',
  type: 'system',
  errno: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY',
  code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY' }

airbone42 avatar Jul 13 '21 10:07 airbone42