Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
adrianpautasso
Contributor
Contributor

Issues getting started with EnigmaJS.

Hello community. I'm trying use enigma.js. When execute the next code: 'node my-file.js' I get the next error in the console: 

Something went wrong 😞 ErrorEvent {
  target:
   WebSocket {
     domain: null,
     _events:
      { open: [Object],
        close: [Object],
        error: [Object],
        message: [Object] },
     _eventsCount: 4,
     _maxListeners: undefined,
     readyState: 3,
     protocol: '',
     _binaryType: 'nodebuffer',
     _closeFrameReceived: false,
     _closeFrameSent: false,
     _closeMessage: '',
     _closeTimer: null,
     _closeCode: 1006,
     _extensions: {},
     _isServer: false,
     _receiver: null,
     _sender: null,
     _socket: null,
     url: 'wss://192.168.0.82/app/275dc3da-0553-40eb-8a80-a0b79c115a8e',
     _req: null },
  type: 'error',
  message: 'unable to verify the first certificate',
  error:
   { Error: unable to verify the first certificate
       at Error (native)
       at TLSSocket.<anonymous> (_tls_wrap.js:1092:38)
       at emitNone (events.js:86:13)
       at TLSSocket.emit (events.js:185:7)
       at TLSSocket._finishInit (_tls_wrap.js:610:8)
       at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:440:38) code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' } } 
I intuit that it is a problem of certificates, since I'm running from a client and not in the server. Can you help me?

Thans. 
Labels (1)
1 Reply
Aiham_Azmeh
Employee
Employee

Hi @adrianpautasso,

It can be be many things, here is a github `ws` thread that may help you https://github.com/websockets/ws/issues/257