-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Describe the bug
imap 2FA fails to see new email containing 2FA code for MANY attempts before finding email then crashing.
To Reproduce
Regular imap setup with zohomail (specifically for LSA login via imap)
Confirmed 2FA emails are arriving in zoho mailbox
early log show normal connectivity:
Arlo Camera Plugin: loaded @scrypted/arlo
[Arlo Provider]: Trying connect to IMAP (attempt 1)
[Arlo Provider]: Connected to IMAP
[Arlo Provider]: Starting IMAP refresh loop 140372816749792
[Arlo Provider]: Performing IMAP login flow
[Arlo Provider]: Trying to initialize Arlo client...
[Arlo]: Using primary authentication host
[Arlo Provider]: Initialized Arlo client, waiting for MFA code
[Arlo Provider]: Checking IMAP for MFA codes (attempt 1)
[Arlo Provider]: No new emails found, will sleep and retry
Expected behavior
login success functionality like a manual 2FA
Logs
[Arlo Provider]: Checking IMAP for MFA codes (attempt 155)
[Arlo Provider]: Found MFA code
[Arlo Provider]: Completing Arlo MFA...
[Arlo Provider]: Unrecoverable login error
Traceback (most recent call last):
File "/data/scrypted_data/plugins/@scrypted/arlo/zip/unzipped/arlo_plugin/provider.py", line 450, in imap_relogin_loop
_ = self.arlo
^^^^^^^^^
File "/data/scrypted_data/plugins/@scrypted/arlo/zip/unzipped/arlo_plugin/provider.py", line 215, in arlo
self._arlo_mfa_complete_auth(self._arlo_mfa_code)
File "/data/scrypted_data/plugins/@scrypted/arlo/zip/unzipped/arlo_plugin/arlo/arlo_async.py", line 273, in complete_auth
raise Exception("Could not complete 2FA, maybe invalid token? If the error persists, please try reloading the plugin and logging in again.")
Exception: Could not complete 2FA, maybe invalid token? If the error persists, please try reloading the plugin and logging in again.
[Arlo Provider]: Will request a plugin restart
Arlo Camera Plugin: plugin restart was requested
the amount attempts before finding the email before a crash is consistently in the hundreds but not the same every time.
Server:
HAOS in UTM virtual Machine in macOS Monterey