Ce matin le problème s’est reproduit.
ci dessous le log complet et les copies d’écran :
Exception in thread EventStream:
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)
StopIteration
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/clientApi/eventstream.py", line 29, 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/local/lib/python3.7/dist-packages/requests/models.py", line 1021, 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
Exception in thread EventStream:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/urllib3/response.py", line 748, 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/local/lib/python3.7/dist-packages/urllib3/response.py", line 443, in _error_catcher
yield
File "/usr/local/lib/python3.7/dist-packages/urllib3/response.py", line 815, in read_chunked
self._update_chunk_length()
File "/usr/local/lib/python3.7/dist-packages/urllib3/response.py", line 752, in _update_chunk_length
raise InvalidChunkLength(self, line)
urllib3.exceptions.InvalidChunkLength: InvalidChunkLength(got length b'', 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/requests/models.py", line 816, in generate
yield from self.raw.stream(chunk_size, decode_content=True)
File "/usr/local/lib/python3.7/dist-packages/urllib3/response.py", line 623, in stream
for line in self.read_chunked(amt, decode_content=decode_content):
File "/usr/local/lib/python3.7/dist-packages/urllib3/response.py", line 844, 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/local/lib/python3.7/dist-packages/urllib3/response.py", line 460, in _error_catcher
raise ProtocolError("Connection broken: %r" % e, e)
urllib3.exceptions.ProtocolError: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 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/local/lib/python3.7/dist-packages/requests/models.py", line 818, in generate
raise ChunkedEncodingError(e)
requests.exceptions.ChunkedEncodingError: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 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/clientApi/eventstream.py", line 29, 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/local/lib/python3.7/dist-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://myapi.arlo.com/hmsweb/client/subscribe
[2023-05-12 04:00:06]ERROR : MainThread : Send command to demon error : 'NoneType' object has no attribute 'GetDevices'
[2023-05-12 04:00:06]ERROR : MainThread : Send command to demon error : 'NoneType' object has no attribute 'GetAutomationDefinitions'
[2023-05-12 04:00:06]ERROR : MainThread : Send command to demon error : 'NoneType' object has no attribute 'GetModesV2'
[2023-05-12 04:00:06]ERROR : MainThread : Method not found !
[2023-05-12 04:00:06]ERROR : MainThread : Method not found !
[2023-05-12 04:00:06]ERROR : MainThread : Method not found !
[2023-05-13 04:00:06]ERROR : MainThread : Send command to demon error : 'NoneType' object has no attribute 'GetDevices'
[2023-05-13 04:00:06]ERROR : MainThread : Send command to demon error : 'NoneType' object has no attribute 'GetAutomationDefinitions'
[2023-05-13 04:00:06]ERROR : MainThread : Send command to demon error : 'NoneType' object has no attribute 'GetModesV2'
[2023-05-13 04:00:06]ERROR : MainThread : Method not found !
[2023-05-13 04:00:06]ERROR : MainThread : Method not found !
[2023-05-13 04:00:06]ERROR : MainThread : Method not found !
[2023-05-13 17:30:14]ERROR : MainThread : Send command to demon error : 'NoneType' object has no attribute 'GetDevices'
[2023-05-13 17:30:14]ERROR : MainThread : Send command to demon error : 'NoneType' object has no attribute 'GetAutomationDefinitions'
[2023-05-13 17:30:14]ERROR : MainThread : Send command to demon error : 'NoneType' object has no attribute 'GetModesV2'
[2023-05-13 17:30:14]ERROR : MainThread : Method not found !
[2023-05-13 17:30:14]ERROR : MainThread : Method not found !
[2023-05-13 17:30:14]ERROR : MainThread : Method not found !
[2023-05-13 17:36:30]ERROR : MainThread : Send command to demon error : 'NoneType' object has no attribute 'GetDevices'
[2023-05-13 17:36:30]ERROR : MainThread : Send command to demon error : 'NoneType' object has no attribute 'GetAutomationDefinitions'
[2023-05-13 17:36:30]ERROR : MainThread : Send command to demon error : 'NoneType' object has no attribute 'GetModesV2'
[2023-05-13 17:36:30]ERROR : MainThread : Method not found !
[2023-05-13 17:36:30]ERROR : MainThread : Method not found !
[2023-05-13 17:36:30]ERROR : MainThread : Method not found !
[2023-05-13 17:36:59]ERROR : MainThread : Send command to demon error : 'NoneType' object has no attribute 'GetModesV2'
[2023-05-13 17:36:59]ERROR : MainThread : Method not found !
[2023-05-13 17:36:59]ERROR : MainThread : Method not found !
[2023-05-13 17:36:59]ERROR : MainThread : Method not found !
[2023-05-15 08:16:37]ERROR : MainThread : Send command to demon error : HTTPSConnectionPool(host='myapi.arlo.com', port=443): Read timed out. (read timeout=10)
Exception in thread EventHandler:
Traceback (most recent call last):
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/connection.py", line 204, in _new_conn
socket_options=self.socket_options,
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/util/connection.py", line 60, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 802, in urlopen
**response_kw,
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 491, in _make_request
raise new_e
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 467, in _make_request
self._validate_conn(conn)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 1092, in _validate_conn
conn.connect()
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/connection.py", line 604, in connect
self.sock = sock = self._new_conn()
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/connection.py", line 207, in _new_conn
raise NameResolutionError(self.host, self, e) from e
urllib3.exceptions.NameResolutionError: : Failed to resolve 'myapi.arlo.com' ([Errno -2] Name or service not known)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/requests/adapters.py", line 497, in send
chunked=chunked,
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 845, in urlopen
method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/util/retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='myapi.arlo.com', port=443): Max retries exceeded with url: /hmsweb/client/subscribe (Caused by NameResolutionError(": Failed to resolve 'myapi.arlo.com' ([Errno -2] Name or service not known)"))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/www/html/plugins/arlo/resources/arlod/arlo/clientApi/eventstream.py", line 85, in Connect
self.event_stream = sseclient.SSEClient(self.arlo.baseURL+'hmsweb/client/subscribe', session=self.arlo.request.session)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/sseclient.py", line 39, in __init__
self._connect()
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/sseclient.py", line 47, in _connect
self.resp = requester.get(self.url, stream=True, **self.requests_kwargs)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/requests/sessions.py", line 600, in get
return self.request("GET", url, **kwargs)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/cloudscraper/__init__.py", line 259, in request
self.perform_request(method, url, *args, **kwargs)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/cloudscraper/__init__.py", line 192, in perform_request
return super(CloudScraper, self).request(method, url, *args, **kwargs)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/requests/adapters.py", line 519, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='myapi.arlo.com', port=443): Max retries exceeded with url: /hmsweb/client/subscribe (Caused by NameResolutionError(": Failed to resolve 'myapi.arlo.com' ([Errno -2] Name or service not known)"))
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/eventHandler.py", line 81, in __eventHandler
self.__arloClient.Subscribe(device)
File "/var/www/html/plugins/arlo/resources/arlod/arlo/clientApi/arlo.py", line 180, in Subscribe
self.event_stream.Connect()
File "/var/www/html/plugins/arlo/resources/arlod/arlo/clientApi/eventstream.py", line 90, in Connect
raise Exception('Failed to start eventstream thread: {0}'.format(e))
Exception: Failed to start eventstream thread: HTTPSConnectionPool(host='myapi.arlo.com', port=443): Max retries exceeded with url: /hmsweb/client/subscribe (Caused by NameResolutionError(": Failed to resolve 'myapi.arlo.com' ([Errno -2] Name or service not known)"))
[2023-06-03 11:57:26]ERROR : ConnectionThread : Please check server email config
[2023-06-03 11:57:26]ERROR : ConnectionThread : [Errno -2] Name or service not known
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):
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/requests/models.py", line 816, in generate
yield from self.raw.stream(chunk_size, decode_content=True)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/response.py", line 932, in stream
yield from self.read_chunked(amt, decode_content=decode_content)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/response.py", line 1101, 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 "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/response.py", line 722, in _error_catcher
raise ProtocolError(f"Connection broken: {e!r}", e) from e
urllib3.exceptions.ProtocolError: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 0 bytes read))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/sseclient.py", line 65, in __next__
next_chunk = next(self.resp_iterator)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/requests/models.py", line 818, in generate
raise ChunkedEncodingError(e)
requests.exceptions.ChunkedEncodingError: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 0 bytes read))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/connection.py", line 204, in _new_conn
socket_options=self.socket_options,
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/util/connection.py", line 60, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 802, in urlopen
**response_kw,
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 491, in _make_request
raise new_e
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 467, in _make_request
self._validate_conn(conn)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 1092, in _validate_conn
conn.connect()
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/connection.py", line 604, in connect
self.sock = sock = self._new_conn()
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/connection.py", line 207, in _new_conn
raise NameResolutionError(self.host, self, e) from e
urllib3.exceptions.NameResolutionError: : Failed to resolve 'myapi.arlo.com' ([Errno -2] Name or service not known)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/requests/adapters.py", line 497, in send
chunked=chunked,
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 845, in urlopen
method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/util/retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='myapi.arlo.com', port=443): Max retries exceeded with url: /hmsweb/client/subscribe (Caused by NameResolutionError(": Failed to resolve 'myapi.arlo.com' ([Errno -2] Name or service not known)"))
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/clientApi/eventstream.py", line 29, in __QueueEvents
for event in self.event_stream:
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/sseclient.py", line 72, in __next__
self._connect()
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/sseclient.py", line 47, in _connect
self.resp = requester.get(self.url, stream=True, **self.requests_kwargs)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/requests/sessions.py", line 600, in get
return self.request("GET", url, **kwargs)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/cloudscraper/__init__.py", line 259, in request
self.perform_request(method, url, *args, **kwargs)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/cloudscraper/__init__.py", line 192, in perform_request
return super(CloudScraper, self).request(method, url, *args, **kwargs)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/requests/adapters.py", line 519, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='myapi.arlo.com', port=443): Max retries exceeded with url: /hmsweb/client/subscribe (Caused by NameResolutionError(": Failed to resolve 'myapi.arlo.com' ([Errno -2] Name or service not known)"))
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):
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/requests/models.py", line 816, in generate
yield from self.raw.stream(chunk_size, decode_content=True)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/response.py", line 932, in stream
yield from self.read_chunked(amt, decode_content=decode_content)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/response.py", line 1101, 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 "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/response.py", line 722, in _error_catcher
raise ProtocolError(f"Connection broken: {e!r}", e) from e
urllib3.exceptions.ProtocolError: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 0 bytes read))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/sseclient.py", line 65, in __next__
next_chunk = next(self.resp_iterator)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/requests/models.py", line 818, in generate
raise ChunkedEncodingError(e)
requests.exceptions.ChunkedEncodingError: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 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/clientApi/eventstream.py", line 29, in __QueueEvents
for event in self.event_stream:
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/sseclient.py", line 72, in __next__
self._connect()
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/sseclient.py", line 52, in _connect
self.resp.raise_for_status()
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://myapi.arlo.com/hmsweb/client/subscribe
Exception in thread EventHandler:
Traceback (most recent call last):
File "/var/www/html/plugins/arlo/resources/arlod/arlo/clientApi/eventstream.py", line 85, in Connect
self.event_stream = sseclient.SSEClient(self.arlo.baseURL+'hmsweb/client/subscribe', session=self.arlo.request.session)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/sseclient.py", line 39, in __init__
self._connect()
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/sseclient.py", line 52, in _connect
self.resp.raise_for_status()
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/requests/models.py", line 1021, 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
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/eventHandler.py", line 81, in __eventHandler
self.__arloClient.Subscribe(device)
File "/var/www/html/plugins/arlo/resources/arlod/arlo/clientApi/arlo.py", line 180, in Subscribe
self.event_stream.Connect()
File "/var/www/html/plugins/arlo/resources/arlod/arlo/clientApi/eventstream.py", line 90, in Connect
raise Exception('Failed to start eventstream thread: {0}'.format(e))
Exception: Failed to start eventstream thread: 502 Server Error: Bad Gateway for url: https://myapi.arlo.com/hmsweb/client/subscribe
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):
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/requests/models.py", line 816, in generate
yield from self.raw.stream(chunk_size, decode_content=True)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/response.py", line 932, in stream
yield from self.read_chunked(amt, decode_content=decode_content)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/response.py", line 1101, 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 "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/response.py", line 722, in _error_catcher
raise ProtocolError(f"Connection broken: {e!r}", e) from e
urllib3.exceptions.ProtocolError: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 0 bytes read))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/sseclient.py", line 65, in __next__
next_chunk = next(self.resp_iterator)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/requests/models.py", line 818, in generate
raise ChunkedEncodingError(e)
requests.exceptions.ChunkedEncodingError: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 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/clientApi/eventstream.py", line 29, in __QueueEvents
for event in self.event_stream:
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/sseclient.py", line 72, in __next__
self._connect()
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/sseclient.py", line 52, in _connect
self.resp.raise_for_status()
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://myapi.arlo.com/hmsweb/client/subscribe
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):
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/requests/models.py", line 816, in generate
yield from self.raw.stream(chunk_size, decode_content=True)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/response.py", line 932, in stream
yield from self.read_chunked(amt, decode_content=decode_content)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/response.py", line 1101, 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 "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/urllib3/response.py", line 722, in _error_catcher
raise ProtocolError(f"Connection broken: {e!r}", e) from e
urllib3.exceptions.ProtocolError: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 0 bytes read))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/sseclient.py", line 65, in __next__
next_chunk = next(self.resp_iterator)
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/requests/models.py", line 818, in generate
raise ChunkedEncodingError(e)
requests.exceptions.ChunkedEncodingError: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 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/clientApi/eventstream.py", line 29, in __QueueEvents
for event in self.event_stream:
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/sseclient.py", line 72, in __next__
self._connect()
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/sseclient.py", line 52, in _connect
self.resp.raise_for_status()
File "/var/www/html/plugins/arlo/resources/venv/lib/python3.7/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://myapi.arlo.com/hmsweb/client/subscribe