-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
When the invitation email is sent, there is an error in the process to get the invitation link that prevents the email to be sent.
Relevant log output
Task exception was never retrieved
future: <Task finished name='Task-83' coro=<UserManagementEventHooks.async_user_created_hook() done, defined at /usr/lib/python3.13/site-packages/litellm/proxy/hooks/user_management_event_hooks.py:33> exception=TypeError("LiteLLM_InvitationLinkActions.find_many() got an unexpected keyword argument 'orderBy'. Did you mean 'order'?")>
Traceback (most recent call last):
File "/usr/lib/python3.13/site-packages/litellm/proxy/hooks/user_management_event_hooks.py", line 51, in async_user_created_hook
await UserManagementEventHooks.async_send_user_invitation_email(
...<3 lines>...
)
File "/usr/lib/python3.13/site-packages/litellm/proxy/hooks/user_management_event_hooks.py", line 122, in async_send_user_invitation_email
await email_logger.send_user_invitation_email(
event=event,
)
File "/usr/lib/python3.13/site-packages/litellm_enterprise/enterprise_callbacks/send_emails/base_email.py", line 36, in send_user_invitation_email
email_params = await self._get_email_params(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<3 lines>...
)
^
File "/usr/lib/python3.13/site-packages/litellm_enterprise/enterprise_callbacks/send_emails/base_email.py", line 125, in _get_email_params
base_url = await self._get_invitation_link(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
user_id=user_id, base_url=base_url
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/lib/python3.13/site-packages/litellm_enterprise/enterprise_callbacks/send_emails/base_email.py", line 190, in _get_invitation_link
invitation_rows = await prisma_client.db.litellm_invitationlink.find_many(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
where={"user_id": user_id},
^^^^^^^^^^^^^^^^^^^^^^^^^^^
orderBy={"created_at": "desc"},
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
TypeError: LiteLLM_InvitationLinkActions.find_many() got an unexpected keyword argument 'orderBy'. Did you mean 'order'?Are you a ML Ops Team?
No
What LiteLLM version are you on ?
v1.70.2-nightly
Twitter / LinkedIn details
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working