Index.list throwing some error for me

pc = Pinecone(
api_key=pinecone_api_key
)
index = pc.Index(pcone_index)

for ids in index.list():
    print(ids)

I am getting this weird error:
raise PineconeException(e._state.debug_error_string) from e
pinecone.core.openapi.shared.exceptions.PineconeException: UNKNOWN:Error received from peer {created_time:“2024-08-13T01:31:25.1449183+00:00”, grpc_status:12, grpc_message:“”}

@jay.pac ,

Are you using a pod-based or serverless index?

The list operation is supported only for serverless indexes (see List vector IDs).

Best,

Evan