Skip to content

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

@jul-carras

Description

@jul-carras
  • 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

No one assigned

    Labels

    bugSomething isn't workingwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions