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

Reorg leads to JSON parse runtime error #1503

Open
tk-o opened this issue Feb 11, 2025 · 3 comments
Open

Reorg leads to JSON parse runtime error #1503

tk-o opened this issue Feb 11, 2025 · 3 comments

Comments

@tk-o
Copy link
Contributor

tk-o commented Feb 11, 2025

I noticed indexer app crash following an attempted reorg. There's very little information about the JSON object value itself, but I assume it'd be ENS resolver update including twitter handle.

How can I debug this issue further?

Context

Ponder version

v0.9.2

Relevant links:

Error log

9:15:57 AM WARN  database   Failed 'revert' database method after '10' attempts (id=66295ba5)
error: invalid input syntax for type json
    at /app/node_modules/.pnpm/[email protected]/node_modules/pg/lib/client.js:526:17
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at PostgresConnection.executeQuery (file:///app/node_modules/.pnpm/[email protected]/node_modules/kysely/dist/esm/dialect/postgres/postgres-driver.js:69:28)
    at PostgresConnection.connection.executeQuery (file:///app/node_modules/.pnpm/[email protected]/node_modules/kysely/dist/esm/driver/runtime-driver.js:89:24)
    at file:///app/node_modules/.pnpm/[email protected]/node_modules/kysely/dist/esm/query-executor/query-executor-base.js:35:28
    at SingleConnectionProvider.#run (file:///app/node_modules/.pnpm/[email protected]/node_modules/kysely/dist/esm/driver/single-connection-provider.js:25:16)
    at PostgresConnection.executeQuery (file:///app/node_modules/.pnpm/[email protected]/node_modules/kysely/dist/esm/dialect/postgres/postgres-driver.js:88:41)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at PostgresConnection.connection.executeQuery (file:///app/node_modules/.pnpm/[email protected]/node_modules/kysely/dist/esm/driver/runtime-driver.js:89:24)
    at file:///app/node_modules/.pnpm/[email protected]/node_modules/kysely/dist/esm/query-executor/query-executor-base.js:35:28
    at SingleConnectionProvider.#run (file:///app/node_modules/.pnpm/[email protected]/node_modules/kysely/dist/esm/driver/singleconnection-provider.js:25:16)
where: JSON data, line 1: {"com.twitter",...
unnamed portal parameter $6 = '...'
9:15:57 AM ERROR process    Caught unhandledRejection event
error: invalid input syntax for type json
    at file:///app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected]_viem@_2zi2ugd7djddbbngl4rnlijcfu/node_modules/common/src/queue.ts:184:15
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
where: JSON data, line 1: {"com.twitter",...
unnamed portal parameter $6 = '...'
9:15:57 AM WARN  process    Received unhandledRejection, starting shutdown sequence
@kyscott18
Copy link
Collaborator

@tk-o
Copy link
Contributor Author

tk-o commented Feb 13, 2025

Hey @kyscott18, thank you for a quick reply 🙃

It's very likely that's the one, yes.

@tk-o
Copy link
Contributor Author

tk-o commented Feb 13, 2025

I updated to ponder v0.9.10 and changed the schema:

https://github.com/namehash/ensnode/blob/c119d06/packages/ponder-schema/src/ponder.schema.ts#L119-L121

I'll report back once indexing reaches realtime phase and some forks were handled without the JSON parse error.

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