-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
[Bug]: Event loop issue with OpensearchVectorClient during streaming response #12675
Comments
Hey @ttozser, good to see you around here again! 🚀 I'm diving into your issue right now and will circle back with insights shortly. Hang tight! 🛸 |
@ahs8w maybe you can help me with this issue |
@ahs8w, it looks like @ttozser is seeking your expertise on an issue with
|
@ttozser use asyncio loop type, enable nesting.
|
Thank you. |
i use this, can only use one request,second request happen error, RuntimeError: Timeout context manager should be used inside a task,why? |
Bug Description
I create an AsyncContentStream to return a StreamingResponse with FastAPI.
When I try to initialize OpensearchVectorClient I get the following exception
The same code used to work and it broke after this PR was merged #11513
Version
llama-index-core = 0.10.27, llama-index-vector-stores-opensearch = 0.1.8
Steps to Reproduce
Create an AsyncContentStream and return a StreamingResponse with FastAPI.
Try to initialize the OpensearchVectorClient inside the AsyncContentStream
Relevant Logs/Tracbacks
The text was updated successfully, but these errors were encountered: