ERROR Failed to index block 3433175: TypeError: Cannot read properties of undefined (reading 'transformer')

I got this error when syncing moonbeam subgraph.

node version: v2.0.2

2023-05-01T23:59:10.780Z <Worker Service #2> ERROR Failed to index block 3433175: TypeError: Cannot read properties of undefined (reading 'transformer')
    at webpack://moonbeam-dictionary/src/mappings/mappingHandlers.ts:22:269
    at VM2 Wrapper.apply (/usr/local/lib/node_modules/@subql/node/node_modules/vm2/lib/bridge.js:485:11)
    at Array.map (<anonymous>)
    at VM2 Wrapper.apply (/usr/local/lib/node_modules/@subql/node/node_modules/vm2/lib/bridge.js:485:11)
    at Object.e.handleBlock (webpack://moonbeam-dictionary/src/mappings/mappingHandlers.ts:22:179) TypeError: Cannot read properties of undefined (reading 'transformer')
2023-05-01T23:59:10.782Z <worker: 2> ERROR Worker error 
2023-05-01T23:59:10.849Z <worker: 2> ERROR Worker exited with code 1 
1 Like

Testing a fix here Update moonbean dic by HZHAIX · Pull Request #6 · subquery/dictionary-projects · GitHub

The Moonbeam dictionary has some corrupted data blocks that we are learning about now that we are reindexing data.

As a result, we are removing the Moonbeam dictionary temporarily from Kepler.

If you have already restored the Moonbeam dictionary, you can remove it and delete the project data from your database - a new restore file will be provided in the future. Please shift your focus to the Polkadot and Kusama dictionaries.

We apologise for any time that you have spent on this and we appreciate your patience as we identify and resolve this issue.

You can remove Moonbeam by following Indexing a SubQuery Project | SubQuery Academy (Documentation)

I have the same error when trying to index from block 0, in which case error happens on block 171075.

I’ve tried 2 of my own moonbeam archive nodes, one without and one with tracing enabled. I also tried ws vs http for indexing. I also tried removing the mmr folder. But keeps crashing on the same block.