We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 615ef0a commit 64cf446Copy full SHA for 64cf446
singlestoredb/management/manager.py
@@ -15,6 +15,7 @@
15
16
from .. import config
17
from ..exceptions import ManagementError
18
+from ..exceptions import OperationalError
19
from .utils import get_token
20
21
@@ -349,10 +350,10 @@ def _wait_on_endpoint(
349
350
# Try to establish a connection to the endpoint using context manager
351
with out.connect(connect_timeout=5):
352
pass
- # If connection succeeds, endpoint is ready
353
- print('CONNECTED')
354
- break
355
- except Exception:
+ except Exception as exc:
+ if isinstance(exc, OperationalError) and exc.errno == 1045:
+ print('CONNECTED')
356
+ break
357
print('STILL WAITING')
358
import traceback
359
traceback.print_exc()
0 commit comments