pnbruckner / ha-life360

A Home Assistant integration for Life360.
32 stars 4 forks source link

Delay & more retries for error 403 while fetching Member data #28

Open pnbruckner opened 4 days ago

pnbruckner commented 4 days ago

Some people are experiencing error 403 while retrieving Member data, causing the account to be disabled and a repair issue to be created. However, it seems if this was retried with some delay between attempts, it could work. Although it's not 100% clear how long it might take to get past this error, or how often it might happen, some feedback shows it might go away in as little as 30 seconds. So, bump the delay from zero to 10 seconds, and increase the max number of retries from 2 to 30, for a total retry period of up to 5 minutes before failing.

Also, try to fix improperly handled CancelledError exception.

Resolves #25.