[SOLVED] Events not syncing in BSC Testnet

I’m trying to sync a quite simple event like this:
event TestEvent(address indexed _from, uint indexed _id, uint _value);

However, the events are not populated.
I can see that they are seen by the moralis server:
[SCREENSHOT POSTED BELOW DUE TO ONE MEDIA ITEM LIMITATION]

It sees 4 past event (that’s fine), but they are not populated into its table:
image

Config seems to be fine:
[SCREENSHOT POSTED BELOW DUE TO ONE MEDIA ITEM LIMITATION]

However, the Events table definition seems to be missing the three parameters:
[SCREENSHOT POSTED BELOW DUE TO ONE MEDIA ITEM LIMITATION]

Any clue?

The moralis server, I can’t attach more than more image per post:

And the config:

Events table definition:

I get this in the logs:

2022-03-18T09:53:14.160Z - Error: Invalid field name: _from.
at SchemaController.enforceFieldExists (/moralis-server/lib/Controllers/SchemaController.js:1218:13)
at SchemaController.validateObject (/moralis-server/lib/Controllers/SchemaController.js:1391:28)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-18T09:53:14.049Z - Error: Invalid field name: _from.
at SchemaController.enforceFieldExists (/moralis-server/lib/Controllers/SchemaController.js:1218:13)
at SchemaController.validateObject (/moralis-server/lib/Controllers/SchemaController.js:1391:28)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-18T09:52:20.115Z - Error: Invalid field name: _from.
at SchemaController.enforceFieldExists (/moralis-server/lib/Controllers/SchemaController.js:1218:13)
at SchemaController.validateObject (/moralis-server/lib/Controllers/SchemaController.js:1391:28)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-18T09:52:20.009Z - Error: Invalid field name: _from.
at SchemaController.enforceFieldExists (/moralis-server/lib/Controllers/SchemaController.js:1218:13)
at SchemaController.validateObject (/moralis-server/lib/Controllers/SchemaController.js:1391:28)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-18T09:24:35.068Z - Error: Invalid field name: _from.
at SchemaController.enforceFieldExists (/moralis-server/lib/Controllers/SchemaController.js:1218:13)
at SchemaController.validateObject (/moralis-server/lib/Controllers/SchemaController.js:1391:28)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-18T09:24:34.856Z - Error: Invalid field name: _from.
at SchemaController.enforceFieldExists (/moralis-server/lib/Controllers/SchemaController.js:1218:13)
at SchemaController.validateObject (/moralis-server/lib/Controllers/SchemaController.js:1391:28)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)

I’ve seen that changing the API and removing the underscore it “fixes” the problem.

1 Like