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.

TCP Timeout after 15000ms - "emeter":{"get_realtime"

See original GitHub issue

deleted home bridge by accident, but also switched home bridge to a new router. moved to DSM 7 on Synology NAS that runs home bridge and now getting a number of these errors from various things. Noticed it when I was looking at my router settings as I switched from AC to AX router, but ended up going back to old router, still seeing issues. I assume this might be a DSM 7 issue with the DSM 6 home bridge 1.x copied to home bridge for synology 2.0.

Expected Behavior

not to throw codes, and cause home bridge restarts

Current Behavior

Throws tons of these codes

Steps to Reproduce (for bugs)

Versions

  • Node: node --version
  • Homebridge: homebridge --version
  • OS:

Configuration

{ “name”: “TplinkSmarthome”, “addCustomCharacteristics”: true, “deviceTypes”: [ “plug”, “bulb” ], “platform”: “TplinkSmarthome” }


### Homebridge Log / Command Output
[12/29/2021, 10:20:42 PM] [TplinkSmarthome] ResponseError: err_code not zero response: {"err_code":-2001,"err_msg":"Module not support"} command: {"emeter":{"get_realtime":{}}}
    at Object.processResponse (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/utils.ts:219:11)
    at Plug.sendCommand (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/device/index.ts:466:21)
    at Emeter.getRealtime (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/shared/emeter.ts:92:9)
    at refreshEmeterForAccessories (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/src/platform.ts:140:13)
    at async Promise.all (index 7)
    at refreshEmeter (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/src/platform.ts:157:11) {
  response: '{"err_code":-2001,"err_msg":"Module not support"}',
  command: '{"emeter":{"get_realtime":{}}}',
  modules: [ 'emeter' ],
  methods: []
}
[12/29/2021, 10:20:57 PM] [TplinkSmarthome.API] TCP 192.168.44.163:9999 Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:20:57 PM] [TplinkSmarthome.API] [Freezer] device.send() Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:20:57 PM] [TplinkSmarthome] [Freezer] emeter.getRealtime()
[12/29/2021, 10:20:57 PM] [TplinkSmarthome] Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:21:12 PM] [TplinkSmarthome.API] TCP 192.168.44.163:9999 Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"system":{"get_sysinfo":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:21:12 PM] [TplinkSmarthome.API] [Freezer] device.send() Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"system":{"get_sysinfo":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:21:27 PM] [TplinkSmarthome.API] TCP 192.168.44.163:9999 Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:21:27 PM] [TplinkSmarthome.API] [Freezer] device.send() Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:21:42 PM] [TplinkSmarthome.API] TCP 192.168.44.163:9999 Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:21:42 PM] [TplinkSmarthome.API] [Freezer] device.send() Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:21:42 PM] [TplinkSmarthome] [Freezer] emeter.getRealtime()
[12/29/2021, 10:21:42 PM] [TplinkSmarthome] Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:22:07 PM] [TplinkSmarthome.API] TCP 192.168.44.163:9999 Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:22:07 PM] [TplinkSmarthome.API] [Freezer] device.send() Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:22:07 PM] [TplinkSmarthome] [Freezer] emeter.getRealtime()
[12/29/2021, 10:22:07 PM] [TplinkSmarthome] Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:22:32 PM] [TplinkSmarthome.API] TCP 192.168.44.163:9999 Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:22:32 PM] [TplinkSmarthome.API] [Freezer] device.send() Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:22:32 PM] [TplinkSmarthome] [Freezer] emeter.getRealtime()
[12/29/2021, 10:22:32 PM] [TplinkSmarthome] Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:22:57 PM] [TplinkSmarthome.API] TCP 192.168.44.163:9999 Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:22:57 PM] [TplinkSmarthome.API] [Freezer] device.send() Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:22:57 PM] [TplinkSmarthome] [Freezer] emeter.getRealtime()
[12/29/2021, 10:22:57 PM] [TplinkSmarthome] Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:23:22 PM] [TplinkSmarthome.API] TCP 192.168.44.163:9999 Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:23:22 PM] [TplinkSmarthome.API] [Freezer] device.send() Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:23:22 PM] [TplinkSmarthome] [Freezer] emeter.getRealtime()
[12/29/2021, 10:23:22 PM] [TplinkSmarthome] Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
slvrscoobiecommented, Jan 27, 2022

anything? Im still getting this by the thousands.

0reactions
steinauf85commented, Oct 23, 2022

also getting these errors, but only for 1 of my devices, a KP115. I have mostly older plugs, but at least 2 of this model. the other doesnt seem to do it. the errors occur intermittently. in fact at the moment, my logs only show it happening once in the past 5 hours.

[10/22/2022, 8:16:02 PM] [TplinkSmarthome.API] TCP 192.168.1.202:9999 Error: TCP Timeout after 15000ms
192.168.1.202:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/usr/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:559:17)
    at processTimers (node:internal/timers:502:7)
[10/22/2022, 8:16:02 PM] [TplinkSmarthome.API] [Cat tree] device.send() Error: TCP Timeout after 15000ms
192.168.1.202:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/usr/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:559:17)
    at processTimers (node:internal/timers:502:7)
[10/22/2022, 8:16:02 PM] [TplinkSmarthome] [Cat tree] emeter.getRealtime()
[10/22/2022, 8:16:02 PM] [TplinkSmarthome] Error: TCP Timeout after 15000ms
192.168.1.202:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/usr/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:559:17)
    at processTimers (node:internal/timers:502:7)
Read more comments on GitHub >

github_iconTop Results From Across the Web

TCP Timeout error : r/homebridge - Reddit
I would say this is a device issue. Some of those WiFi devices go into a sleep mode and have to be re-connected...
Read more >
How to modify the TCP/IP maximum retransmission time-out
Discusses how to modify the TCP/IP maximum retransmission time-out. ... The timer for a given segment is doubled after each retransmission of that...
Read more >
TCP timeout after receiving a RST - Stack Overflow
After this, the client only sends SYN packets every 15 seconds. I wanted to understand where this 15 seconds timeout is coming from?...
Read more >
TCP Timeouts - LIVEcommunity - 49025
604800 seconds = 7 days and the TCP/UDP timeouts are idle sessions. Unless your traffic has no ... View solution in original post....
Read more >
The Vanishing Thread and Postgresql TCP Connection ...
A Connection timed out after 130 seconds is likely a timeout for failing to get SYN ... Time since last ACK is 15000ms...
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