Sync smart contracts not triggering and showing in the Database

After a sync smart contracts event the data table on the server is not showing the event, even after refreshing.

It’s a smart contract event with this ABI:

[{
“anonymous”: false,
“inputs”: [{
“indexed”: true,
“internalType”: “uint256”,
“name”: “nounId”,
“type”: “uint256”
}, {
“indexed”: false,
“internalType”: “uint256”,
“name”: “startTime”,
“type”: “uint256”
}, {
“indexed”: false,
“internalType”: “uint256”,
“name”: “endTime”,
“type”: “uint256”
}],
“name”: “AuctionCreated”,
“type”: “event”
}]

Using this contract (events):
https://etherscan.io/address/0x55e0f7a3bb39a28bd7bcc458e04b3cf00ad3219e#events

This is the topic:
AuctionCreated(uint256,uint256,uint256)

https://mmjbpfaodbtf.usemoralis.com:2053/server

Thanks

It seems to be some issue with that server, I could delete the server if you want to try again with a new server.

Yeah, please delete it and i’ll try again, thanks

server is deleted now

Thanks, i’ll see what happens

Unfortunately that didn’t work either, still not adding to the database:
https://witiy4l01xiz.usemoralis.com:2053/server
Any ideas?

checking, I guess that this will help you more when it will be ready:

it looks like it works, if you get an error in that beforeSave then the event will not be saved in the database, and beforeSave will also not run for historical data

I’m not sure how it looks like it works, there is nothing being added to the data table. Even though the there have been events. I thought id set everything correctly in the sync, so i’m not sure what else I can do. How would I see an error?

Also the ABI for the implementation contract at 0x5b2003ca8fe9ffb93684ce377f52b415c7dc0216 is using the EIP-1967 Transparent Proxy pattern. Would that be an issue?
https://etherscan.io/address/0x55e0f7a3bb39a28bd7bcc458e04b3cf00ad3219e#readProxyContract

what is the server url where you added that event, what is the event on that server?

this I believe is the server URL:
The one that is in the “Dapp Credentials” on the Dapp Details tab:
https://witiy4l01xiz.usemoralis.com:2053/server

The sync event is:
AuctionCreated

there are some events in that table somehow

Yes, when I first set it up, it populated it with 10 rows, which I specified (10) in the “Max Historical Records” Field, so it pulled in those more or less straight away, however since then no more rows of events have been added, despite blockchain events happening.

Try to disable that beforeSave to see if it works

Do you mean the:

Moralis.Cloud.beforeSave(“AuctionCreated”, async (request) =>{

That is in the Cloud functions?

Yes, that one, or you could add more logging

I’ve removed everything from cloud functions, will see if that makes a difference

What would more logging be?

Like a logger.info in the first line of that function

OK, it looks like it updates the database now.

However I have now lost the cloud functions console screen on the “Cloud Functions” tab even though the CLI says: Changes Uploaded Correctly