iot-nodejs icon indicating copy to clipboard operation
iot-nodejs copied to clipboard

Client keeps disconnecting

Open lobando opened this issue 10 years ago • 5 comments

The new version keeps connecting and disconnecting from the IoTF, I'm connecting as an application. The problem is worse because I can't go back to the old version now, It seems that some dependencies have changed and the old version is showing the same behaviour.

It also seems that the base NodeJs MQTT client is showing the same issue.

lobando avatar Dec 10 '15 00:12 lobando

@jeffdare looks like the bug was introduced with mqtt v1.6.0. v1.5.0 appears to work... downgrading to that version would be an interim fix.

bryancboyd avatar Dec 10 '15 00:12 bryancboyd

Hi @lobando Yes.. its the issue with the mqtt library v1.6.0. Temporally I will fix the issue by lowering the version of mqtt to v1.5.0 used in ibmiotf. I will also raise an issue in the mqtt library. Thanks!

jeffdare avatar Dec 10 '15 07:12 jeffdare

Thanks for your help Jeff, let us know when it's fixed and released to NPM

lobando avatar Dec 10 '15 13:12 lobando

The fixed ibmiotf package is already present in the NPM. You can use that. It now uses [email protected].

jeffdare avatar Dec 10 '15 13:12 jeffdare

Yes, It's working fine for us, thanks again Jeff

lobando avatar Dec 10 '15 14:12 lobando