Skip to content

Event loop closed by server after error. #187

@pfc-greenwich

Description

@pfc-greenwich
  • pyaarlo==0.8.0.15
  • Secondary account with the location shared from the primary account
  • There are two locations in this secondary account. The shared one and an empty location (ie. no devices) that cannot be deleted.
  • The configuration and code is the same as in VMB4000: Settings "base.mode" No Longer Seems to Work #185

Error logs:

2025-04-15 09:06:28.632	pyaarlo[752] - event loop closed by server
2025-04-15 09:06:28.631	WARNING : event loop closed by server
2025-04-15 09:06:10.179	
2025-04-15 09:06:10.179	AttributeError: 'NoneType' object has no attribute 'get'
2025-04-15 09:06:10.179	              ^^^^^^^^
2025-04-15 09:06:10.179	    mode_id = data.get("properties", {}).get('mode')
2025-04-15 09:06:10.179	  File "/usr/local/lib/python3.12/site-packages/pyaarlo/location.py", line 158, in update_mode
2025-04-15 09:06:10.178	    curr_location.update_mode()
2025-04-15 09:06:10.178	  File "/usr/local/lib/python3.12/site-packages/pyaarlo/base.py", line 441, in update_modes
2025-04-15 09:06:10.178	    base.update_modes(initial)
2025-04-15 09:06:10.178	  File "/usr/local/lib/python3.12/site-packages/pyaarlo/__init__.py", line 417, in _refresh_bases
2025-04-15 09:06:10.178	    job["callback"](**job["args"])
2025-04-15 09:06:10.178	  File "/usr/local/lib/python3.12/site-packages/pyaarlo/background.py", line 35, in _run_next
2025-04-15 09:06:10.178	Traceback (most recent call last):
2025-04-15 09:06:10.178	pyaarlo[744] - job-error=AttributeError
2025-04-15 09:06:10.178	
2025-04-15 09:06:10.178	AttributeError: 'NoneType' object has no attribute 'get'
2025-04-15 09:06:10.178	              ^^^^^^^^
2025-04-15 09:06:10.178	    mode_id = data.get("properties", {}).get('mode')
2025-04-15 09:06:10.178	  File "/usr/local/lib/python3.12/site-packages/pyaarlo/location.py", line 158, in update_mode
2025-04-15 09:06:10.178	    curr_location.update_mode()
2025-04-15 09:06:10.178	  File "/usr/local/lib/python3.12/site-packages/pyaarlo/base.py", line 441, in update_modes
2025-04-15 09:06:10.178	    base.update_modes(initial)
2025-04-15 09:06:10.178	  File "/usr/local/lib/python3.12/site-packages/pyaarlo/__init__.py", line 417, in _refresh_bases
2025-04-15 09:06:10.178	    job["callback"](**job["args"])
2025-04-15 09:06:10.178	  File "/usr/local/lib/python3.12/site-packages/pyaarlo/background.py", line 35, in _run_next
2025-04-15 09:06:10.178	Traceback (most recent call last):
2025-04-15 09:06:10.178	ERROR : job-error=AttributeError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions