Open IoT-CI-Ltd opened 4 hours ago
Did you create your account using Apple, Google, Etc?
i created the account using the iOs app here: https://apps.apple.com/us/app/ubox/id1436112326 the email account domain is a business one.
also, I cannot see that users.json file is being created as these are the contents of the directory
api_docs LICENSE node_modules package-lock.json server.js CONTRIBUTING.md login.js package.json README.md
If the login fails the users.json will not be created. If you give me a minute I will get back to you with some troubleshooting steps 🙂.
cool, thanks, no rush here really, just let me know if I can help test at all
Do you have access to a code editor?
If you do could you paste this code under line 28
console.log('email',process.env.email)
console.log('password',process.env.password)
after that run login.js again and check that the email and password in the console match what is in the env file.
sorry, which file should I insert under line28?
I can nano files on this machine but very little more at present
login.js
const email = process.env.email; const password = hmacSha1Base64(process.env.password); console.log(password) console.log('email',process.env.email) console.log('password',process.env.password)
so that section should look like this?
Yes
now try running login.js again
yes, those creds returned are correct
can you go to Sha1 Conversion Tool and select these options:
enter your password and hash it please then check if it matches the string logged by console.log(password)
it is the same apart from the = at the end which is not displayed in the console but displayed when I use the Hashtool
The hash should match the one generated on the webpage but the = is supposed to be replaced with a ,
. Are you sure there is nothing?
I have just updated the code, please remove the current directory and follow the setup instructions again. When setting up please change the env file values password
and debug_mode
to:
password=The Hashed Password with '=' replaced to ','
debug_mode=true
so in password line it should be
password=HASSHEDPASSWORD replaced to ','
?
when you hash you get HASHEDPASSWORD=
just change it to HASHEDPASSWORD,
and set that in your env file
Response received: { code: 20005, data: { failed_count: 3, allow_try_count: 30, deny_retry_in_seconds: 0 }, msg: 'Invalid account or password(20005)' } Login failed: Invalid account or password(20005)
did you delete the directory and run the git clone command again?
yes
Did you add the
debug_mode=true
to the env file?
yes, one se, just doing all that again to make sure
Yea, jiust redid all of that and it is the same response
i do see this on npm install command
ubox_camera_api$ npm install npm WARN deprecated crypto@1.0.1: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.
?
another thing, when I login here: https://api-us.ubianet.com/public/login all i get is a flash "Success" and then it goes back to the login page. I assume that this is normal?
I never knew about that webpage, but its not the api i used.
Yea, jiust redid all of that and it is the same response
i do see this on npm install command
ubox_camera_api$ npm install npm WARN deprecated crypto@1.0.1: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.
?
You dont need to worry about that, its normal.
THe only other thing I can think of is country selection that would be different, Have I used the right app to create the account?
You have used the correct app, what country do you select when you login?
The only one i have tested is United States
United Kingdom
Let me try with US and see if that does anything
no, don't think country makes a difference
Hi,
First, thanks for your work on this. Annoying that these camera's don't expose readily available stream.
I am however having some issues with this running on Ubuntu.
I have all the .env file all running but keep getting:
Response received: { code: 20005, data: { failed_count: 2, allow_try_count: 30, deny_retry_in_seconds: 0 }, msg: 'Invalid account or password(20005)' } Login failed: Invalid account or password(20005)
I created the account using the Mobile App (iOs).
I had initially configured the camera and account via the i-Cam app, but then deregistered and then configured using the https://apps.apple.com/us/app/ubox/id1436112326
I have also logged in successfully with the creds in the .env file here: https://api-us.ubianet.com/public/login
Have I missed a step somewhere?
Many thanks