Failed to open KDB AI session

https://learninghub.kx.com/forums/topic/failed-to-open-kdb-ai-session

Hi Team,

I’m getting below error in the kdb.ai UI

"Starter Edition Database

Not Running

Info
For assistance with your database review documentation for common scenarios or email support.

API Keys

The starter edition database has the option to generate three API keys at a time."

No API keys exist yet. Add a new key to get started with your database.
While running the below code and providing API endpoint and key, it is resulting in below error
KDBAI_ENDPOINT = (
os.environ["KDBAI_ENDPOINT"]
if "KDBAI_ENDPOINT" in os.environ
else input("KDB.AI endpoint: ")
)
KDBAI_API_KEY = (
os.environ["KDBAI_API_KEY"]
if "KDBAI_API_KEY" in os.environ
else getpass("KDB.AI API key: ")
)
KDBAIException: Failed to open a session on https://cloud.kdb.ai/instance/ using API key with prefix 6fa28fb0fe. Please double check your `endpoint` and `api_key`.
(I have shared the complete session endpoint over email to support@cloud.kdb.ai)

Hi @utsav

It looks to me like you might not have created an API key yet.

To double check this, goto the KDB.AI portal under Connection Details -> API Keys.

If you have any more issues please feel free to let me know.

Many thanks,

Megan

hi, i have the same issue, api key and endpoint seem to be ok