hillaliy / homebridge-midea-air

Homebridge plugin for Midea units
MIT License
71 stars 23 forks source link

Error: Request failed with status code 502 #30

Closed jackklink closed 2 years ago

jackklink commented 2 years ago

Hey. I am having this issue again and I can never remember what ends up working for me to fix it. The plugin seemingly has no issue logging in as it is able to find the IDs of each AC and add them to HomeKit. But when the plugin tries to send any command, I receive the errors below.

I have tried removing both ACs from the Midea app and adding them back in. I have also tried sharing the ACs to a different Midea account and setting up that account with the plugin, still to no avail. Everything was working fine until today it suddenly stopped for no clear reason after months of working fine.

I am using two Midea window AC units.

Any ideas? Your help is greatly appreciated!

[11/28/2021, 4:31:03 PM] [midea] [MideaPlatform.ts] sendCommand (Intent: [updateValues] (fetch params?) attempt 1/2) request failed Error: Request failed with status code 502 [11/28/2021, 4:31:03 PM] [midea] [updateValues] Error sending the command: undefined. Trying to re-login before re-issuing command... [11/28/2021, 4:31:03 PM] [midea] [MideaPlatform.ts] sendCommand (Intent: [updateValues] (fetch params?) attempt 1/2) request failed Error: Request failed with status code 502 [11/28/2021, 4:31:03 PM] [midea] [updateValues] Error sending the command: undefined. Trying to re-login before re-issuing command... [11/28/2021, 4:31:03 PM] [midea] [updateValues] re-login attempt failed [11/28/2021, 4:31:03 PM] [midea] [updateValues] re-login attempt failed [11/28/2021, 4:31:18 PM] [midea] [MideaPlatform.ts] sendCommand (Intent: [updateValues] (fetch params?) attempt 1/2) request failed Error: Request failed with status code 502 [11/28/2021, 4:31:18 PM] [midea] [updateValues] Error sending the command: undefined. Trying to re-login before re-issuing command... [11/28/2021, 4:31:18 PM] [midea] [MideaPlatform.ts] sendCommand (Intent: [updateValues] (fetch params?) attempt 1/2) request failed Error: Request failed with status code 502 [11/28/2021, 4:31:18 PM] [midea] [updateValues] Error sending the command: undefined. Trying to re-login before re-issuing command... [11/28/2021, 4:31:18 PM] [midea] [updateValues] re-login attempt failed [11/28/2021, 4:31:18 PM] [midea] [MideaPlatform.ts] sendCommand (Intent: [updateValues] (fetch params?) attempt 2/2) request failed Error: Request failed with status code 502 [11/28/2021, 4:31:18 PM] [midea] [updateValues] sendCommand command still failed after retrying: undefined

jackklink commented 2 years ago

Okay so the only solution to this issue appears to be just disabling the plugin and waiting a day. I waited over night with the plugin disabled, and now everything works fine. I think the Midea server must've blocked access from the plugin for awhile.