Open scubar opened 2 years ago
Would you mind creating a PR for this? Thank you!
Would you mind creating a PR for this? Thank you!
Sure I can file one, just wasn't sure about the best way to handle this. I'm not sure if my factors_body is unique or if its possible to have multiple email factors etc.
Would we want to possibly add an argument to the Arlo class init that would allow them to specify the email address to use for 2FA and then iterate through the factorNickname of each email factor with it?
Hey! Sorry, for the long delay. I have had a busy life lately... I would be ok with adding an argument to init. That seems reasonable.
I went ahead and pushed a fix for your issue. Give https://github.com/jeffreydwalter/arlo/releases/tag/1.2.62 a try.
Please close this issue if it works. If not, leave me a comment. Thanks!
Please answer these questions before submitting your issue. Thanks!
What version of Python are you using (
python -V
)?Python 3.10.4
What operating system and processor architecture are you using (
python -c 'import platform; print(platform.uname());'
)?uname_result(system='Linux', node='DESKTOP-45GVB31', release='4.4.0-19041-Microsoft', version='#1237-Microsoft Sat Sep 11 14:32:00 PST 2021', machine='x86_64')
Which Python packages do you have installed (run the
pip freeze
orpip3 freeze
command and paste output)?Which version of ffmpeg are you using (
ffmpeg -version
)?Which Arlo hardware do you have (camera types - [Arlo, Pro, Q, etc.], basestation model, etc.)?
Arlo Pro 2
VMB4000 Base Station
What did you do?
Note: I was able to resolve this issue by making a change within Arlo.py. This issue may affect other users as well so I wanted to report it.
My factors body has my email factorRole as "SECONDARY" but by default it would only be matched if it was "PRIMARY".
This was causing StopIteration to be thrown. Here's what my factors_body looks like:
I simply changed line 222 in Arlo.py as of commit a8e74384f235e6e694c8713c172fd30bdb57fd7a to:
Does this issue reproduce with the latest release?
Yes