weaviate-python-client icon indicating copy to clipboard operation
weaviate-python-client copied to clipboard

Mismatch Between `update` Behavior and Docstring

Open martincpt opened this issue 1 year ago • 0 comments

client.data.update promises that the object will be created if it does not exist.

The docstring states the following:

"""
Update an object in the collection.

This is equivalent to a PATCH operation.

If the object does not exist yet, it will be created.
"""

Despite this, when I attempt to upsert an object, I receive the following error:

weaviate.exceptions.UnexpectedStatusCodeError: Object was not updated! Unexpected status code: 404, with response body: None.

martincpt avatar Mar 11 '25 11:03 martincpt