[Bug] Nil pointer deref in res.Usage in ListVectors call #90
Labels
bug
Something isn't working
status:needs-triage
An issue that needs to be triaged by the Pinecone team
Is this a new bug?
Describe the bug
Upon calling
ListVectors
it fails with a nil pointer panic. While debugging, I can see the field the code is trying to read is nil.Error information
After the grpc call to
res, err := (*idx.dataClient).List(idx.akCtx(ctx), req)
err is nil butres
looks malformed, theres.Usage
pointer is nil but the current code tries to readReadUnits
without first checkingUsage
for nil.Steps to reproduce the issue locally
Call
ListVectors
with any args, it seems.Environment
The text was updated successfully, but these errors were encountered: