Skip to content

PLA-2317: Fix block re-processing crashes in EventProcessor, ExtrinsicProcessor, and TokenCreated#364

Open
pawell67 wants to merge 1 commit intomasterfrom
feature/PLA-2317/block-processor-fixes
Open

PLA-2317: Fix block re-processing crashes in EventProcessor, ExtrinsicProcessor, and TokenCreated#364
pawell67 wants to merge 1 commit intomasterfrom
feature/PLA-2317/block-processor-fixes

Conversation

@pawell67
Copy link
Contributor

ExtrinsicProcessor/EventProcessor:

  • Guard against string values from DB longText columns for block.events and block.extrinsics (is_array check instead of null-coalescing)
  • Filter null events before accessing extrinsicIndex property to prevent "Attempt to read property on null" errors in saveExtrinsicEvents and updateTransaction

TokenCreated:

  • Use firstOrCreate instead of create to prevent UniqueConstraintViolationException when re-processing blocks where the token already exists from a later block's ingestion

…cProcessor, and TokenCreated

ExtrinsicProcessor/EventProcessor:
- Guard against string values from DB longText columns for block.events
  and block.extrinsics (is_array check instead of null-coalescing)
- Filter null events before accessing extrinsicIndex property to prevent
  "Attempt to read property on null" errors in saveExtrinsicEvents and
  updateTransaction

TokenCreated:
- Use firstOrCreate instead of create to prevent
  UniqueConstraintViolationException when re-processing blocks where
  the token already exists from a later block's ingestion

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@pawell67 pawell67 requested a review from zlayine February 14, 2026 21:19
@pawell67 pawell67 self-assigned this Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments