Skip to content

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

Description

@nalakawula

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions