Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google maps travel distance is taking more than 10 sec then fails #124318

Open
crissmil opened this issue Aug 20, 2024 · 3 comments · May be fixed by #130903
Open

Google maps travel distance is taking more than 10 sec then fails #124318

crissmil opened this issue Aug 20, 2024 · 3 comments · May be fixed by #130903

Comments

@crissmil
Copy link

The problem

several error logs from google maps integration: "ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.xxxxx fails"

What version of Home Assistant Core has the issue?

core-2024.8.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

Google Maps

Link to integration documentation on our website

https://www.home-assistant.io/integrations/google_travel_time

Diagnostics information

home-assistant_google_travel_time_2024-08-20T16-49-14.653Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-08-20 19:32:11.197 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.mirela_driving_home_time is taking over 10 seconds
2024-08-20 19:33:14.065 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.mirela_driving_home_time fails
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 253, in _request
    result = self._get_body(response)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 276, in _get_body
    raise googlemaps.exceptions._RetriableRequest()
googlemaps.exceptions._RetriableRequest

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 253, in _request
    result = self._get_body(response)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 276, in _get_body
    raise googlemaps.exceptions._RetriableRequest()
googlemaps.exceptions._RetriableRequest

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 253, in _request
    result = self._get_body(response)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 276, in _get_body
    raise googlemaps.exceptions._RetriableRequest()
googlemaps.exceptions._RetriableRequest

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 253, in _request
    result = self._get_body(response)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 276, in _get_body
    raise googlemaps.exceptions._RetriableRequest()
googlemaps.exceptions._RetriableRequest

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 253, in _request
    result = self._get_body(response)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 276, in _get_body
    raise googlemaps.exceptions._RetriableRequest()
googlemaps.exceptions._RetriableRequest

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 253, in _request
    result = self._get_body(response)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 276, in _get_body
    raise googlemaps.exceptions._RetriableRequest()
googlemaps.exceptions._RetriableRequest

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 253, in _request
    result = self._get_body(response)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 276, in _get_body
    raise googlemaps.exceptions._RetriableRequest()
googlemaps.exceptions._RetriableRequest

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 253, in _request
    result = self._get_body(response)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 276, in _get_body
    raise googlemaps.exceptions._RetriableRequest()
googlemaps.exceptions._RetriableRequest

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 253, in _request
    result = self._get_body(response)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 276, in _get_body
    raise googlemaps.exceptions._RetriableRequest()
googlemaps.exceptions._RetriableRequest

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 253, in _request
    result = self._get_body(response)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 276, in _get_body
    raise googlemaps.exceptions._RetriableRequest()
googlemaps.exceptions._RetriableRequest

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 253, in _request
    result = self._get_body(response)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 276, in _get_body
    raise googlemaps.exceptions._RetriableRequest()
googlemaps.exceptions._RetriableRequest

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 942, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1302, in async_device_update
    await hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/google_travel_time/sensor.py", line 175, in update
    self._matrix = distance_matrix(
                   ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/googlemaps/distance_matrix.py", line 130, in distance_matrix
    return client._request("/maps/api/distancematrix/json", params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 258, in _request
    return self._request(url, params, first_request_time,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 258, in _request
    return self._request(url, params, first_request_time,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 258, in _request
    return self._request(url, params, first_request_time,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  [Previous line repeated 8 more times]
  File "/usr/local/lib/python3.12/site-packages/googlemaps/client.py", line 203, in _request
    raise googlemaps.exceptions.Timeout()
googlemaps.exceptions.Timeout

Additional information

No response

@home-assistant
Copy link

Hey there @eifinger, mind taking a look at this issue as it has been labeled with an integration (google_travel_time) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of google_travel_time can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign google_travel_time Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


google_travel_time documentation
google_travel_time source
(message by IssueLinks)

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@eifinger eifinger linked a pull request Nov 18, 2024 that will close this issue
19 tasks
@eifinger
Copy link
Contributor

Not stale

@github-actions github-actions bot removed the stale label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants