Skip to content

bug: Unclosed aiohttp Sessions When Using PineconeDocumentStore with run_async #1634

Open
@Amnah199

Description

@Amnah199

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions