#Google Maps Integration issue - location sharing

1 messages · Page 1 of 1 (latest)

cinder sinew
#
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/device_tracker/legacy.py", line 311, in async_setup_legacy
    setup = await hass.async_add_executor_job(
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/google_maps/device_tracker.py", line 57, in setup_scanner
    scanner = GoogleMapsScanner(hass, config, see)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/google_maps/device_tracker.py", line 76, in __init__
    self.service = Service(credfile, self.username)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/locationsharinglib/locationsharinglib.py", line 98, in __init__
    self._session = self._validate_cookie(cookies_file or '')
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/locationsharinglib/locationsharinglib.py", line 153, in _validate_cookie
    session = self._get_authenticated_session(cookies_file)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/locationsharinglib/locationsharinglib.py", line 146, in _get_authenticated_session
    session = self._get_session_from_cookie_file(cfile.read())
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/locationsharinglib/locationsharinglib.py", line 132, in _get_session_from_cookie_file
    domain, flag, path, secure, expiry, name, value, *rest = entry.split()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected at least 7, got 1)
#

It seems that there are issues with the provided cookie data. This leads me to the questions in which format I have to provide the data and how can I debug this issue a bit more?

#

currently I use json format for the cookie data

hushed jewel
#

There is an issue over at github

#

someone made a very nice explanation on how to get the cookies properly

cinder sinew
#

But there is no detailed discription on how to get the correct cookie data