BUG: Permanent qBittorrent Sync API Fallback Degradation #29
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When a transient qBittorrent query failure occurs during active background polling, the client falls back to legacy mode. However, the background poller uses getDownloadsByClientType() which fails to call resetFallbackFlag(), stucking the client in legacy list queries permanently until restarted.
Resolution: Patched server/utils/downloadClients.js to call client.resetFallbackFlag() on qBittorrent clients within the getDownloadsByClientType() loop (matching the getAllDownloads() behavior). Added a unit test in downloadClients.test.js to verify this fallback flag reset on polling routes.