haystack-core-integrations
haystack-core-integrations copied to clipboard
bug: Unclosed aiohttp Sessions When Using `PineconeDocumentStore` with `run_async`
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.