BASE = "https://cloud5197.griddb.com:443/griddb ... s/K6wQBEME"# Replace with your endpoint
AUTH = ("your-login-email", "your-password") # Replace with your credentials
try:
r = requests.get(f"{BASE}/ping", auth=AUTH, timeout=10)
if r.status_code == 200:
print("
else:
print(f"
except requests.exceptions.RequestException as e:
print("
< /code>
Was ich ausprobiert habe
• Ersetzte den Endpunkt und die Anmeldeinformationen durch mein GridDB -Cloud -Portal und die E -Mail. Fenster.
Max retries exceeded with url: /v1/ping (Caused by NewConnectionError(...))
< /code>
Frage
• Gibt es eine zusätzliche Konfiguration, die zum Zugriff auf Griddb Cloud Rest API erforderlich ist (wie IP -Whitelist, SSL -Zertifikat oder Proxy)? /> Umgebung
• Betriebssystem: Windows 11
• Python: 3.12
• Bibliothek: Anforderungen 2.32
• IDE: Visual Studio Code < /P.>