Concurrent queries to same index

Hi, I am using python’s concurrent futures to query the same index with different vectors. I am getting the following error:

ForbiddenException: (403)
Reason: Forbidden
HTTP response headers: HTTPHeaderDict({‘Content-Length’: ‘50’, ‘content-type’: ‘text/plain’, ‘date’: ‘Fri, 01 Dec 2023 00:54:24 GMT’, ‘server’: ‘envoy’, ‘Via’: ‘1.1 google’, ‘Alt-Svc’: ‘h3=“:443”; ma=2592000,h3-29=“:443”; ma=2592000’})
HTTP response body: Project in subdomain didn’t match API keys project

I am currently on the free tier. Can someone please help? This is not an issue for a single vector query but only for querying multiple vectors concurrently.

Are you sure your Authorization header is being shared with each request? That would be the only reason you would get this. I would log each concurrent request to make sure the url and Authorization headers and body are all as expected.

Yes, it is being created for each request. I found a way around it. Instead of creating the index for each concurrent request, create a single index and send it with each futures. That worked.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.