Skip to content

bug/nest-asyncio conflict with uvloop #133

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

Closed
haoshan98 opened this issue Jul 19, 2024 · 2 comments · Fixed by #142
Closed

bug/nest-asyncio conflict with uvloop #133

haoshan98 opened this issue Jul 19, 2024 · 2 comments · Fixed by #142
Labels
bug Something isn't working

Comments

@haoshan98
Copy link

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"}

@haoshan98 haoshan98 added the bug Something isn't working label Jul 19, 2024
@awalker4
Copy link
Collaborator

Hi @haoshan98, the linked PR will fix this error. Unfortunately, the current splitting implementation will not work with uvloop, so here we can fallback to not splitting pdfs. Keep an eye on #135 for a full overhaul of our asyncio code.

@awalker4
Copy link
Collaborator

awalker4 commented Aug 5, 2024

This error is fixed in 0.25.2

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

Successfully merging a pull request may close this issue.

2 participants