jeffreydwalter / arlo

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

localhost:7788 not found error after "Arlo wants access to your Google Account" screen #180

Closed kskenyon closed 2 years ago

kskenyon 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.9

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

uname_result(system='Darwin', node='MacBook-Pro.local', release='21.2.0', version='Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:41 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T6000', machine='arm64')

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

arlo==1.2.57
bitstring==3.1.9
cachetools==4.2.4
certifi==2021.10.8
cffi==1.15.0
charset-normalizer==2.0.9
cryptography==36.0.0
ecdsa==0.17.0
esptool==3.2
google-api-core==2.3.2
google-api-python-client==2.33.0
google-auth==2.3.3
google-auth-httplib2==0.1.0
google-auth-oauthlib==0.4.6
googleapis-common-protos==1.54.0
httplib2==0.20.2
idna==3.3
monotonic==1.6
numpy==1.21.4
oauthlib==3.1.1
pickle-mixin==1.0.2
Pillow==8.4.0
protobuf==4.0.0rc2
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser==2.21
pyparsing==3.0.6
PyQt6==6.2.0
PyQt6-3D==6.2.0
PyQt6-Charts==6.2.0
PyQt6-DataVisualization==6.2.0
PyQt6-NetworkAuth==6.2.0
PyQt6-sip==13.1.0
PyQt6-WebEngine==6.2.0
pyserial==3.5
PySocks==1.7.1
reedsolo==1.5.4
requests==2.26.0
requests-oauthlib==1.3.0
rsa==4.8
six==1.16.0
sseclient==0.0.22
uritemplate==4.1.1
urllib3==1.24

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

ffmpeg version 3.1.3 Copyright (c) 2000-2016 the FFmpeg developers
built with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --enable-libvidstab --enable-libx265 --disable-doc --arch=x86_64 --enable-runtime-cpudetect
libavutil      55. 28.100 / 55. 28.100
libavcodec     57. 48.101 / 57. 48.101
libavformat    57. 41.100 / 57. 41.100
libavdevice    57.  0.101 / 57.  0.101
libavfilter     6. 47.100 /  6. 47.100
libswscale      4.  1.100 /  4.  1.100
libswresample   2.  1.100 /  2.  1.100
libpostproc    54.  0.100 / 54.  0.100

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

Pro2 w/basestation, Ultra w/basestation, Wireless Doorbell (no basestation)

What did you do?

Followed docs. Get to screen where Google asks for permission then it dies with a localhost:7788 not found error

What did you expect to see?

generate credentials file

What did you see instead?

dies

Does this issue reproduce with the latest release?

Yes, all up to date.

Screen Shot 2021-12-19 at 9 53 03 PM Screen Shot 2021-12-19 at 10 02 18 PM

Looks like a problem with serving localhost:7788 from my Mac. localhost alone does respond.

Traceback (most recent call last): File "/Users/private/arlo/gmail_oauth.py", line 20, in credentials = flow.run_local_server(host='localhost', File "/opt/homebrew/lib/python3.9/site-packages/google_auth_oauthlib-0.4.6-py3.9.egg/google_auth_oauthlib/flow.py", line 476, in run_local_server authorization_response = wsgi_app.last_request_uri.replace("http", "https") AttributeError: 'NoneType' object has no attribute 'replace'

So close yet so far...

Kevin

rsullivan00 commented 2 years ago

@cgmckeever Yeah I think mine just started breaking on day 8 or so.

cgmckeever commented 2 years ago

@rsullivan00 see my follow-up in the other thread. Looks like using a Google Workspace project has more lax restrictions .. I just converted, but I wont know for a week ;)