Skip to content

Commit

Permalink
Add note about null bytes to Readme
Browse files Browse the repository at this point in the history
Closes #155
  • Loading branch information
palkan committed Jul 16, 2020
1 parent ba3a8b4 commit 20bad72
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,13 @@ Secondly, set `config.use_sql = true` in the Apartment configuration.

Related issues: [#50](https://github.com/palkan/logidze/issues/50).

### `PG::UntranslatableCharacter: ERROR`

That could happen when your row data contain null bytes. You should sanitize the data before writing to the database.
From the [PostgreSQL docs](https://www.postgresql.org/docs/current/datatype-json.html): `jsonb type also rejects \u0000 (because that cannot be represented in PostgreSQL's text type)`.

Related issues: [#155](https://github.com/palkan/logidze/issues/155).

## Development

We use [Dip](https://github.com/bibendi/dip) for development. Provision the project by running `dip provision` and then use `dip bundle`, `dip rspec` or `dip bash` to interact with a Docker development environment.
Expand Down

0 comments on commit 20bad72

Please sign in to comment.