Repository navigation
Remove deprecated scale_index method - #279
Merged
Merged
Conversation
NishchayMahor
pushed a commit
to NishchayMahor/python-sdk-1
that referenced
this pull request
Sep 22, 2026
…econe-io#260) (pinecone-io#279) Three failures a caller could only find by watching a request fail — or, in the delete case, by watching it never finish — now fail in the client with a message that says what to do. Sync and async lanes are identical, and the parity suites hold them to the same exception type and text. `upload_file(file_stream=...)` defaulted the multipart filename to `"upload"` when `file_name` was omitted. The backend types an uploaded file by its extension alone and never inspects the bytes (svc-knowledge-engine src/ingest/utils.rs:434-451, pinecone-db@f6fd0a4019), so that call was a guaranteed 400 no matter what was in the stream. A stream now requires a `file_name` carrying an extension, and the refusal names the ones the server accepts (.txt, .pdf, .json, .md, .docx). `file_path` uploads are untouched: the basename already supplies the extension. `update()` with both `instructions` and `metadata` omitted built an empty patch body and the server answered 400 "No updates provided". It now refuses before sending, and the docstring records why `None` cannot clear a field: `None` means "leave this alone" and is dropped from the body, so clearing takes the empty value (`instructions=""`, `metadata={}`). `delete()` polled describe-until-404 with no terminal-state check while the server-side reconciler only rescues Create operations, so a delete that failed left the assistant parked and `timeout=None` never returned. Polling now stops on the terminal failure statuses `_poll_until_ready` already guards ("Failed", "InitializationFailed") with a PineconeError naming the state, and treats a reported "Terminated" as the delete having finished. "Terminating" stays a normal transient state — that is a delete in flight. Existing stream-upload tests gain the `file_name` the guard now requires; the integration suites already passed one everywhere. Closes pinecone-io#260 Provenance: wave-1 assistant findings 9+16+19, epoch pinecone-io#87, backend @f6fd0a4019 (svc-knowledge-engine src/ingest/utils.rs:434-451).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Found this deprecated method while updating doc strings. It won't work in its current state, and it was described as deprecated in the Changelog 2 years ago.
Solution