core: Google Maps Integration Cookie Error
The problem
I’m attempting to setup the Google Maps location tracking as per https://www.home-assistant.io/integrations/google_maps/
I’ve tried exporting cookies a couple times through different extensions and different browsers, all resulting in something along these lines
2023-04-12 00:37:17.605 ERROR (SyncWorker_0) [locationsharinglib.Service] Things broke...
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/locationsharinglib/locationsharinglib.py", line 123, in _get_authenticated_session
session.cookies.update(pickle.load(cfile))
_pickle.UnpicklingError: invalid load key, '#'.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/locationsharinglib/locationsharinglib.py", line 136, in _load_text_cookies
cookies = [Cookie(*line.strip().split()) for line in text.splitlines()
File "/usr/local/lib/python3.10/site-packages/locationsharinglib/locationsharinglib.py", line 136, in <listcomp>
cookies = [Cookie(*line.strip().split()) for line in text.splitlines()
TypeError: Cookie.__init__() takes 8 positional arguments but 24 were given
It appears that similar issues have recently been resolved in https://github.com/costastf/locationsharinglib
https://github.com/costastf/locationsharinglib/issues/103 https://github.com/costastf/locationsharinglib/issues/107
What version of locationsharinglib is home assistant using?
What version of Home Assistant Core has the issue?
core-2023.4.0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
google_maps
Link to integration documentation on our website
https://www.home-assistant.io/integrations/google_maps/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 18 (14 by maintainers)
It will be fixed once the new HA update is pushed
Google maps location reporting has stopped working for me as well, I’m getting the same error, ‘The cookie file provided does not provide a valid session. Please create another one and try again’