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

Deepgram STT failed to transcribe, error when raising the error #1350

Open
cch41 opened this issue Jan 8, 2025 · 1 comment
Open

Deepgram STT failed to transcribe, error when raising the error #1350

cch41 opened this issue Jan 8, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@cch41
Copy link
Contributor

cch41 commented Jan 8, 2025

From our logs:

 File "/usr/local/lib/python3.11/site-packages/livekit/plugins/deepgram/stt.py", line 474, in recv_task
    raise APIStatusError(
          ^^^^^^^^^^^^^^^
TypeError: APIStatusError.__init__() missing 3 required keyword-only arguments: 'status_code', 'request_id', and 'body'

We were looking to see why the agent stopped transcribing, but the Deepgram error was masked by a Livekit error thrown when trying to raise the Deepgram error.

If relevant, this error preceded the above:

future: <_GatheringFuture finished exception=CancelledError()>
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/livekit/plugins/deepgram/stt.py", line 422, in send_task
    async for data in self._input_ch:
  File "/usr/local/lib/python3.11/site-packages/livekit/agents/utils/aio/channel.py", line 173, in __anext__
    return await self.recv()
           ^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/livekit/agents/utils/aio/channel.py", line 103, in recv
    await g
asyncio.exceptions.CancelledError
@cch41 cch41 added the bug Something isn't working label Jan 8, 2025
@davidzhao
Copy link
Member

@cch41 which version are you running? in 0.12.7 this shouldn't be happening. all three args are optional in the current version

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