Skip to content

Say when a downloader sent no response - #25

Merged
tonycoder-hub merged 1 commit into
mainfrom
fix/downloader-unreachable-hint
Oct 16, 2026
Merged

tonycoder-hub merged 1 commit into
mainfrom
fix/downloader-unreachable-hint

Conversation

@tonycoder-hub

Copy link
Copy Markdown
Owner

Summary

  • Error text change (deliberate fix). A transport failure on qBittorrent login and on any Transmission request used to print a bare qBittorrent login failed / Transmission request failed. The old text is kept as the prefix and now continues with : no response from the WebUI; check that qBittorrent is running and reachable at the URL (Transmission: ... from the RPC endpoint ...). Exit codes are unchanged. The underlying error and the URL are still never echoed.
  • Why. During a live test, a qBittorrent WebUI behind an SSH tunnel was being restarted by its supervisor (connect failed: Connection refused at the tunnel's far end). The bare message read like rejected credentials and invited retries toward qBittorrent's failed-login ban (5 failures by default). Once the WebUI was back, the same credentials worked first time against qBittorrent v5.2.4 / WebAPI 2.15.1, which also confirms the 204 login-success shape live.
  • Docs.
    • docs/guide/downloader.md explains the no-response case.
    • docs/MTEAM_ADAPTER.md records the first credentialed M-Team smoke test: site status / account / search in table and JSON, with UTC+8 times confirmed. It also notes that the website's detail page calls /api/torrent/viewHits, which a future detail adapter should not send.

Tests

  • The closed-endpoint tests in both adapters now assert the new hint and that the endpoint and credential canaries do not leak.
  • gofmt, go vet ./..., go test -race ./... and go build -trimpath ./cmd/ptctl pass locally.
  • I ran the branch binary end to end against a closed loopback port for both drivers, using canary credentials only.

🤖 Generated with Claude Code

qBittorrent's login and every Transmission request reported a transport
failure as a bare "login failed" / "request failed". When a WebUI was
restarting behind an SSH tunnel, that read like rejected credentials and
invited retries toward qBittorrent's failed-login ban. Keep the old text
as a prefix and add that nothing answered, still without echoing the
underlying error or the URL.

Also record the first credentialed M-Team smoke test (status, account,
search, UTC+8 times) and note that the website's detail page calls a
view-counting endpoint a future adapter should not send.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tonycoder-hub
tonycoder-hub merged commit 66d538b into main Oct 16, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant