maxinminax / node-mihome

Control Mi Home devices, such as Mi Robot Vacuums, Mi Air Purifiers, Mi Smart Home Gateway (Aqara) and more
MIT License
121 stars 35 forks source link

login verification failed #2

Closed pyxiscloud closed 4 years ago

pyxiscloud commented 4 years ago

Hello, I've tried to connect micloud, but got "登录验证失败" "login verification failed"

MyCode:

`const mihome = require('node-mihome');

async function LoginMethod() { console.log("start") await mihome.miCloudProtocol.login({ username: "", password: "" }); }

LoginMethod().catch(err => console.log(err.message)).then( () => {console.log("EEEE");} ); `

debug info: mihome:micloud Login with username [object Object] +0ms mihome:micloud Login step 1: OK - &&&START&&&{"serviceParam":"{\"checkSafePhone\":false}","qs":"%3Fsid%3Dxiaomiio%26_json%3Dtrue","code":70016,"captchaUrl":null,"callback":"https://sts.api.io.mi.com/sts","location":"","_sign":"0psXfr43eNI0IX6q9Suk3qWbRqU=","desc":"登录验证失败","sid":"xiaomiio"} +426ms The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined

pyxiscloud commented 4 years ago

find helpful in first issue )