howanghk / homebridge-ewelink

Homebridge plugin to control Sonoff relays with OEM firmware
MIT License
81 stars 46 forks source link

503 Service Temporarily Unavailable #59

Closed imsturmdernacht closed 4 years ago

imsturmdernacht commented 4 years ago

Dear people,

I got the following errors since yesterday evening. Is it a problem of my configuration or is it a problem on ewelink servers?

Regards

[2019-11-14 13:40:50] [eWeLink] An error was encountered while requesting a list of devices while interrogating power status. Error was [Error: Parsing error : Unexpected token < in JSON at position 0, body=

503 Service Temporarily Unavailable

503 Service Temporarily Unavailable


openresty

] [2019-11-14 13:40:50] [eWeLink] An error was encountered while requesting a list of devices while interrogating power status. Error was [Error: Parsing error : Unexpected token < in JSON at position 0, body=

503 Service Temporarily Unavailable

503 Service Temporarily Unavailable


openresty

] [2019-11-14 13:40:50] [eWeLink] An error was encountered while requesting a list of devices while interrogating power status. Error was [Error: Parsing error : Unexpected token < in JSON at position 0, body=

503 Service Temporarily Unavailable

503 Service Temporarily Unavailable


openresty

]

urmo53 commented 4 years ago

i have same problem too

howanghk commented 4 years ago

Does the official eWeLink works for you?

imsturmdernacht commented 4 years ago

I‘ve tested different ewelink plugins and also the original Homebridge-ewelink, it‘s always the same. The Ewelink iOS App is working fine.

urmo53 commented 4 years ago

ewelink app works, strange that even if i give commands to Siri they work, but the home app shows no response on switches. And homebridge shows same error 503 Service.......

imsturmdernacht commented 4 years ago

Exactly the same behavior on my homebridge.

imsturmdernacht commented 4 years ago

More detailed Error information:

[2019-11-15` 10:55:04] [eWeLink] An error was encountered while requesting a list of devices while interrogating power status. Error was [Error: Parsing error : Unexpected token < in JSON at position 0, body=

503 Service Temporarily Unavailable

503 Service Temporarily Unavailable


openresty
at Object.parseBody (/usr/local/lib/node_modules/homebridge-ewelink-max/node_modules/request-json/main.js:67:19)
at Request._callback (/usr/local/lib/node_modules/homebridge-ewelink-max/node_modules/request-json/main.js:148:26)
at Request.self.callback (/usr/local/lib/node_modules/homebridge-ewelink-max/node_modules/request/request.js:185:22)
at Request.emit (events.js:210:5)
at Request.<anonymous> (/usr/local/lib/node_modules/homebridge-ewelink-max/node_modules/request/request.js:1161:10)
at Request.emit (events.js:210:5)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge-ewelink-max/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:299:28)
at IncomingMessage.emit (events.js:215:7)
at endReadableNT (_stream_readable.js:1183:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)]
pdonat01 commented 4 years ago

Same problem here with sonoff s20 ac official firmware

pdonat01 commented 4 years ago

No, But a little bit strange. I have sonoff tx swich and s20 ac adapter. If i delete the s20 ac adapter the plugin working fine. Maybe the ac plug type devices cause the error.

imsturmdernacht commented 4 years ago

In my case there are 7 Sonoff Touch EUC1 and one T1 1C. Problem exists since last Thursday evening German time without any changes on the whole setup. No solution so far. Homebridge shows no response on all devices.

pdonat01 commented 4 years ago

Yes the problem appear from last thursday. Then the problem is on ewelink side :/ The developer know any solution?

imsturmdernacht commented 4 years ago

503 means for me a server or a service is no longer responding. But I don‘t know which one or how to replace or correct it.

[Error: Parsing error : Unexpected token < in JSON at position 0, body=.... The most common cause of this is when an HTTP API is retreived by the browser with a Content-Type:application/json; charset=UTF-8 header set that contains invalid JSON in the response body.

If the server-side throws an error thay breaks a JSON object you’ll see this.

tanini23 commented 4 years ago

Same problem here. Does anybody knows how to fix it?

imsturmdernacht commented 4 years ago

Nothing new so far.. plugin still not working, my homebridge is down

tawagny commented 4 years ago

same problem here .. at Object.parseBody (/usr/local/lib/node_modules/homebridge-ewelink-max/node_modules/request-json/main.js:67:19) at Request._callback (/usr/local/lib/node_modules/homebridge-ewelink-max/node_modules/request-json/main.js:148:26) at Request.self.callback (/usr/local/lib/node_modules/homebridge-ewelink-max/node_modules/request/request.js:185:22) at Request.emit (events.js:210:5) at Request. (/usr/local/lib/node_modules/homebridge-ewelink-max/node_modules/request/request.js:1161:10) at Request.emit (events.js:210:5) at IncomingMessage. (/usr/local/lib/node_modules/homebridge-ewelink-max/node_modules/request/request.js:1083:12) at Object.onceWrapper (events.js:299:28) at IncomingMessage.emit (events.js:215:7) at endReadableNT (_stream_readable.js:1183:12) at processTicksAndRejections (internal/process/task_queues.js:80:21)

tawagny commented 4 years ago

I had to abandon this plugin. I switched to homeassistant and a solution with lan mode. https://github.com/AlexxIT/SonoffLAN (Russian lang in readme)

any pointers on how to migrate is appreciated

urmo53 commented 4 years ago

I reset 5 of my 11 devices I use the most and shared them with my second ewelink user. i replaced this ewelink plugin with it https://github.com/VictorKrasnov/homebridge-ewelink at the moment they haven't had more problems with at least their 5, at least the first 12h

tawagny commented 4 years ago

thank you .. will give it a try but .I have another question regarding your other 6 devices ,because i removed 4 of my devices and the homebrigde returned back to normal , the devices were 2 dual and 2 4ch pro r2 , rest of my devices is mini , s26 and s20, my question , is any of your other 6 devices by any chance have a dual or 4ch ?

tawagny commented 4 years ago

@urmo53 Thanks that seemed to resolve the issue

howanghk commented 4 years ago

The fix from VictorKrasnov have been incorporated in the latest version. Please install the latest version with

npm install -g homebridge-ewelink-max@latest