icloud3 icon indicating copy to clipboard operation
icloud3 copied to clipboard

KeyError: 'myInfo'

Open woopstar opened this issue 2 years ago • 7 comments

Startede to see this error in the logs today. Did not change anything.

Tried to restart HA. Tried to restart iCloud3, also reset the icloud3 interface and did a re-login. Still same error in the logs:

2023-04-26 10:34:46.678 ERROR (SyncWorker_9) [custom_components.icloud3.device_tracker] 'myInfo'
Traceback (most recent call last):
  File "/config/custom_components/icloud3/device_tracker.py", line 6826, in _setup_tracked_devices_for_fmf
    friend_valid_emails_msg = self._get_me_device_id(api_friends, friend_valid_emails_msg)
  File "/config/custom_components/icloud3/device_tracker.py", line 6923, in _get_me_device_id
    my_info = fmf_data['myInfo']
KeyError: 'myInfo'

Version info:

Home Assistant 2023.4.6
Supervisor 2023.04.1
Operating System 10.0
Frontend 20230411.1 - latest
HACS: 1.32.1
iCloud3 Device Tracker: v2.4.7

woopstar avatar Apr 26 '23 08:04 woopstar

Similar situation here, stopped working without a change done:

2023-04-26 08:30:44.683 ERROR (SyncWorker_6) [custom_components.icloud3.device_tracker] 'locations'
Traceback (most recent call last):
  File "/config/custom_components/icloud3/device_tracker.py", line 3143, in _refresh_pyicloud_devices_location_data
    for location in devices_data['locations']:
KeyError: 'locations' 

Gives me the feeling Apple changed something.

SaturnusDJ avatar Apr 26 '23 10:04 SaturnusDJ

@gcobb321 Mention because of severity.

Gonna see how v3 is doing.

SaturnusDJ avatar Apr 26 '23 14:04 SaturnusDJ

Same thing here, just piling onto the issue so that I can watch as well.

tomeralgai avatar Apr 26 '23 14:04 tomeralgai

In v3 beta I get my own devices via the family sharing menu but find my friends menu is empty.

Probably same issue:

2023-04-26 18:41:49.965 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 145, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 241, in post
    return await super().post(request, flow_id)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
    result = await method(view, request, data, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 253, in async_configure
    result = await self._async_handle_step(
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 335, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
  File "/config/custom_components/icloud3/config_flow.py", line 1917, in async_step_device_list
    self._get_conf_device_selected(user_input)
  File "/config/custom_components/icloud3/config_flow.py", line 1950, in _get_conf_device_selected
    devicename_selected = user_input[CONF_DEVICES]
KeyError: 'devices'

SaturnusDJ avatar Apr 26 '23 16:04 SaturnusDJ

Apple has changed something. There is no friends data being returned from Apple when setting up iC3 from the url that was being used. Now, It looks like it is returning the same data as it does when setting up the FamShr devices.

This means FmF is not available right now and you can only track devices that are part of the Family Sharing List (FamShr).

I'll dig into it when I get a chance.

gcobb321 avatar Apr 26 '23 17:04 gcobb321

@gcobb321 Mention me if you need a tester. :)

SaturnusDJ avatar Apr 26 '23 18:04 SaturnusDJ

You are on the notification list. Monitor icloud3_v3/issues

gcobb321 avatar Apr 26 '23 20:04 gcobb321