andrew-codechimp / HA-Andrews-Arnold-Quota

A Home Assistant integration to retrieve quota details of an Andrews & Arnold Broadband account
MIT License
6 stars 2 forks source link

Increase in authentication expired errors #90

Closed reedy closed 1 week ago

reedy commented 1 week ago

System Health details

System Information

version core-2024.9.2
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.4
os_name Linux
os_version 6.6.31-haos-raspi
arch aarch64
timezone Europe/London
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok HACS Data | ok GitHub API Calls Remaining | 5000 Installed Version | 2.0.1 Stage | running Available Repositories | 1415 Downloaded Repositories | 51
Home Assistant Cloud logged_in | true -- | -- subscription_expiration | 1 January 2018 at 00:00 relayer_connected | false relayer_region | null remote_enabled | false remote_connected | false alexa_enabled | false google_enabled | false remote_server | null certificate_status | null instance_id | 73082b983f4241dd9fc621bb341e6eed can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 13.1 -- | -- update_channel | stable supervisor_version | supervisor-2024.09.1 agent_version | 1.6.0 docker_version | 26.1.4 disk_total | 458.4 GB disk_used | 18.8 GB healthy | true supported | true host_connectivity | true supervisor_connectivity | true ntp_synchronized | true virtualization | board | yellow supervisor_api | ok version_api | ok installed_addons | Terminal & SSH (9.14.0), Modbus TCP to Modbus RTU Gateway Add-on (2021.10.1), Mosquitto broker (6.4.1), File editor (5.8.0), Sunsynk/Deye Inverter Add-on (multi) (0.7.4), Syncthing (1.19.0), Filebrowser (2.23.0_14), Home Assistant Git Exporter (1.17.0), Portainer (2.21.1), Node-RED (18.0.5), Leaf2MQTT (46), TasmoAdmin (0.30.5), Network UPS Tools (0.13.1), Log Viewer (0.17.0), ESPHome (2024.8.3), Matter Server (6.5.1), Advanced SSH & Web Terminal (19.0.0), AppDaemon (0.16.6), predbat (1.2.0), OpenThread Border Router (2.10.0), Silicon Labs Flasher (0.3.0)
Dashboards dashboards | 2 -- | -- resources | 27 views | 6 mode | storage
Recorder oldest_recorder_run | 7 September 2024 at 08:01 -- | -- current_recorder_run | 17 September 2024 at 17:19 estimated_db_size | 1280.37 MiB database_engine | sqlite database_version | 3.45.3

Checklist

Describe the issue

Over the last few weeks (not sure if since the quota changes?), I'm seeing an increase in authentication expired errors...

Reproduction steps

Wait? :P

Debug logs

Logger: custom_components.andrews_arnold_quota
Source: custom_components/andrews_arnold_quota/api.py:79
integration: Andrews & Arnold Quota (documentation, issues)
First occurred: 17:19:51 (1 occurrences)
Last logged: 17:19:51
https://chaos2.aa.net.uk/broadband/ unable to fetch data quota (no_connection)

Logger: homeassistant.config_entries
Source: config_entries.py:632
First occurred: 17:19:51 (1 occurrences)
Last logged: 17:19:51
Config entry 'Andrews & Arnold Quota' for andrews_arnold_quota integration could not authenticate: Unable to login, please re-login.

Diagnostics dump

No response

andrew-codechimp commented 1 week ago

Thanks for the report, the no_connection seems to indicate the api isn't available with the authentication expiry being a fall through handler. I'll have a look at quietly re-trying after a period before throwing this, I know some other integrations do that but I'll have to investigate.

reedy commented 1 week ago

The fact that https://quota.aa.net.uk (I know, a different endpoint) is giving a Server Error (500) may suggest it's more on A&A's side than here...

andrew-codechimp commented 1 week ago

That's interesting, but if it is a bit prone to occasional issues I'd like to remove the need to have manual intervention.