Skip to content

connector_typesense: KeyError: 'errors' when adding items to index with errors #220

@schiggi

Description

@schiggi

Module

connector_typesense

Describe the bug

Bindings with some Typesense error are stuck in exporting state and not visible error message prevents exporting of other bindings.

The translation string expects a parameter named errors:
"Unable to index all records. (nbr errors: %(errors)s, ..."
but the code passes indexed instead.

I guess, during refactoring the variable changes was ommited.

To Reproduce

Affected versions: 16.0, 17.0, 18.0

Steps to reproduce the behavior:
1.Add multiple bindings to be exported (to_export state) to Typesense that will throw an error on Typesense
2.Run scheduler
3.Getting a Python error mentioned before and stuck in exporting state

Expected behavior
User error shown with correct state update

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions