Skip to content

bug/nest-asyncio conflict with uvloop #133

@haoshan98

Description

@haoshan98

Describe the bug
The nest-asyncio used by split_pdf_hook.py triggered the error. The conflict occurs when trying to use nest-asyncio together with uvloop custom event loop.

E RuntimeError: Endpoint http://localhost:6969/api/v1/gen_tables/knowledge/upload_file returned 500 error: {"object":"error","error":"unexpected_error","message":"Opss sorry we ran into an unexpected error. Please try again later.","detail":"Can't patch loop of type <class 'uvloop.Loop'>","request_id":"01906e81-ff60-7966-9f7b-cf3798aecb94","exception":"ValueError"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions