Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore 'document_parsing_exception' #740

Open
hullarb opened this issue Dec 20, 2023 · 1 comment
Open

Ignore 'document_parsing_exception' #740

hullarb opened this issue Dec 20, 2023 · 1 comment

Comments

@hullarb
Copy link
Contributor

hullarb commented Dec 20, 2023

Hi All,

We are running connector version 14.0.7 with elasticsearch 8.10 with datastreams and we configured ignoring malformed documents.
Unfortunately when elasticsearch cannot index some document with document_parsing_exception the connector task fails.
Could you add this error to the ignored errors as well? it is thrown also because malformed document issue.

part of our connector config for reference:

behavior.on.malformed.documents: IGNORE
behavior.on.null.values: IGNORE
errors.tolerance: all
errors.deadletterqueue.topic.name: failed-ingestion

and a sample elasticsearch error message what i got after trying to ingest the document manually:

{
  "error" : {
    "root_cause" : [
      {
        "type" : "parsing_exception",
        "reason" : "Failed to parse object: expecting token of type [START_OBJECT] but found [VALUE_STRING]",
        "line" : 1,
        "col" : 234
      }
    ],
    "type" : "document_parsing_exception",
    "reason" : "[1:234] failed to parse field [properties] of type [flattened] in document with id   REDACTED'",
    "caused_by" : {
      "type" : "parsing_exception",
      "reason" : "Failed to parse object: expecting token of type [START_OBJECT] but found [VALUE_STRING]",
      "line" : 1,
      "col" : 234
    }
  },
  "status" : 400
}

Thanks,
Bela

@hullarb
Copy link
Contributor Author

hullarb commented Feb 7, 2024

i've opened a PR with a possible fix for this #748

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant