[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1006)'))': /vectors/fetch?

Context:
We have a Python backend service integrated with Pinecone API. We are running the backend service on GCP Cloudrun. Pinecone client version 3.1.0 and Python version 3.11
We are using FROM python:3.11.8-slim and building the image with the platform Linux/amd64

Error:
The image comes up and is running on cloud run. Whenever we make pinecone calls to insert or fetch we get this error

"2024-02-28 18:26:57,183 loglevel=WARNING logger=urllib3.connectionpool urlopen() L874 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1006)'))': /vectors/fetch?

Please help resolve this issue, we are blocked from running our service in the cloud

Yes. Same. Pinecone please provide a solution for this as this is making your service useless forcing people to look for alternatives and move away from you.

Hi @yashcraftpro, thanks for posting. The error you’re getting is most often caused by malformed vectors, so we recommend adding a try/except block to catch the specific vectors causing the issue. Please see our support article about this error for an example.