Skip to content
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

Error, when having too many failed attempts for the fingerprint scan #442

Open
Creepios opened this issue Aug 7, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@Creepios
Copy link

Creepios commented Aug 7, 2024

What happened?

Loging in with too many failed attempts of fingerprint scanning leads to an unexpected error, which locks you out of the app

Steps to reproduce

  1. Have fingerprint unlocking activated
  2. Scan the wrong finger until fingerprint scan is locked
  3. Try to get into paperless mobile

Log output from the app

2024-08-07 06:34:39.274	DEBUG   --- [      AuthenticationCubit] - restoreSession           : Trying to restore previous session...
2024-08-07 06:34:39.275	DEBUG   --- [      AuthenticationCubit] - restoreSession           : Verifying user identity...
2024-08-07 06:34:39.277	INFO    --- [                         ] -                          : Setting refresh rate to 120.00000762939453
2024-08-07 06:34:48.512	ERROR   --- [                         ] - main                     : An unexpected error occurred 
---BEGIN ERROR---
PlatformException(LockedOut, The operation was canceled because the API is locked out due to too many attempts. This occurs after 5 failed attempts, and lasts for 30 seconds., null, null)
---END ERROR---
---BEGIN STACKTRACE---
#0      LocalAuthAndroid.authenticate (package:local_auth_android/local_auth_android.dart:76)
<asynchronous suspension>
#1      LocalAuthenticationService.authenticateLocalUser (package:paperless_mobile/features/login/services/authentication_service.dart:12)
<asynchronous suspension>
#2      AuthenticationCubit.restoreSession (package:paperless_mobile/features/login/cubit/authentication_cubit.dart:286)
<asynchronous suspension>

---END STACKTRACE---
2024-08-07 06:35:00.743	DEBUG   --- [      AuthenticationCubit] - restoreSession           : Trying to restore previous session...
2024-08-07 06:35:00.743	DEBUG   --- [      AuthenticationCubit] - restoreSession           : Verifying user identity...
2024-08-07 06:35:00.750	INFO    --- [                         ] -                          : Setting refresh rate to 120.00000762939453
2024-08-07 06:35:00.779	ERROR   --- [                         ] - main                     : An unexpected error occurred 
---BEGIN ERROR---
PlatformException(LockedOut, The operation was canceled because the API is locked out due to too many attempts. This occurs after 5 failed attempts, and lasts for 30 seconds., null, null)
---END ERROR---
---BEGIN STACKTRACE---
#0      LocalAuthAndroid.authenticate (package:local_auth_android/local_auth_android.dart:76)
<asynchronous suspension>
#1      LocalAuthenticationService.authenticateLocalUser (package:paperless_mobile/features/login/services/authentication_service.dart:12)
<asynchronous suspension>
#2      AuthenticationCubit.restoreSession (package:paperless_mobile/features/login/cubit/authentication_cubit.dart:286)
<asynchronous suspension>

---END STACKTRACE---
2024-08-07 06:35:10.958	DEBUG   --- [      AuthenticationCubit] - restoreSession           : Trying to restore previous session...
2024-08-07 06:35:10.959	DEBUG   --- [      AuthenticationCubit] - restoreSession           : Verifying user identity...
2024-08-07 06:35:10.960	INFO    --- [                         ] -                          : Setting refresh rate to 120.00000762939453
2024-08-07 06:35:10.983	ERROR   --- [                         ] - main                     : An unexpected error occurred 
---BEGIN ERROR---
PlatformException(LockedOut, The operation was canceled because the API is locked out due to too many attempts. This occurs after 5 failed attempts, and lasts for 30 seconds., null, null)
---END ERROR---
---BEGIN STACKTRACE---
#0      LocalAuthAndroid.authenticate (package:local_auth_android/local_auth_android.dart:76)
<asynchronous suspension>
#1      LocalAuthenticationService.authenticateLocalUser (package:paperless_mobile/features/login/services/authentication_service.dart:12)
<asynchronous suspension>
#2      AuthenticationCubit.restoreSession (package:paperless_mobile/features/login/cubit/authentication_cubit.dart:286)
<asynchronous suspension>

---END STACKTRACE---

Screenshots

No response

Paperless-ng*x Version

2.11.1

Paperless-Mobile Version

3.2.1

Device

Google Pixel 8 Pro

Operating System Version

Android 14

Device Locale

german

Selected Locale

German

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants