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

Backfill error: invalid byte sequence for encoding "UTF8": 0x00 #33

Open
gskril opened this issue May 11, 2024 · 1 comment
Open

Backfill error: invalid byte sequence for encoding "UTF8": 0x00 #33

gskril opened this issue May 11, 2024 · 1 comment

Comments

@gskril
Copy link
Owner

gskril commented May 11, 2024

Error thrown when backfilling FIDs 308901 - 309000. The job stopped at 71%, so the issue is likely happening somewhere between FID 308970 - 308975.

@jiayuxiaochaoren
Copy link

jiayuxiaochaoren commented May 14, 2024

Same problem.
It seems to be encoding content has '$'?

      "type": "DatabaseError",
      "message": "invalid byte sequence for encoding \"UTF8\": 0x00",
      "stack":
          error: invalid byte sequence for encoding "UTF8": 0x00
              at /app/node_modules/pg/lib/client.js:526:17
              at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
              at async PostgresConnection.executeQuery (file:///app/node_modules/kysely/dist/esm/dialect/postgres/postgres-driver.js:69:28)
              at async file:///app/node_modules/kysely/dist/esm/query-executor/query-executor-base.js:35:28
              at async DefaultConnectionProvider.provideConnection (file:///app/node_modules/kysely/dist/esm/driver/default-connection-provider.js:10:20)
              at async DefaultQueryExecutor.executeQuery (file:///app/node_modules/kysely/dist/esm/query-executor/query-executor-base.js:34:16)
              at async InsertQueryBuilder.execute (file:///app/node_modules/kysely/dist/esm/query-builder/insert-query-builder.js:686:24)
              at async insertCasts (file:///app/dist/api/cast.js:15:13)
              at async Worker.handleJob [as processFn] (file:///app/dist/lib/backfill.js:83:9)
              at async Worker.processJob (/app/node_modules/bullmq/dist/cjs/classes/worker.js:430:28)
              at PostgresConnection.executeQuery (file:///app/node_modules/kysely/dist/esm/dialect/postgres/postgres-driver.js:88:41)
              at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
              at async file:///app/node_modules/kysely/dist/esm/query-executor/query-executor-base.js:35:28
              at async DefaultConnectionProvider.provideConnection (file:///app/node_modules/kysely/dist/esm/driver/default-connection-provider.js:10:20)
              at async DefaultQueryExecutor.executeQuery (file:///app/node_modules/kysely/dist/esm/query-executor/query-executor-base.js:34:16)
              at async InsertQueryBuilder.execute (file:///app/node_modules/kysely/dist/esm/query-builder/insert-query-builder.js:686:24)
              at async insertCasts (file:///app/dist/api/cast.js:15:13)
              at async Worker.handleJob [as processFn] (file:///app/dist/lib/backfill.js:83:9)
              at async Worker.processJob (/app/node_modules/bullmq/dist/cjs/classes/worker.js:430:28)
              at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:619:24)
      "length": 148,
      "name": "error",
      "severity": "ERROR",
      "code": "22021",
      "where": "unnamed portal parameter $157",
      "file": "mbutils.c",
      "line": "1723",
      "routine": "report_invalid_encoding"
    }

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

2 participants