Erreur depuis le 14/08 HTTPError: 401, 'NoneType' object has no attribute 'GetModesV2'

Bonjour,

Je me suis aperçu en rentrant chez moi que mon installation Arlo n’est plus pilotée (en changement de mode) par le plugin Arlo
les erreurs dans les logs:

requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://myapi.arlo.com/hmsweb/client/subscribe
[2023-08-14 20:47:20][ERROR] : MainThread : Send command to demon error : 'NoneType' object has no attribute 'GetModesV2'
[2023-08-14 20:47:20][ERROR] : MainThread : Method not found !
Exception in thread EventStream:
Traceback (most recent call last):
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/response.py", line 705, in _error_catcher
yield
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/response.py", line 1072, in read_chunked
self._update_chunk_length()
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/response.py", line 1007, in _update_chunk_length
raise InvalidChunkLength(self, line) from None
urllib3.exceptions.InvalidChunkLength: InvalidChunkLength(got length b'', 0 bytes read)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):

J’ai éteint le démon, relancé l’installation des dépendences puis le démon, même problème !

Salut,

Je peux avoir page santé jeedom et les logs des dépendances ?

Salut !

Voilà :


0000|*************************************
0001|*   Launch install of dependencies  *
0002|*************************************
0003|Mon Aug 14 20:57:37 CEST 2023
0004|Hit:1 http://deb.debian.org/debian buster InRelease
0005|Hit:2 http://deb.debian.org/debian buster-updates InRelease
0006|Get:3 http://deb.debian.org/debian buster-backports InRelease [51.4 kB]
0007|Get:4 http://security.debian.org buster/updates InRelease [34.8 kB]
0008|Get:5 https://download.docker.com/linux/debian buster InRelease [54.0 kB]
0009|Get:6 http://mirrors.xtom.de/armbian buster InRelease [52.7 kB]
0010|Get:7 https://deb.nodesource.com/node_16.x buster InRelease [4584 B]
0011|Get:8 http://security.debian.org buster/updates/main armhf Packages [688 kB]
0012|Get:9 http://security.debian.org buster/updates/main arm64 Packages [689 kB]
0013|Get:10 https://download.docker.com/linux/debian buster/stable arm64 Packages [47.4 kB]
0014|Get:11 https://deb.nodesource.com/node_16.x buster/main armhf Packages [782 B]
0015|Get:12 http://mirrors.xtom.de/armbian buster/main arm64 Packages [800 kB]
0016|Get:13 http://mirrors.xtom.de/armbian buster/main all Packages [87.6 kB]
0017|Get:14 http://mirrors.xtom.de/armbian buster/main armhf Packages [457 kB]
0018|Get:15 http://mirrors.xtom.de/armbian buster/buster-utils armhf Packages [68.6 kB]
0019|Get:16 http://mirrors.xtom.de/armbian buster/buster-utils arm64 Packages [115 kB]
0020|Get:17 http://mirrors.xtom.de/armbian buster/buster-utils all Packages [23.3 kB]
0021|Get:18 http://mirrors.xtom.de/armbian buster/buster-utils all Contents (deb) [20.0 kB]
0022|Get:19 http://mirrors.xtom.de/armbian buster/buster-utils armhf Contents (deb) [25.9 kB]
0023|Get:20 http://mirrors.xtom.de/armbian buster/buster-utils arm64 Contents (deb) [67.4 kB]
0024|Get:21 http://mirrors.xtom.de/armbian buster/buster-desktop arm64 Packages [35.9 kB]
0025|Get:22 http://mirrors.xtom.de/armbian buster/buster-desktop armhf Packages [36.7 kB]
0026|Get:23 http://mirrors.xtom.de/armbian buster/buster-desktop armhf Contents (deb) [262 kB]
0027|Get:24 http://mirrors.xtom.de/armbian buster/buster-desktop arm64 Contents (deb) [205 kB]
0028|Get:25 https://deb.nodesource.com/node_16.x buster/main arm64 Packages [778 B]
0029|Fetched 3827 kB in 3s (1137 kB/s)
0030|Reading package lists...
0031|*****************************
0032|Install modules using apt-get
0033|*****************************
0034|Reading package lists...
0035|Building dependency tree...
0036|Reading state information...
0037|python3-pip is already the newest version (18.1-5).
0038|python3-setuptools is already the newest version (40.8.0-1).
0039|python3 is already the newest version (3.7.3-1).
0040|python3-venv is already the newest version (3.7.3-1).
0041|python3-requests is already the newest version (2.21.0-1+deb10u1).
0042|0 upgraded, 0 newly installed, 0 to remove and 231 not upgraded.
0043|Reading package lists...
0044|Building dependency tree...
0045|Reading state information...
0046|ffmpeg is already the newest version (7:4.1.11-0+deb10u1).
0047|0 upgraded, 0 newly installed, 0 to remove and 231 not upgraded.
0048|*************************************
0049|Creating python 3 virtual environment
0050|*************************************
0051|Done
0052|*************************************
0053|Install the required python libraries
0054|*************************************
0055|Requirement already satisfied: pip in /var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages (23.2)
0056|Collecting pip
0057|Obtaining dependency information for pip from https://files.pythonhosted.org/packages/50/c2/e06851e8cc28dcad7c155f4753da8833ac06a5c704c109313b8d5a62968a/pip-23.2.1-py3-none-any.whl.metadata
0058|Downloading pip-23.2.1-py3-none-any.whl.metadata (4.2 kB)
0059|Requirement already satisfied: wheel in /var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages (0.40.0)
0060|Collecting wheel
0061|Obtaining dependency information for wheel from https://files.pythonhosted.org/packages/28/f5/6955d7b3a5d71ce6bac104f9cf98c1b0513ad656cdaca8ea7d579196f771/wheel-0.41.1-py3-none-any.whl.metadata
0062|Downloading wheel-0.41.1-py3-none-any.whl.metadata (2.2 kB)
0063|Downloading pip-23.2.1-py3-none-any.whl (2.1 MB)
0064|━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 20.0 MB/s eta 0:00:00
0065|Downloading wheel-0.41.1-py3-none-any.whl (64 kB)
0066|━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.8/64.8 kB 8.2 MB/s eta 0:00:00
0067|Installing collected packages: wheel, pip
0068|Attempting uninstall: wheel
0069|Found existing installation: wheel 0.40.0
0070|Uninstalling wheel-0.40.0:
0071|Successfully uninstalled wheel-0.40.0
0072|Attempting uninstall: pip
0073|Found existing installation: pip 23.2
0074|Uninstalling pip-23.2:
0075|Successfully uninstalled pip-23.2
0076|Successfully installed pip-23.2.1 wheel-0.41.1
0077|Requirement already satisfied: monotonic>=1.5 in /var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages (1.6)
0078|Requirement already satisfied: urllib3>=1.26 in /var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages (2.0.3)
0079|Collecting urllib3>=1.26
0080|Obtaining dependency information for urllib3>=1.26 from https://files.pythonhosted.org/packages/9b/81/62fd61001fa4b9d0df6e31d47ff49cfa9de4af03adecf339c7bc30656b37/urllib3-2.0.4-py3-none-any.whl.metadata
0081|Downloading urllib3-2.0.4-py3-none-any.whl.metadata (6.6 kB)
0082|Requirement already satisfied: requests>=2.31 in /var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages (2.31.0)
0083|Requirement already satisfied: sseclient==0.0.18 in /var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages (0.0.18)
0084|Requirement already satisfied: cloudscraper>=1.2.70 in /var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages (1.2.71)
0085|Requirement already satisfied: six in /var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages (from sseclient==0.0.18) (1.16.0)
0086|Requirement already satisfied: charset-normalizer<4,>=2 in /var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages (from requests>=2.31) (3.1.0)
0087|Requirement already satisfied: idna<4,>=2.5 in /var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages (from requests>=2.31) (3.4)
0088|Requirement already satisfied: certifi>=2017.4.17 in /var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages (from requests>=2.31) (2023.5.7)
0089|Requirement already satisfied: pyparsing>=2.4.7 in /var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages (from cloudscraper>=1.2.70) (3.0.9)
0090|Requirement already satisfied: requests-toolbelt>=0.9.1 in /var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages (from cloudscraper>=1.2.70) (1.0.0)
0091|Downloading urllib3-2.0.4-py3-none-any.whl (123 kB)
0092|━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 123.9/123.9 kB 8.2 MB/s eta 0:00:00
0093|Installing collected packages: urllib3
0094|Attempting uninstall: urllib3
0095|Found existing installation: urllib3 2.0.3
0096|Uninstalling urllib3-2.0.3:
0097|Successfully uninstalled urllib3-2.0.3
0098|Successfully installed urllib3-2.0.4
0099|ffmpeg version 4.1.11-0+deb10u1 Copyright (c) 2000-2023 the FFmpeg developers
0100|built with gcc 8 (Debian 8.3.0-6)
0101|configuration: --prefix=/usr --extra-version=0+deb10u1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
0102|libavutil      56. 22.100 / 56. 22.100
0103|libavcodec     58. 35.100 / 58. 35.100
0104|libavformat    58. 20.100 / 58. 20.100
0105|libavdevice    58.  5.100 / 58.  5.100
0106|libavfilter     7. 40.101 /  7. 40.101
0107|libavresample   4.  0.  0 /  4.  0.  0
0108|libswscale      5.  3.100 /  5.  3.100
0109|libswresample   3.  3.100 /  3.  3.100
0110|libpostproc    55.  3.100 / 55.  3.100
0111|Mon Aug 14 20:59:19 CEST 2023
0112|***************************
0113|*      Install ended      *
0114|***************************

