core: locationsharinglib.Service Error resulting in google maps not working

Google Maps integration is not working.

Environment

  • Home Assistant Core release with the issue: 2021.1.0
  • Last working Home Assistant Core release (if known): 2021.1.0
  • Operating environment (OS/Container/Supervised/Core): Container
  • Integration causing this issue: Google Maps
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/google_maps/

Problem-relevant configuration.yaml

  - platform: google_maps
    username: <username>@gmail.com
    max_gps_accuracy: 500
    scan_interval: 75

Traceback/Error logs

Source: /usr/local/lib/python3.8/site-packages/locationsharinglib/locationsharinglib.py:170
First occurred: 11:05:26 AM (11 occurrences)
Last logged: 11:17:57 AM

Received response code:500

Additional information

I recently had an issue with a cookie file that quit working and I found in #43593 that Firefox cookie files appear to work (chrome doesn’t for more than an hour or two) and I originally thought the Firefox cookie had quit working after two days, but this is a completely different error.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 13
  • Comments: 26 (5 by maintainers)

Most upvoted comments

does anyone knows when will the stable release be deployed ?

Started to work again, without any change.

If you use docker version, here’s my barbaric attempt to band-aid this using Dockerfile:

FROM homeassistant/home-assistant:2021.1.1

RUN sed -i "s|requests==2.25.0|requests==2.25.1|g" /usr/src/homeassistant/requirements.txt
RUN sed -i "s|requests==2.25.0|requests==2.25.1|g" /usr/src/homeassistant/homeassistant/package_constraints.txt
RUN sed -i "s|requests==2.25.0|requests==2.25.1|g" /usr/src/homeassistant/setup.py
RUN sed -i "s|locationsharinglib==4.1.0|locationsharinglib==4.1.5|g" /usr/src/homeassistant/requirements_all.txt
RUN sed -i "s|locationsharinglib==4.1.0|locationsharinglib==4.1.5|g" /usr/src/homeassistant/homeassistant/components/google_maps/manifest.json

RUN pip install requests==2.25.1 locationsharinglib==4.1.5

Use build: . in your docker-compose instead of image: homeassistant/home-assistant:2021.1.1 and put Dockerfile alongside with docker-compose.yml

I’m not very familiar with how the homeassistant setup works but without replacing versions in actual files it keeps reinstalling old versions of specified libs on every restart. Alternatively, you can simply risk and run dev-version, which I chose not to do.

does anyone knows when will the stable release be deployed ?

This change is actually in the dev builds for HA and will be part of the next major release, 2021.2.

https://github.com/home-assistant/core/pull/44742 and https://github.com/home-assistant/core/pull/44989

Going to close this issue as the fix was merged already and we close issues when the fix was merged. See https://github.com/home-assistant/core/issues/45117#issuecomment-759812962 for more details