maticnetwork / dagger.js

Simple library to connect with dagger server and manage subscriptions for Ethereum Blockchain.
https://matic.network/dagger
MIT License
218 stars 42 forks source link

Error: certificate has expired #5

Closed nsvdev closed 5 years ago

nsvdev commented 6 years ago

Yo. Very strange behaviour continues to happen over and over: When having a line like _dagger = new Dagger.default(daggerAddr); Node crashes with this error:

Error: certificate has expired at TLSSocket.onConnectSecure (_tls_wrap.js:1060:34) at TLSSocket.emit (events.js:182:13) at TLSSocket.EventEmitter.emit (domain.js:442:20) at TLSSocket._finishInit (_tls_wrap.js:639:8)

If line _dagger = new Dagger.default(daggerAddr); is commented out error is not showing up.

Any ideas how to solve that?

nsvdev commented 6 years ago

Guys, it turns out that it is the fault of mqtts://mainnet.dagger.matic.network - the domains cert is expired. If using wss://mainnet.dagger.matic.network - everything works well.

anurag-arjun commented 6 years ago

We are looking into this.

jdkanani commented 5 years ago

We have fixed this. @anurag-arjun can you test once and close this if possible?

anurag-arjun commented 5 years ago

Tested it and this is fixed.