Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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' } }
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