Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid API key #10

Open
MuhammadNomanIqbal opened this issue Dec 5, 2024 · 5 comments
Open

Invalid API key #10

MuhammadNomanIqbal opened this issue Dec 5, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@MuhammadNomanIqbal
Copy link

Describe the bug

created user using cli comand as a result api key is generated, use this api key to configure the SDK. getting status code 401 Invalid API key
Endpoint: /worksapces
Method: GET

To Reproduce

Steps to reproduce the behavior:
1.To create the user, run the following from src/whyhow_api/cli/:
2. Run Command python admin.py create-user --email --openai-key
3. why_how api key is generated
4. use this api key to configure the SDK.

Screenshots

image

image

@MuhammadNomanIqbal MuhammadNomanIqbal added the bug Something isn't working label Dec 5, 2024
@recchris
Copy link
Member

recchris commented Dec 5, 2024

Thanks @MuhammadNomanIqbal, can you confirm that you see this API key in your user collection in MongoDB? Can you also confirm that you can hit the Atlas endpoint from your IP?

@MuhammadNomanIqbal
Copy link
Author

"Yes, I can confirm the following:

  1. The API key is present in the user collection of my local MongoDB database, as shown in the attached screenshot.
    Below ss attached for user collection and i also use this api key with this script you have provided on git to make start.
    local mongodb user collection
    image
    checked connectivity using mongo shell
    checked connectivity in mongo shell
    image
    Also run script locally give error like invalid api key there also.
    script to test locally
    image
    image
    image

@MuhammadNomanIqbal
Copy link
Author

I would like to know if the frontend (FE) open-source code for the Knowledge Graph Studio is available. If it is available, could you let me know which programming language or framework was used to build the frontend part?"

Thanks.

@recchris
Copy link
Member

recchris commented Dec 7, 2024

Hey @MuhammadNomanIqbal, fyi we just pushed a new version of the src/whyhow_api/cli/admin.py script. Could you try pulling the latest and try recreating the db + collections + indexes with this new script and see if that works better for you?

Re: Knowledge Graph Studio UI - we charge for the frontend, so this is not available open source.

@MuhammadNomanIqbal
Copy link
Author

ok thanks @recchris

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants