redis/redis-py · error · TemporaryUnavailableException
No database connections currently available. This is a tempo
Error message
No database connections currently available. This is a temporary condition - please retry the operation.
What it means
Error "No database connections currently available. This is a temporary condition - please retry the operation." thrown in redis/redis-py.
Source
Thrown at redis/multidb/failover.py:118
def execute(self) -> SyncDatabase:
try:
database = self._strategy.database()
self._reset()
return database
except NoValidDatabaseException as e:
if self._next_attempt_ts == 0:
self._next_attempt_ts = time.time() + self._failover_delay
self._failover_counter += 1
elif time.time() >= self._next_attempt_ts:
self._next_attempt_ts += self._failover_delay
self._failover_counter += 1
if self._failover_counter > self._failover_attempts:
self._reset()
raise e
else:
raise TemporaryUnavailableException(
"No database connections currently available. "
"This is a temporary condition - please retry the operation."
)
def _reset(self) -> None:
self._next_attempt_ts = 0
self._failover_counter = 0
View on GitHub (pinned to da03cdc7e8)
When it happens
Trigger: Thrown at redis/multidb/failover.py:118 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of redis/redis-py@da03cdc7e8 (2026-08-04).
Data as JSON: /data/errors/66e59e1ed4b5fb14.json.
Report an issue: GitHub.