Skip to content

Update single document fails with "Could not find a document with id:" #117

@ksuess

Description

@ksuess

Any hint how to fix this? The document is obviously already indexed.

 34         try:
 35             client.collections["content"].documents[doc_id].update(doc)
 36             logger.info(
 37                 f"Document updated in index: {path} "
 38                 f"with state {doc['review_state']}"
 39             )
 40         except Exception as e:
 41             import pdb; pdb.set_trace()
 42  ->         logger.error(f"Failed to update workflow of document {path}: {e}")
(Pdb) e
ObjectNotFound(404, 'Could not find a document with id: f3b5e2b3d95242869fefc782e02b6cbb')
(Pdb) client.collections["content"].documents.__dict__
{'api_call': <typesense.api_call.ApiCall object at 0xffff8362cec0>, 'collection_name': 'content', 'documents': {'f3b5e2b3d95242869fefc782e02b6cbb': <typesense.document.Document object at 0xffff835de960>}}```

**Versions**
typesense: 29.0
typesense-python: 1.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions