Skip to content

fix: fix stuck indexing due to rpc malformation - #2

Merged
kernelwhisperer merged 1 commit into
mainfrom
fix/stuck-indexing-due-to-rpc-malformation
Aug 19, 2026
Merged

fix: fix stuck indexing due to rpc malformation#2
kernelwhisperer merged 1 commit into
mainfrom
fix/stuck-indexing-due-to-rpc-malformation

Conversation

@kernelwhisperer

@kernelwhisperer kernelwhisperer commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes

error: value "4294967292" is out of range for type integer
    at /usr/src/app/node_modules/.pnpm/pg@8.19.0/node_modules/pg/lib/client.js:631:17
    at processticksandrejections (node:internal/process/task_queues:103:5)
    at retrylogmetricerrorwrap (.../ponder/src/database/querybuilder.ts:194:24)
    at object.insertlogs (.../ponder/src/sync-store/index.ts:588:9)
    at async promise.all (index 4)
    at promiseallsettledwiththrow (.../ponder/src/utils/promiseallsettledwiththrow.ts:12:18)
    at syncblockdata (.../ponder/src/sync-historical/index.ts:1008:9)
    at async promise.all (index 5517)
    at object.syncblockdata (.../ponder/src/sync-historical/index.ts:1049:9)
    at .../ponder/src/runtime/historical.ts:1303:37

That is causing the indexer to be stuck at 0.1% backfill.

The existing Ponder patch skips oversized logIndex values during validation. However, standardizeLogs() returns the original array, so PostgreSQL still receives those logs.

PostgreSQL rejects 0xfffffffc with error 22003.

Changes

  • Return only logs with a logIndex within the PostgreSQL integer limit.
  • Keep the existing handling for Gnosis sentinel log indices.
  • Update the pnpm patch hash.

How to Test

  1. Install the dependencies:

    pnpm install --frozen-lockfile
    

Checklist

  • Tests pass locally
  • Linting passes
  • Documentation updated (if needed)
  • Breaking changes documented (if any)

Breaking Changes

None

Related Issues

None

@kernelwhisperer
kernelwhisperer merged commit 4cd896e into main Aug 19, 2026
4 checks passed
@kernelwhisperer
kernelwhisperer deleted the fix/stuck-indexing-due-to-rpc-malformation branch August 19, 2026 09:10
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

Successfully merging this pull request may close these issues.

2 participants