Bonjour,
Nouveau soucis avec le plugin arlo: je tourne actuellement sous Jeedom 4.1, plugin beta en dernière version.
Quand je démarre le démon tout va bien, l’installation fonctionne correctement. Mais au bout de quelques heures c’est fini, mon smarthub n’est plus accessible et j’ai des erreurs farfelues. Si je redémarre le démon, évidemment, tout repart pour quelques heures.
[2021-04-23 21:54:49][DEBUG] : MainThread : Removing PID file /tmp/jeedom/arlo/deamon.pid
[2021-04-23 21:54:49][DEBUG] : ConnectionThread : https://myapi.arlo.com:443 "OPTIONS /hmsweb/client/unsubscribe?eventId=FE%21ac597bee-58cb-4d4f-81b4-416c4be28de7&time=1619207689508 HTTP/1.1" 204 0
[2021-04-25 12:47:57][ERROR] : KeepAliveThread : Error: 502 Server Error: Bad Gateway for url: https://myapi.arlo.com/hmsweb/users/devices/notify/A0E1997MA1D7C?eventId=FE%21217d7cab-bf75-4189-ace9-92b7272cc72a&time=1619347677610
Exception in thread EventStream:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/response.py", line 601, in _update_chunk_length
self.chunk_left = int(line, 16)
ValueError: invalid literal for int() with base 16: b''
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/response.py", line 360, in _error_catcher
yield
File "/usr/lib/python3/dist-packages/urllib3/response.py", line 666, in read_chunked
self._update_chunk_length()
File "/usr/lib/python3/dist-packages/urllib3/response.py", line 605, in _update_chunk_length
raise httplib.IncompleteRead(line)
http.client.IncompleteRead: IncompleteRead(0 bytes read)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/models.py", line 750, in generate
for chunk in self.raw.stream(chunk_size, decode_content=True):
File "/usr/lib/python3/dist-packages/urllib3/response.py", line 490, in stream
for line in self.read_chunked(amt, decode_content=decode_content):
File "/usr/lib/python3/dist-packages/urllib3/response.py", line 694, in read_chunked
self._original_response.close()
File "/usr/lib/python3.7/contextlib.py", line 130, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python3/dist-packages/urllib3/response.py", line 378, in _error_catcher
raise ProtocolError('Connection broken: %r' % e, e)
urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/sseclient.py", line 65, in __next__
next_chunk = next(self.resp_iterator)
File "/usr/lib/python3/dist-packages/requests/models.py", line 753, in generate
raise ChunkedEncodingError(e)
requests.exceptions.ChunkedEncodingError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/var/www/html/plugins/arlo/resources/arlod/arlo/eventstream.py", line 26, in __QueueEvents
for event in self.event_stream:
File "/usr/local/lib/python3.7/dist-packages/sseclient.py", line 72, in __next__
self._connect()
File "/usr/local/lib/python3.7/dist-packages/sseclient.py", line 52, in _connect
self.resp.raise_for_status()
File "/usr/lib/python3/dist-packages/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: https://myapi.arlo.com/hmsweb/client/subscribe
[2021-04-25 12:49:12][ERROR] : EventHandler : Fatal error: 502 Server Error: Bad Gateway for url: https://myapi.arlo.com/hmsweb/client/unsubscribe?eventId=FE%21689e5cfc-171e-4d2a-9231-5260a8a05afa&time=1619347752659
[2021-04-25 18:54:16][ERROR] : MainThread : Send command to demon error : Request (POST https://myapi.arlo.com/hmsweb/users/devices/automation/active) failed: {'data': {'error': 'AUTO-5010', 'message': "Device doesn't belong to the User", 'reason': "A0E1997MA1D7C doesn't belong to the User / Is not provisioned"}, 'success': False}
[2021-04-25 18:58:43][ERROR] : MainThread : Send command to demon error : Request (POST https://myapi.arlo.com/hmsweb/users/devices/automation/active) failed: {'data': {'error': 'AUTO-5010', 'message': "Device doesn't belong to the User", 'reason': "A0E1997MA1D7C doesn't belong to the User / Is not provisioned"}, 'success': False}
[2021-04-26 12:30:52][ERROR] : MainThread : Send command to demon error : Request (POST https://myapi.arlo.com/hmsweb/users/devices/automation/active) failed: {'data': {'error': 'AUTO-5010', 'message': "Device doesn't belong to the User", 'reason': "A0E1997MA1D7C doesn't belong to the User / Is not provisioned"}, 'success': False}
[2021-04-26 18:58:18][ERROR] : MainThread : Send command to demon error : Request (POST https://myapi.arlo.com/hmsweb/users/devices/automation/active) failed: {'data': {'error': 'AUTO-5010', 'message': "Device doesn't belong to the User", 'reason': "A0E1997MA1D7C doesn't belong to the User / Is not provisioned"}, 'success': False}
A0E1997MA1D7C est l’id du smarthub
Evidemment c’est un compte dédié à arlo, et seul mon installation jeedom utilise ce compte. Je ne sais pas quoi partager de plus ! J’espère que les infos utiles y sont !