question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Connection lost every 2-3 Minutes by some users

See original GitHub issue

Hello,

I want to reminisce with this Issue again to the now long time existing problem, hoping to find help, because I can use the Iot service very limited.

I have to partially re-order my google home several times to run it, whether via IFTTT or the direct connection to GHome, I quote “The service Iobroker is currently unavailable”.

2019-08-11 22:16:54.958 - �[31merror�[39m: iot.0 Error by device connection: "read ECONNRESET" 2019-08-11 22:16:54.958 - �[32minfo�[39m: iot.0 Connection changed: disconnect 2019-08-11 22:16:54.958 - �[32minfo�[39m: iot.0 Connection lost 2019-08-11 22:17:00.268 - �[32minfo�[39m: iot.0 Connection changed: connect 2019-08-11 22:22:00.541 - �[31merror�[39m: iot.0 Error by device connection: "read ECONNRESET"

Same problem as in this closed issue: Aws Iot Issue #251

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:37 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
graebmcommented, Sep 9, 2019

The wireshark logs from the router are not very helpful, since the data is all encrypted. You do not need to keep including those.

Have you tried setting a shorteer keepalive value? Like:

var awsIot = require('aws-iot-device-sdk');

var device = awsIot.device({
     debug: true,
   keepalive: 60,
   keyPath: <YourPrivateKeyPath>,
  certPath: <YourCertificatePath>,
    caPath: <YourRootCACertificatePath>,
  clientId: <YourUniqueClientIdentifier>,
      host: <YourCustomEndpoint>,
       ...
});


1reaction
Apollon77commented, Sep 11, 2019

Coooool …Then we will prepare a new release with this change soon. In theory it would be intersting which other values would also work, so that maybe the default or the “best practice” could be adoped to prevent such problems also for other users

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why your Internet keeps disconnecting every few minutes and ...
If internet keeps disconnecting randomly the common causes are-1.Radio interference 2. 'altered default gateway' address at ISP 3.Dusty PC.
Read more >
Reasons Wi-Fi Connections Drop - Lifewire
There often seems to be no reason behind Wi-Fi connections that randomly drop off or weaken. However, there are actually several common ...
Read more >
Is Your Wireless Connection Dropping? Here's The Solution
Is your wireless connection dropping? Common causes are your wireless router and network card. Our experts bring you step-ty-step solutions.
Read more >
Mapped drive is disconnected - Windows Client
Mapped drive connection to network share may be lost. Article; 09/23/2021; 3 minutes to read; 2 contributors. Feedback ...
Read more >
Losing internet connection for 1-5 Seconds - every 20-25 ...
Try ethernet first since wifi will always get some random latency spikes and packet loss. You want to leave this run in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found