[Bug] Missing Error Handling of all API requests #102
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?
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.
Describe the bug
I don't think this was ever working. The API provides clear documentation on how errors are handled by the API, but the SDK does not format errors. Despite having the code for it
Looking through the internals, all of the IndexConnection API abstractions return an unformatted error returned directly
https://github.com/pinecone-io/go-pinecone/blob/main/pinecone/index_connection.go
that directly return the generated internals instead of parsing it through the shared PineconeError struct
Only the Index API calls return a properly formatted error and randomly two of the Index_connection calls.
Steps to reproduce the issue locally
make a call that resolves to an error in any of the SDK index_connection methods. Note that there is no error formatting or error handling. Leaving the consumer to resolve to string matching
Environment
The text was updated successfully, but these errors were encountered: