-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to login #4
Comments
@chrisfilo Were you able to resolve this login issue? I'm getting the same response back. |
Sadly I wasn't.
|
Here is some sample Python which works for me:
|
I get the same issue - tried with CURL, JS and Python and I have an empty data each time. |
Now I'm getting |
UserIsLocked can be resolved by resetting the password |
turns out this was because I didn't RTFM and md5(md5(password)) - logged in now. here is a JS example: const axios = require('axios');
const md5 = require('md5');
const endpoint = `https://api.wyzecam.com:8443`;
const payload = {
sc: 'f5609af3fa9541fd82a486df5fd9965a',
sv: '1ee66ee1fe03403b9ded3fe2fa869f2a',
app_ver: 'com.hualai___1.1.52',
ts: 1524248711789,
access_token: '',
phone_id: 'bc151f39-787b-4871-be27-5a20fd0a1937',
user_name: 'you@you.com',
password: md5(md5('password')),
};
const config = {
headers: {
'Content-Type': 'application/json',
},
};
async function getToken() {
console.log('Fetching token');
let token;
if (token) {
return token;
}
const { data } = await axios.post(
`${endpoint}/app/user/login`,
payload,
config
);
console.log(data);
return data;
}
async function go() {
getToken().catch(console.error);
}
go().catch(console.error); |
this js code didn't work for me, data is still empty { } |
I'm trying to log in but I am getting the following reply
I wonder if my password hash is correct. I used the following python code:
Does this look correct?
The text was updated successfully, but these errors were encountered: