Skip to content

Decrypting locations failed #85

@piechade

Description

@piechade

I'm able to log in to Google and see all my devices. Decrypting locations is not working.

[LocationRequest] Location request successful. Decrypting locations...
Traceback (most recent call last):
  File "/home/dennis/GoogleFindMyTools/venv/lib/python3.10/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions
    yield
  File "/home/dennis/GoogleFindMyTools/venv/lib/python3.10/site-packages/httpx/_transports/default.py", line 250, in handle_request
    resp = self._pool.handle_request(req)
  File "/home/dennis/GoogleFindMyTools/venv/lib/python3.10/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request
    raise exc from None
  File "/home/dennis/GoogleFindMyTools/venv/lib/python3.10/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request
    response = connection.handle_request(
  File "/home/dennis/GoogleFindMyTools/venv/lib/python3.10/site-packages/httpcore/_sync/connection.py", line 101, in handle_request
    raise exc
  File "/home/dennis/GoogleFindMyTools/venv/lib/python3.10/site-packages/httpcore/_sync/connection.py", line 78, in handle_request
    stream = self._connect(request)
  File "/home/dennis/GoogleFindMyTools/venv/lib/python3.10/site-packages/httpcore/_sync/connection.py", line 124, in _connect
    stream = self._network_backend.connect_tcp(**kwargs)
  File "/home/dennis/GoogleFindMyTools/venv/lib/python3.10/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp
    with map_exceptions(exc_map):
  File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/home/dennis/GoogleFindMyTools/venv/lib/python3.10/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
    raise to_exc(exc) from exc
httpcore.ConnectError: [Errno 111] Connection refused

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/dennis/GoogleFindMyTools/main.py", line 10, in <module>
    list_devices()
  File "/home/dennis/GoogleFindMyTools/NovaApi/ListDevices/nbe_list_devices.py", line 72, in list_devices
    get_location_data_for_device(selected_canonic_id, selected_device_name)
  File "/home/dennis/GoogleFindMyTools/NovaApi/ExecuteAction/LocateTracker/location_request.py", line 57, in get_location_data_for_device
    decrypt_location_response_locations(result)
  File "/home/dennis/GoogleFindMyTools/NovaApi/ExecuteAction/LocateTracker/decrypt_locations.py", line 74, in decrypt_location_response_locations
    identity_key = retrieve_identity_key(device_registration)
  File "/home/dennis/GoogleFindMyTools/NovaApi/ExecuteAction/LocateTracker/decrypt_locations.py", line 47, in retrieve_identity_key
    owner_key = get_owner_key()
  File "/home/dennis/GoogleFindMyTools/SpotApi/GetEidInfoForE2eeDevices/get_owner_key.py", line 26, in get_owner_key
    return unhexlify(get_cached_value_or_set('owner_key', _retrieve_owner_key))
  File "/home/dennis/GoogleFindMyTools/Auth/token_cache.py", line 18, in get_cached_value_or_set
    value = generator()
  File "/home/dennis/GoogleFindMyTools/SpotApi/GetEidInfoForE2eeDevices/get_owner_key.py", line 13, in _retrieve_owner_key
    eid_info = get_eid_info()
  File "/home/dennis/GoogleFindMyTools/SpotApi/GetEidInfoForE2eeDevices/get_eid_info_request.py", line 15, in get_eid_info
    response_bytes = spot_request("GetEidInfoForE2eeDevices", serialized_request)
  File "/home/dennis/GoogleFindMyTools/SpotApi/spot_request.py", line 31, in spot_request
    response = client.post(url, headers=headers, content=payload)
  File "/home/dennis/GoogleFindMyTools/venv/lib/python3.10/site-packages/httpx/_client.py", line 1144, in post
    return self.request(
  File "/home/dennis/GoogleFindMyTools/venv/lib/python3.10/site-packages/httpx/_client.py", line 825, in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "/home/dennis/GoogleFindMyTools/venv/lib/python3.10/site-packages/httpx/_client.py", line 914, in send
    response = self._send_handling_auth(
  File "/home/dennis/GoogleFindMyTools/venv/lib/python3.10/site-packages/httpx/_client.py", line 942, in _send_handling_auth
    response = self._send_handling_redirects(
  File "/home/dennis/GoogleFindMyTools/venv/lib/python3.10/site-packages/httpx/_client.py", line 979, in _send_handling_redirects
    response = self._send_single_request(request)
  File "/home/dennis/GoogleFindMyTools/venv/lib/python3.10/site-packages/httpx/_client.py", line 1014, in _send_single_request
    response = transport.handle_request(request)
  File "/home/dennis/GoogleFindMyTools/venv/lib/python3.10/site-packages/httpx/_transports/default.py", line 249, in handle_request
    with map_httpcore_exceptions():
  File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/home/dennis/GoogleFindMyTools/venv/lib/python3.10/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions
    raise mapped_exc(message) from exc
httpx.ConnectError: [Errno 111] Connection refused

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