KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums KDB.AI Failed to open KDB AI session

  • Failed to open KDB AI session

    Posted by utsav on November 28, 2023 at 12:00 am

    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)
    samogev replied 5 months, 3 weeks ago 3 Members · 2 Replies
  • 2 Replies
  • megan_mcp

    Administrator
    March 20, 2024 at 4:36 pm

    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

  • samogev

    Member
    April 20, 2024 at 9:24 pm

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

Log in to reply.