Mit Python -Anforderungen kann eine Verbindung zu GridDB -Cloud hergestellt werden - Verbindungsfehler abrufenPython

Python-Programme
Anonymous
 Mit Python -Anforderungen kann eine Verbindung zu GridDB -Cloud hergestellt werden - Verbindungsfehler abrufen

Post by Anonymous »

Ich versuche, eine Verbindung zur GridDB -Cloud mit Python unter Windows über einen einfachen REST -API -Aufruf zu testen.import requests

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("✅ Connection successful:", r.text)
else:
print(f"⚠️ Connection failed: {r.status_code} - {r.text}")
except requests.exceptions.RequestException as e:
print("❌ Connection error:", e)
< /code>
Was ich ausprobiert habe

• Ersetzte den Endpunkt und die Anmeldeinformationen durch mein GridDB -Cloud -Portal und die E -Mail. Fenster.❌ Connection error: HTTPSConnectionPool(host='your-griddb-cloud-endpoint', port=443):
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.>

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post