apatsufas / homebridge-tapo-p100

Homebridge TP-LINK Tapo P100 Platform Plugin
Apache License 2.0
64 stars 14 forks source link

Error: Request failed with status code 429 #29

Open TomKrysz opened 2 years ago

TomKrysz commented 2 years ago

After update to version 1.4.16 I noticed that plugin performs TAPO flloding at port 80 and all L510E stopped working (visible but not reachable). After downgrade to 1.4.15 all back to normal.

To Reproduce: This occurs every time I restarted HomeBridge.

Expected behavior:

Logs: [25/01/2022, 05:35:13] [Tapo Smart Platform] 371 Error: Request failed with status code 429 [25/01/2022, 05:35:13] [Tapo Smart Platform] 371 Error: Request failed with status code 429 [25/01/2022, 05:35:13] [Tapo Smart Platform] 371 Error: read ECONNRESET [25/01/2022, 05:35:13] [Tapo Smart Platform] 371 Error: read ECONNRESET

Plugin Config:

"platforms": [
    {
        "name": "Tapo Smart Platform",
        "username": ,
        "password": ,
        "platform": "TapoP100",
        "devices": [
            {
                "name": "Bulb 1",
                "host": "10.1.2.X",
                "type": "Bulb",
                "updateInterval": 30,
                "timeout": 5
            },
            {
                "name": "Bulb 2",
                "host": "10.1.2.X",
                "type": "Bulb",
                "updateInterval": 30,
                "timeout": 5
            },
            {
                "name": "Bulb 3",
                "host": "10.1.2.X",
                "type": "Bulb",
                "updateInterval": 30,
                "timeout": 5
            },
            {
                "name": "Bulb 4",
                "host": "10.1.2.X",
                "type": "Bulb",
                "updateInterval": 30,
                "timeout": 5
            },
            {
                "name": "Smart Plug 1",
                "host": "10.1.2.X",
                "type": "Plug",
                "updateInterval": 30
                "timeout": 5            },
            {
                "name": "Smart Plug 2",
                "host": "10.1.2.X",
                "type": "Plug",
                "updateInterval": 30
                 "timeout": 5
           },
            {
                "name": "Smart Plug 3",
                "host": "10.1.2.X",
                "type": "Plug",
                "updateInterval": 30
                "timeout": 5
            },
        ]
    }    
]

Screenshots:

Environment:

TomKrysz commented 2 years ago

Versions 16 and 17 beta, still with bug 449. Status requests seem to overlap with timeouted reconnections, resulting in tcp L510 flooding and connection dropping. Several hours after restarting HB, four L510s are plagued by several dozen connections per second, which generates error 449 (checked in router logs). Please do something about it, as plugins from version 16 on are useless as they are.