-
Notifications
You must be signed in to change notification settings - Fork 0
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
TypeError: Cannot read properties of undefined (reading 'id') #2
Comments
You can modify the code to figure out what the response is from the API eufy-device-id-js/lib/clients.js Line 76 in d7e95bc
Put in a console.log and maybe there’s an error. |
where do i put im console.log? im not sure what to type where |
the exact steps i did to get this far is in ubuntu terminal |
Not sure if Copilot is doing something wrong or what... but look for this code:
This is in the file clients.js, in the class EufyHomeSession (which Copilot claims to not exist). Find:
and change to:
and re-run it. |
found it, thank you!! log told me my login was incorrect however i know the password is correct, upon looking in the eufy app i forgot to add the +eufy to my email address in my password manager |
Great, you're welcome and happy to help! |
when i run hbadmin@homebridge-ubuntu:~/eufy-device-id-js$ node index.js "myemail@gmail.com" "mypassword" i get the following error message
Error: TypeError: Cannot read properties of undefined (reading 'id')
at EufyHomeSession.login (/home/hbadmin/eufy-device-id-js/lib/clients.js:77:63)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async EufyHomeSession._request (/home/hbadmin/eufy-device-id-js/lib/clients.js:84:13)
at async /home/hbadmin/eufy-device-id-js/index.js:14:22
The text was updated successfully, but these errors were encountered: