pinecone-io / pinecone-python-client

The Pinecone Python client
https://www.pinecone.io/docs
Apache License 2.0
304 stars 79 forks source link

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

Open yashcraft opened 8 months ago

yashcraft commented 8 months ago

Is this a new bug in the Pinecone Python client?

Current Behavior

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

Expected Behavior

API call should go through with 2xx response

Steps To Reproduce

  1. Build docker image using

Relevant log output

Retrying (Retry(total=2, 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?

Environment

- OS:
- Python:
- pinecone:

Additional Context

We tried downgrading ssl version to 1.1.1l but not working