You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Python client connects to wrong environment #196
I believe this is a new bug in the Pinecone Python Client
I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
Python client automatically tries to connect to "us-west1-gcp" even though the env variable is set to "asia-southeast1-gcp-free".
PINECONE_ENV=asia-southeast1-gcp-free
pinecone.core.client.exceptions.UnauthorizedException: (401)
Reason: Unauthorized
HTTP response headers: HTTPHeaderDict({'www-authenticate': 'API key is missing or invalid for the environment "us-west1-gcp". Check that the correct environment is specified.', 'content-length': '114', 'date': 'Sun, 20 Aug 2023 17:10:54 GMT', 'server': 'envoy'})
HTTP response body: API key is missing or invalid for the environment "us-west1-gcp". Check that the correct environment is specified.
Expected Behavior
It should connect to the southeast asia server instead of trying to connect to US-west.
You are setting the incorrect environment variable name and getting the default environment as a result. You should set PINECONE_ENVIRONMENT=asia-southeast1-gcp-free instead of PINECONE_ENV. We have a ticket to improve error messaging in cases like this.
Activity
jhamon commentedon Aug 21, 2023
You are setting the incorrect environment variable name and getting the default environment as a result. You should set
PINECONE_ENVIRONMENT=asia-southeast1-gcp-freeinstead ofPINECONE_ENV. We have a ticket to improve error messaging in cases like this.adds util for checking kwargs, and uses it to check init() (#198)
fix(rest): route NDJSON and assistant streaming bodies through _encod…