jeffreydwalter / arlo

Python module for interacting with Netgear's Arlo camera system.
Apache License 2.0
517 stars 124 forks source link

401 Client Error: for url: https://my.arlo.com/hmsweb/users/devices #189

Open miag676 opened 2 years ago

miag676 commented 2 years ago

Please answer these questions before submitting your issue. Thanks!

What version of Python are you using (python -V)?

Python 3.9.2

What operating system and processor architecture are you using (python -c 'import platform; print(platform.uname());')?

uname: uname_result(system='Windows', node='DESKTOP-25M4S9P', release='10', version='10.0.19041', machine='AMD64')

Which Python packages do you have installed (run the pip freeze or pip3 freeze command and paste output)?

absl-py==1.0.0
appdirs==1.4.4
arlo==1.2.59
astunparse==1.6.3
cachetools==5.0.0
certifi==2021.10.8
charset-normalizer==2.0.12
distlib==0.3.1
filelock==3.0.12
flatbuffers==2.0
future==0.18.2
gast==0.5.3
google-api-core==2.6.1
google-api-python-client==2.39.0
google-auth==2.6.0
google-auth-httplib2==0.1.0
google-auth-oauthlib==0.4.6
google-pasta==0.2.0
googleapis-common-protos==1.55.0
grpcio==1.44.0
h5py==3.6.0
httplib2==0.20.4
idna==3.3
importlib-metadata==4.11.2
keras==2.8.0
Keras-Preprocessing==1.1.2
libclang==13.0.0
Markdown==3.3.6
monotonic==1.6
numpy==1.22.3
oauthlib==3.2.0
opencv-python==4.5.5.62
opt-einsum==3.3.0
pickle-mixin==1.0.2
Pillow==9.0.1
protobuf==3.19.4
pyarlo==0.2.4
pyasn1==0.4.8
pyasn1-modules==0.2.8
pyfiglet==0.8.post1
pyparsing==3.0.7
PySocks==1.7.1
requests==2.27.1
requests-oauthlib==1.3.1
rsa==4.8
screeninfo==0.8
six==1.15.0
sseclient==0.0.22
tensorboard==2.8.0
tensorboard-data-server==0.6.1
tensorboard-plugin-wit==1.8.1
tensorflow==2.8.0
tensorflow-io-gcs-filesystem==0.24.0
termcolor==1.1.0
tf-estimator-nightly==2.8.0.dev2021122109
typing_extensions==4.1.1
uritemplate==4.1.1
urllib3==1.24
virtualenv==20.4.2
Werkzeug==2.0.3
wrapt==1.13.3
zipp==3.7.0

Which version of ffmpeg are you using (ffmpeg -version)?

'ffmpeg' is not recognized as an internal or external command,
operable program or batch file.

Which Arlo hardware do you have (camera types - [Arlo, Pro, Q, etc.], basestation model, etc.)?

Arlo Essential Indoor Security Camera

What did you do?

If possible, provide the steps you took to reproduce the issue. A complete runnable program is good. (don't include your user/password or any sensitive info)

from arlo import Arlo

USERNAME = 'my_username'
PASSWORD = 'my_password'

try:
    arlo = Arlo(USERNAME, PASSWORD)

    #I get the error when I add the following line:
    cameras = arlo.GetDevices('camera')

except Exception as e:
    print(e)

What did you expect to see?

I expected for the program to compile without error.

What did you see instead?

401 Client Error:  for url: https://my.arlo.com/hmsweb/users/devices
{"success":false,"data":{"error":"2401","message":"Access token is empty or unauthorized request","reason":"Empty token"}}

Does this issue reproduce with the latest release?

Yes

miag676 commented 2 years ago

I also checked in settings that I'm not using 2FA. I don't know how to debug it. Are there any commands I could use to check whether I'm logged in? (I don't get the error onyl with this part of the code: arlo = Arlo(USERNAME, PASSWORD)). Should I use the gmail mfa method to get the access token?

Any help would be appreciated!

jeffreydwalter commented 2 years ago

I think this is probably related to: https://github.com/jeffreydwalter/arlo/issues/188

Arlo changed from using EventStream to mqtt for their event bus, so this library is broken right now. I haven't had a chance to update it, but am hoping to get some time this weekend.

miag676 commented 2 years ago

Thank you for your response. I appreciate your effort for this library.