Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] client.list_indexes() kicks out an unrelated error #433

Open
2 tasks done
jul-carras opened this issue Jan 22, 2025 · 0 comments
Open
2 tasks done

[Bug] client.list_indexes() kicks out an unrelated error #433

jul-carras opened this issue Jan 22, 2025 · 0 comments
Labels
bug Something isn't working status:needs-triage An issue that needs to be triaged by the Pinecone team

Comments

@jul-carras
Copy link

jul-carras commented Jan 22, 2025

Is this a new bug?
In other words: Is this an error, flaw, failure or fault? Please search Github issues and check our Community Forum to see if someone has already reported the bug you encountered.

If this is a request for help or troubleshooting code in your own Pinecone project, please join the Pinecone Community Forum.

  • 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"
@jul-carras jul-carras added the bug Something isn't working label Jan 22, 2025
@github-actions github-actions bot added the status:needs-triage An issue that needs to be triaged by the Pinecone team label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working status:needs-triage An issue that needs to be triaged by the Pinecone team
Projects
None yet
Development

No branches or pull requests

1 participant