Skip to main content

How to debug KEDS

Issue

Failed to connect to EDS with KEDS in jupyter notebook. Example:

import keds
from keds.pg import connection

database = "tapgprod0"
engine=connection(database)

Troobleshooting

Add try-catch bloc to test connection

import keds
from keds.pg import connection

database = "tapgprod0"
engine=connection(database)

try:
# test connection
with engine.connect() as connection:
result = connection.execute("SELECT 1")
print("successed :", result.fetchone())
except Exception as e:
print("error :", e)

expected output:

successed : (1,)