skydiver / ewelink-api

eWeLink API for JavaScript
https://www.npmjs.com/package/ewelink-api
MIT License
264 stars 108 forks source link

websocket.js returns { error: 406, sequence: '1645544980000' } #172

Open RaleghDirat opened 2 years ago

RaleghDirat commented 2 years ago

I've been working with the api, with zeroconf for controlling a couple of switches and websocket to grab a log of the temperature and humidity from the web. websocket.js stopped working today with error 406. Is this a ewelink problem or the api needs updating? Thank you.

gleam-ru commented 1 year ago

Same issue. I had same issue. Debugging leaded me to conclusion that server in selected region ("us" by default) is on maintains. Changing target region (to "eu" in my case) resolved the issue.