haystack-core-integrations icon indicating copy to clipboard operation
haystack-core-integrations copied to clipboard

bug: Unclosed aiohttp Sessions When Using `PineconeDocumentStore` with `run_async`

Open Amnah199 opened this issue 8 months ago • 0 comments

Describe the bug When using PineconeDocumentStore with run_async , unclosed aiohttp client session and connector errors occur during embedding_retrieval . This seems to stem from not using the IndexAsyncio client within an async context manager, as recommended by Pinecone.

To Reproduce The issue is explained by a community member on discord: https://discord.com/channels/993534733298450452/993539071815200889/1359252922608652319

Suggested Fix Using IndexAsyncio inside an async with context (as shown in the user workaround) resolves the issue.

Amnah199 avatar Apr 09 '25 15:04 Amnah199