question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: Unable to login

See original GitHub issue

Client version

2.2.2

Node version

v16.18.0

Operating System type

Docker

Operating system version

Raspberry OS

Describe the bug

It seems the login isn’t working anymore. When using https://mysecurity.eufylife.com/apieu/v2/passport/login I do see a proper response with a data field. When logging into the eufy app with the configured user, everything works OK in the app, just not this client apparently? The app does not appear to have any changed login endpoints, although I did spot new paths: passport/update_agreement_records, passport/query_agreement_msg and passport/query_agreement_records. I am getting this stack trace and then that’s it:

2022-11-09 17:32:34.406  DEBUG [EufySecurity._initializeInternals] No stored data from last exit found 
2022-11-09 17:32:34.413  DEBUG [EufySecurity._initializeInternals] Handling of driver update 
{
  currentVersion: 2.22,
  previousVersion: 0
}
2022-11-09 17:32:34.992  DEBUG [undefined.constructor] Loaded API_BASE: https://security-app-eu.eufylife.com 
2022-11-09 17:32:34.999  DEBUG [EufySecurity._initializeInternals] Load previous login_hash: <redacted> 
2022-11-09 17:32:35.003  DEBUG [EufySecurity._initializeInternals] Generated new openudid: 962f147b4eb1406d 
2022-11-09 17:32:35.005  DEBUG [EufySecurity._initializeInternals] Generated new serial_number: 634a5dba74dd 
2022-11-09 17:32:35.080  DEBUG [src/lib/server.ts:489  EufySecurityServer.start] Starting server on host 0.0.0.0, port 3000 
2022-11-09 17:32:35.087  INFO  [src/lib/server.ts:495  EufySecurityServer.start] Eufy Security server listening on host 0.0.0.0, port 3000 
2022-11-09 17:32:35.091  DEBUG [HTTPApi.login] Login and get an access token 
{
  token: null,
  tokenExpiration: null
}
2022-11-09 17:32:35.098  DEBUG [HTTPApi.request] Request: 
{
  method: 'post',
  endpoint: 'v2/passport/login_sec',
  token: null,
  data: {
    ab: '<redacted>',
    client_secret_info: {
      public_key: '04bc749631da017d514f498652a849a7df4f7ade1731282479ba92b5d0856c6861c1e95c29df98eeef8a593e298edc0686e52747d948d31b29d5bae0a49719f391'
    },
    enc: 0,
    email: '<redacted>',
    password: '[***]',
    time_zone: 0,
    transaction: '1668015155096'
  }
}
2022-11-09 17:32:35.195  DEBUG [HTTPApi.request] Response: 
{
  response: {
    code: 0,
    msg: 'Succeed.'
  }
}
2022-11-09 17:32:35.204  ERROR [HTTPApi.login] Generic Error: 
 TypeError  Cannot read properties of undefined (reading 'user_id')
error stack:
• api.ts:289 login
    node_modules/eufy-security-client/src/http/api.ts:289:66

• task_queues:96 processTicksAndRejections
    node:internal/process/task_queues:96:5

• eufysecurity.ts:662 connect
    node_modules/eufy-security-client/src/eufysecurity.ts:662:9

• server.ts:496 start
    src/lib/server.ts:496:9

• server.ts:66 <anonymous>
    src/bin/server.ts:66:9

Same issue as: https://github.com/bropat/eufy-security-ws/issues/146

To reproduce

Start the client.

Screenshots & Logfiles

No response

Additional context

No response

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Reactions:2
  • Comments:48 (33 by maintainers)

github_iconTop GitHub Comments

6reactions
fuatakguncommented, Nov 10, 2022

i am working on this

3reactions
bropatcommented, Nov 12, 2022

In the next version, if you do not set the parameter trustedDeviceName, a random model of an existing Android phone will simply be set and kept at the first login. This way, not so many people should use “eufyclient” (default value). If someone subsequently sets the above-mentioned parameter anyway, then this will of course take precedence.

Attention: If someone uses the 2FA and changes this parameter after a successful authentication, they will be asked to check again (new trust).

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Bug] Unable to login with Google Account · Issue #332 - GitHub
New users are not able to login using Google Account. image. How to reproduce the bug. Simply login using the traditional way. Crash...
Read more >
How to Fix Windows 10 Login Problems [EXPERT GUIDE]
In this guide, you will learn how to fix Windows 10 login problems using 8 different ... This is a serious error, as...
Read more >
Fix Mobile Legends Login Bug - Unable to Login - Tech How
A short tutorial on how to fix the issue when you're unable to log in with your Mobile Legends: Bang Bang account on...
Read more >
Bug: Unable to load POGO, failed to login. : r/TheSilphRoad
Bug : Unable to load POGO, failed to login. After uninstalling, reinstalling app, updating phone & app and restarting again.
Read more >
solo.nordea.fi - unable to login to service (problem with cookies)
That is one part of the patch for the security bug 155114 that you cannot see. Unfortunately, this rule has never been enforced...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found