Skip to content

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

@nalakawula

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions