Skip to content

invalid_records_* doesn't ignore psycopg2 encoding errors #231

Open
@seajhawk

Description

@seajhawk

I'm getting the following error:
target_postgres.exceptions.PostgresError: ('Exception writing records', QueryCanceled("COPY from stdin failed: error in .read() call: UnicodeEncodeError 'utf-8' codec can't encode character '\\udc81' in position 184: surrogates not allowed\nCONTEXT: COPY tmp_b02cfd05_c98b_477c_950e_cb03ed693bab, line 23990\n")) cmd_type=elb consumer=True name=target-postgres producer=False stdio=stderr string_id=target-postgres

I was hoping that the invalid_records_* settings would help with this kind of problem, but that doesn't seem to be the case.

Is it supposed to help?

If not, do you have any suggestions for avoiding this kind of problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions