Skip to content

RuntimeError: aclose(): asynchronous generator is already running w/ realtime/app example #1427

@MuhammedSirajulHudaK

Description

@MuhammedSirajulHudaK

When running an async generator with the OpenAI SDK, I get this error: (realtime example)

ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-57' coro=<<async_generator_athrow without name>()> exception=RuntimeError('aclose(): asynchronous generator is already running')>
RuntimeError: aclose(): asynchronous generator is already running

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions