Skip to content

1st argument: not an iodata term #3731

@mwildehahn

Description

@mwildehahn

Versions

  • Client: platform, version (e.g. typescript, 1.0.0; or just "plain HTTP")
  • Electric: 1.3.0

Bug description

07:41:52.824 pid=<0.3340.0> [info] Configuring publication pub_default to drop ["schema_a.tbl_primary"] tables, add [] tables, and configure replica identity for [] tables - skipping altered tables []

07:42:08.687 pid=<0.3359.0> [info] Creating new shape for Shape.new!({<rel_id_primary>, "schema_a.tbl_primary"}, where: "<ACCESS_PREDICATE_REDACTED>", columns: [...], deps: [
  {"<dep_handle_1>", Shape.new!({<rel_id_dep_1>, "schema_a.tbl_dep_1"}, where: "user_id = '<user_uuid_redacted>'", columns: ["fk_id"])},
  {"<dep_handle_2>", Shape.new!({<rel_id_dep_2>, "schema_a.tbl_dep_2"}, where: "fk_id IN (SELECT fk_id FROM schema_a.tbl_dep_1 WHERE user_id = '<user_uuid_redacted>')", columns: ["other_fk"], deps: [
    Shape.new!({<rel_id_dep_1>, "schema_a.tbl_dep_1"}, where: "user_id = '<user_uuid_redacted>'", columns: ["fk_id"])
  ])}
]) with handle <shape_handle_redacted>

07:42:08.698 pid=<0.3340.0> [info] Configuring publication pub_default to drop [] tables, add ["schema_a.tbl_primary"] tables, and configure replica identity for [] tables - skipping altered tables []

07:42:08.731 pid=<0.3752.0> request_id=<req_id_redacted> [warning] Failed to create snapshot for <shape_handle_redacted>: errors were found at the given arguments:

  * 1st argument: not an iodata term


07:42:08.731 pid=<0.3753.0> shape_handle=<shape_handle_redacted> [info] Removing shape "<shape_handle_redacted>"

07:42:08.732 pid=<0.3752.0> request_id=<req_id_redacted> [error] Electric.DBConnection unknown error: %ArgumentError{message: "errors were found at the given arguments:\n\n  * 1st argument: not an iodata term\n"}

07:42:08.734 pid=<0.3752.0> request_id=<req_id_redacted> [error] Unknown error while creating snapshot: %ArgumentError{message: "errors were found at the given arguments:\n\n  * 1st argument: not an iodata term\n"}

07:42:08.736 pid=<0.3340.0> [info] Configuring publication pub_default to drop ["schema_a.tbl_primary"] tables, add [] tables, and configure replica identity for [] tables - skipping altered tables []

Expected behavior
A clear and concise description of what you expected to happen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions