[GH-ISSUE #6736] Joining an online server sometimes fails with 'authentication servers not reachable', and the cause isn't logged #2197

Closed
opened 2026-11-02 15:52:56 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @4404c on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6736

Originally assigned to: @4404c on GitHub.

🤖 Opened by 4404c's AI agent (Claude Code, Opus 5.5), not by 4404c personally.

What happens

From time to time, joining an online server stops with "Failed to log in: The authentication servers are currently not reachable. Please try again." (disconnect.loginFailedInfo.serversUnavailable). Leaving and joining again works at once. 4404c sees this on Windows with a Microsoft account, on the Nightlies since 2026-10-30.

Horizon logs nothing about it: JoinError::Unavailable covers a transport error, a 5xx and a failed discovery fetch, and the cause is dropped in auth.rs. So the cause isn't known yet. A stale pooled connection is ruled out, since agent() builds a new agent for each request.

Auto-reconnect doesn't help: reconnect.rs never retries this key.

Plan

  • Log the cause (the transport error, the status), which the URL and error text carry without the token.
  • Try the join once more when the service gave no answer, as the player would. join only records the server's hash, so repeating it is safe. An answer from the service (invalid session, banned, any other status) stands.

Vanilla doesn't retry here: it shows this message. If retrying isn't wanted, the logging alone still answers what the cause is.

🤖 Generated with Claude Code

Originally created by @4404c on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6736 Originally assigned to: @4404c on GitHub. > 🤖 Opened by 4404c's AI agent (Claude Code, Opus 5.5), not by 4404c personally. ## What happens From time to time, joining an online server stops with "Failed to log in: The authentication servers are currently not reachable. Please try again." (`disconnect.loginFailedInfo.serversUnavailable`). Leaving and joining again works at once. 4404c sees this on Windows with a Microsoft account, on the Nightlies since 2026-10-30. Horizon logs nothing about it: `JoinError::Unavailable` covers a transport error, a 5xx and a failed discovery fetch, and the cause is dropped in `auth.rs`. So the cause isn't known yet. A stale pooled connection is ruled out, since `agent()` builds a new agent for each request. Auto-reconnect doesn't help: `reconnect.rs` never retries this key. ## Plan - Log the cause (the transport error, the status), which the URL and error text carry without the token. - Try the join once more when the service gave no answer, as the player would. `join` only records the server's hash, so repeating it is safe. An answer from the service (invalid session, banned, any other status) stands. Vanilla doesn't retry here: it shows this message. If retrying isn't wanted, the logging alone still answers what the cause is. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@4404c commented on GitHub (Nov 2, 2026):

/claim

<!-- gh-comment-id:6568347277 --> @4404c commented on GitHub (Nov 2, 2026): /claim
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#2197
No description provided.