Et le log du démon avec le démarrage avec loglevel sur INFO aussi stp

[2023-08-14 21:22:07][INFO] : MainThread : Start daemon
[2023-08-14 21:22:07][INFO] : MainThread : Log level : info
[2023-08-14 21:22:08][INFO] : MainThread : ffmpeg loglevel: info->info
[2023-08-14 21:22:08][INFO] : ConnectionThread : Init connection...
[2023-08-14 21:22:08][INFO] : MainThread : Start listening
[2023-08-14 21:22:08][INFO] : ConnectionThread : cloudscraper version:1.2.71
[2023-08-14 21:22:08][WARNING] : ConnectionThread : Using fallback authentication host due to: 403 Client Error: Forbidden for url: https://ocapi-app.arlo.com/api/auth
[2023-08-14 21:22:08][WARNING] : ConnectionThread : 54.194.192.138 is invalid: ("hostname 'ocapi-app.arlo.com' doesn't match '*.odis-remote-qs1.vwapps.run'",)
[2023-08-14 21:22:08][WARNING] : ConnectionThread : 54.154.127.85 is invalid: ("hostname 'ocapi-app.arlo.com' doesn't match 'log.cookieyes.com'",)
[2023-08-14 21:22:08][WARNING] : ConnectionThread : 52.17.147.35 is invalid: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1056)
[2023-08-14 21:22:11][WARNING] : ConnectionThread : 108.129.51.6 is invalid: timed out
[2023-08-14 21:22:11][WARNING] : ConnectionThread : 52.19.21.230 is invalid: ("hostname 'ocapi-app.arlo.com' doesn't match either of 'kws.superawesome.tv', '*.sso.kws.superawesome.tv', '*.cpapi.kws.superawesome.tv', '*.parentsapp.kws.superawesome.tv', '*.api.kws.superawesome.tv', '*.events.kws.superawesome.tv', '*.parentsapi.kws.superawesome.tv', '*.worker.kws.superawesome.tv', '*.kws.superawesome.tv', '*.parents.kws.superawesome.tv'",)
[2023-08-14 21:22:11][WARNING] : ConnectionThread : 34.243.27.151 is invalid: ("hostname 'ocapi-app.arlo.com' doesn't match '*.dev.faladdin.com'",)
[2023-08-14 21:22:11][WARNING] : ConnectionThread : 63.33.174.219 is invalid: ("hostname 'ocapi-app.arlo.com' doesn't match either of 'ci.astrazeneca.com', '*.ci.astrazeneca.com'",)
[2023-08-14 21:22:14][WARNING] : ConnectionThread : 63.33.85.181 is invalid: timed out
[2023-08-14 21:22:14][WARNING] : ConnectionThread : 34.243.17.90 is invalid: ("hostname 'ocapi-app.arlo.com' doesn't match either of '*.uat.oup.com', '*.uat-primary.uat.access.the-infra.com', '*.uat.aces.the-infra.com', '*.uat.access.the-infra.com', '*.secure.account.oup.com', 'uat-primary.uat.access.the-infra.com', 'uat.oup.com', '*.access.oup.com', 'uat.access.the-infra.com', '*.account.oup.com'",)
[2023-08-14 21:22:14][WARNING] : ConnectionThread : 52.212.121.142 is invalid: ("hostname 'ocapi-app.arlo.com' doesn't match '*.uat.canopyandstars.co.uk'",)
[2023-08-14 21:22:14][WARNING] : ConnectionThread : 34.251.156.146 is invalid: [Errno 0] Error
[2023-08-14 21:22:17][WARNING] : ConnectionThread : 34.251.177.90 is invalid: timed out
[2023-08-14 21:22:17][WARNING] : ConnectionThread : An exception of type (Exception) occured, reconnecting: no valid hosts found!

ok je vois, c’est cloudflare qui te bloque et le plugin ne trouve pas d’host alternatif.

J’ai mis à jour une dépendance; peux-tu juste relancer le démon et me montrer le nouveau log? rien à installer ni mettre à jour de ton côté, le démon met à jour la liste automatiquement quand il démarre.

Ca m’a l’air bon mais je pense qu’il avait réussi à se connecter au bout de 5-10 minutes tout à l’heure, donc je ne sais pas si ensuite il tente à nouveau toute la connexion

[2023-08-14 21:39:01][INFO] : MainThread : Start daemon
[2023-08-14 21:39:01][INFO] : MainThread : Log level : info
[2023-08-14 21:39:01][INFO] : MainThread : ffmpeg loglevel: info->info
[2023-08-14 21:39:01][INFO] : ConnectionThread : Init connection...
[2023-08-14 21:39:01][INFO] : MainThread : Start listening
[2023-08-14 21:39:01][INFO] : ConnectionThread : Re-using existing valid session
[2023-08-14 21:39:01][INFO] : ConnectionThread : Logged in: XXX
[2023-08-14 21:39:01][INFO] : ConnectionThread : Get Arlo devices
[2023-08-14 21:39:02][INFO] : ConnectionThread : basestations (1): [XXX]
[2023-08-14 21:39:02][INFO] : ConnectionThread : bridges: []
[2023-08-14 21:39:02][INFO] : ConnectionThread : Wired standalone cameras (0): []
[
[2023-08-14 21:39:02][INFO] : ConnectionThread : arlodoorbellsStandalone: []
[2023-08-14 21:39:02][INFO] : ConnectionThread : arlochimes: []
[2023-08-14 21:39:02][INFO] : ConnectionThread : arloSirens: []
[2023-08-14 21:39:02][INFO] : ConnectionThread : Get Arlo modes
[2023-08-14 21:39:02][INFO] : ConnectionThread : Starting event handler...
[2023-08-14 21:39:02][INFO] : ConnectionThread : Get devices state
[2023-08-14 21:39:04][INFO] : EventHandler : Connect eventstream
[2023-08-14 21:39:04][INFO] : KeepAliveThread : start KeepAlive for XXXX
[2023-08-14 21:39:04][INFO] : EventHandler : Listening
[2023-08-14 21:39:05][INFO] : ConnectionThread : Connnected and ready

Les modes changent, les flux caméras sont dispos

Non, s’il a réussi récemment il ne devra plus se connecter pendant plusieurs jours voir semaine (je ne me rappelle plus du délai par coeur);
exactement comme sur l’app mobile en fait, de temps en temps elle nous demande de nous reconnecter.

il y aura ce log dans ce cas:

donc là je suppose que tu l’as relancé plusieurs fois car tu as dû avoir un log précédent où il a fait la connexion.

je l’ai relancé 2/3 fois avant d’ouvrir ce message, et encore 2/3 fois ensuite dont à ta demande.

Je peux virer un cookie ou un truc dans le genre, pour le forcer à se reconnecter ?
Ou je surveille et je te fais signe ?

C’est un fichier dans /tmp/arlo
Je ne me rappelle pas quel nom j’ai mis.

Mais pq tu veux le forcer à se reco?
Le comportement normal maintenant c’est de garder la session pour être moins gêné par cloudflare. Et comme je disais c’est le comportement normal de l’app aussi donc c’est plus propre comme ça.

A garder à l’esprit: vu que c’est dans le /tmp ça sera d’office reset si la box est redémarrée

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.