Skip to content
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

Socket error using Windows and REST #528

Open
jsancs opened this issue Mar 6, 2024 · 0 comments
Open

Socket error using Windows and REST #528

jsancs opened this issue Mar 6, 2024 · 0 comments

Comments

@jsancs
Copy link

jsancs commented Mar 6, 2024

The following code:

from qdrant_client import QdrantClient

client = QdrantClient('http://localhost:6333')
collection_name = 'test'

offset = 0
while offset is not None:
    response, offset_id = client.scroll(collection_name=collection_name, offset=offset, limit=1000)
    offset = offset_id

    for r in response:
        r.payload['random'] = random  # Put here whatever values you want

        client.set_payload(
            collection_name=collection_name,
            payload=r.payload,
            points=[r.id]
        )

Gives an error in Windows if the collection has a lot of points (~40.000 in this test) with sockets:
OSError: [WinError 10048] Only one usage of each socket address (protocol/networ address/port) is normally permitted

With grpc it works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant