| Предыдущий | Следующий |
| ERROR_DOMAIN_CONTROLLER_EXISTS | ERROR_OVERRIDE_NOCHANGES |
ERROR_ONLY_IF_CONNECTED
Что означает ERROR_ONLY_IF_CONNECTED
ERROR_ONLY_IF_CONNECTED — эта операция поддерживается только при наличии подключения к серверу.
Что проверить
Сохраните API, локальный и удалённый адреса/порты и фактически разрешённый IP до повторной попытки.
- Определите этап отказа: DNS, открытие сокета, TCP-соединение, аутентификация, TLS/протокол приложения или уже передача данных.
- Проверьте прослушивающий сокет или порт, межсетевой экран, маршрут и серверный журнал для той же попытки; если причина не видна, снимите короткий захват сетевых пакетов.
Исходная формулировка
the requested server-dependent operation requires a live connection that is not currently established.
querying volatile server state, locks, leases, or session properties
A management console caches a server object, loses its WebSocket, then enables a “rotate certificate” command as soon as DNS resolution succeeds. The old session handle returns 1251. Correct reconnect logic creates a new authenticated session and refreshes server state before enabling destructive commands.
Review offline and reconnect logic. If the product supports cached reads, ensure that server-only commands are disabled or explicitly queued. A generic “connected” flag shared without synchronization can allow requests through during teardown.
Capture the connection state transition, server endpoint, session identifier, authentication status, last successful request, disconnect reason, retry count, and whether the UI displayed an offline mode. Logs should show whether the operation began before disconnection and completed afterward, because race conditions can make a connected check obsolete immediately.
Технические ссылки
- Microsoft: System Error Codes (1000–1299)
- Microsoft: Socket Shutdown and Closure
- Microsoft: Noninteractive Authentication
Нужно найти другой код? Найти другой код состояния или ошибки.
