unpoller_unpoller/pkg
Cody Lee a1a8963159
Fix authentication retry to prevent data gaps after re-auth
Fixes #904

When a poll fails (typically with 401 Unauthorized after ~2 hour token
expiration), the code would re-authenticate but then return the original
poll error without retrying. This caused a one-minute data gap every
2 hours.

Changes:
- After successful re-authentication, retry the poll operation
- Add 500ms delay before retry to allow controller to process new auth
- Rename error variable to avoid shadowing during re-auth attempt

This ensures that transient authentication failures during the re-auth
window don't cause data gaps.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-25 11:53:31 -06:00
..
datadogunifi Allow PoE-providing ports to be scraped even when disabled 2026-01-25 11:31:39 -06:00
influxunifi Allow PoE-providing ports to be scraped even when disabled 2026-01-25 11:31:39 -06:00
inputunifi Fix authentication retry to prevent data gaps after re-auth 2026-01-25 11:53:31 -06:00
lokiunifi feat: add UniFi Protect logs support with Loki integration 2025-12-22 22:55:30 +01:00
mysqlunifi
poller Add config option to suppress unknown device type messages 2026-01-25 11:24:33 -06:00
promunifi Allow PoE-providing ports to be scraped even when disabled 2026-01-25 11:31:39 -06:00
unittest Temp fix for test cases and warning from Dockerfile 2025-12-24 00:23:05 -05:00
webserver Fix health check port binding conflict (issue #892) 2025-12-09 08:11:21 -06:00