-
Notifications
You must be signed in to change notification settings - Fork 110
Closed
Labels
bugSomething isn't workingSomething isn't workingwontfixThis will not be worked onThis will not be worked on
Description
- I believe this is a new bug
- I have searched the existing Github issues and Community Forum, and I could not find an existing post for this bug
Describe the bug
After getting the client object using our API Key, using client.list_indexes() returns an odd error.
Error information
pinecone.core.client.exceptions.PineconeApiTypeError:
Invalid type for variable 'dimension'.
Required value type is int and passed type was NoneType at ['received_data']['indexes'][1]['dimension']
Steps to reproduce the issue locally
import os
from pinecone import Pinecone
pc = Pinecone(api_key=os.environ.get("PINE_API_KEY"))
pc.list_indexes()Environment
- OS Version: Sequoia 15.2
- Python version: 3.11.3
- Python SDK version: 4.1.2
Additional context
This post suggests it could be a pod vs serverless issue, but the error message is really strange. If this is the case, the message should reflect that better.
Hitting the API directly seems to work:
curl -i -X GET "https://api.pinecone.io/indexes" \
-H "Api-Key: $PINECONE_API_KEY" \
-H "X-Pinecone-API-Version: 2024-10"Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingwontfixThis will not be worked onThis will not be worked on