core: Too many requests error for Tractive integration

The problem

I have had the Tractive integration working for at least a year but now it’s not updating. I have to “reload” the integration for the status to change.

I have the app on my iPhone and it shows everything correctly.

I’ve logged out, removed the integration, re-added the integration, restarted many times, no joy.

Screenshot 2023-08-25 at 2 56 42 PM Screenshot 2023-08-25 at 2 56 03 PM

What version of Home Assistant Core has the issue?

core-2023.8.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Tractive

Link to integration documentation on our website

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

Diagnostics information

config_entry-tractive-62ae0bb4796d9f6d64450900523b1a57.json.txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Nothing in logs with "Tractive".

Additional information

Used to work fine. Not sure what exactly changed and when.

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Reactions: 1
  • Comments: 54 (26 by maintainers)

Most upvoted comments

I see that Tractive has been having a bad time lately. My two trackers also died after the last firmware update and had to be replaced under warranty.

Unfortunately, at the moment, removing old devices is possible by removing and adding the integration again.

@scooper1 This issue is related to the “too many requests” error. Open a new issue if you experience other problems.

Only one tracer have all sensor available. No auto-update.

We are debugging the problem with “too many requests” here and in this looks ok in the log. I’m waiting for a review of the change in the backend library. About lack of updates, the log too short to say anything. As for sensors that are not available, e.g. your pet “Momiji”, spends too little time with the tracker and the API reports no wellness data

'no_data_reason': 'NOT_ACTIVE_ENOUGH'

Too many requests issue needs to be fixed in the backend library, unfortunately I don’t have enough free time this week to work on it. Maybe at the weekend…

Thanks a lot for your help. Take your time, it is not a hot issue right now because the trackers are available now.

Too many requests issue needs to be fixed in the backend library, unfortunately I don’t have enough free time this week to work on it. Maybe at the weekend…

I hope this will be the last one 😉 tractive_debug_v10.zip

Same issue here with my Tractive trackers. Removing the Tractive integration and re-adding it again did not help. Waited for HA 2023.9 Same problem, so I used your ZIP file, custom integration.

This solved the problem for now!

Home Assistant 2023.9.1 Supervisor 2023.08.3 Operating System 10.5 Frontend-versie: 20230908.0 - latest

Hi,

I think that the auto-update as never work since a couple of week.

I began with the tractive integration 1 year ago. I always had some issues like sensors unavailable, loosing gps position, live boutton not working… In general make a reload of the integration can fix the issues for some days or weeks.

With the last issues, even a reload can’t fix the issues.

I think we are in the best way to fix all the problems with @bieniu . 😃

Regards.

Ok we found out the cause 👍

item.tracker_details: b'<html>\r\n<head><title>429 Too Many Requests</title></head>\r\n<body>\r\n<center><h1>429 Too Many Requests</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n'

Please do not call this “application” as this is misleading. This is integration.

is the custom and not the official application ?

obraz

Add this to your configuration.yaml file:

logger:
  default: warning
  logs:
    aiotractive: debug
    custom_components.tractive: debug

restart HA, wait 20-30 minutes and attach here /config/home-assistant.log file.

Hi,

Home Assistant 2023.8.4 Supervisor 2023.08.1 Operating System 10.5 Interface utilisateur : 20230802.1 - latest

Thanks

Thanks for the clarification.

Some day I hope to be as smart as everyone else.

I think I will just wait. 😃

Frank

On Aug 27, 2023, at 2:06 PM, Maciej Bieniek @.***> wrote:

You should wait for HA 2023.9.0. Or, if you want to help with testing, I can prepare this version for you as a custom component.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/99121#issuecomment-1694650750, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXPFZNRDXVSHLHMNKCB6MNDXXMZ3ZANCNFSM6AAAAAA4AHCWOY. You are receiving this because you authored the thread.