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

Error: Requesting username even though I provided the api key #8

Open
nalakawula opened this issue Feb 14, 2023 · 0 comments
Open

Error: Requesting username even though I provided the api key #8

nalakawula opened this issue Feb 14, 2023 · 0 comments

Comments

@nalakawula
Copy link

Hi, thank you for the library. I follow your README, and got following error:

Traceback (most recent call last):
  File "/home/sumar/Projects/python/fastapi-todo-convoy/convoy_test.py", line 2, in <module>
    convoy = Convoy({"api_key":"redacted"})
  File "/home/sumar/Projects/python/fastapi-todo-convoy/venv/lib/python3.10/site-packages/convoy/convoy.py", line 22, in __init__
    self.applications = application.Application(config)
  File "/home/sumar/Projects/python/fastapi-todo-convoy/venv/lib/python3.10/site-packages/convoy/api/application.py", line 11, in __init__
    self.client = Client(config)
  File "/home/sumar/Projects/python/fastapi-todo-convoy/venv/lib/python3.10/site-packages/convoy/client/client.py", line 12, in __init__
    self.username = config["username"]
KeyError: 'username'

Step to reproduce

  • create python venv
  • pip install convoy-python
  • create simple python file
from convoy import Convoy
convoy = Convoy({"api_key":"your_api_key"})
  • then run the python file.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant