pgsql: invalid byte sequence for encoding "UTF8": 0x00 when updating the last error message on repo table for corrupt repo
Created by: mike-r-mclaughlin
- Sourcegraph version: 3.27.4
Steps to reproduce:
Unclear. Requires a "corrupt" git repository. Errors in gitserver at the time show:
fatal: unable to read `<git_sha>`
aborting due to possible repository corruption on the remote side
on pgsql
pod we see:
2021-04-29 15:11:20.085 GMT [3272] ERROR: invalid byte sequence for encoding "UTF8": 0x00
We see a similar error when we try to do a git clone
from the command line.
Expected behavior:
No error in the pgsql
logs
Actual behavior:
Error is displayed in the pgsql
logs:
2021-04-29 15:11:20.085 GMT [3272] ERROR: invalid byte sequence for encoding "UTF8": **0x00**