[SOLVED] Sync not working anymore

Hello,

I am having a weird problem.

I had those syncs set up on a contract and everything was working great.
We had to modify the contract so I went to delete and recreate the syncs using the new address. (btw, there is no better way to do that ?
Can I for example just change the address in the eventSync table in the database? Or is it a very bad idea :slight_smile: )

So I recreated the syncs.

But now, the event is not logged anymore.
I tried various things :

  • making a new class
  • restarting my server
  • recreating the sync
  • I read that _ in variables could cause trouble but the abi didn’t change so it would not have worked before either.

The one I am trying is the buyGift

The transaction is good and as far as I can see, the event is being emitted.

I have no idea apart from maybe an issue with the synchronization on moralis side (is there a website to check the moralis server status ? ).

So I’ll wait for now and try it out later and check around here if anyone has an idea.

And the server address is: https://9dx18wzfnkwv.usemoralis.com:2053/server

Thanks a lot.

did you try streams API?

it may work now, I restarted coreservices

I have seen the stream option popping but no, i didn’t gave it a look, is it replacing the syncs ?

And yes, I got the syncs in my class now.

But the cloud function that was associated with it didn’t trigger.
It’s no problem right now because it’s on testnet.

But to be sure this does not happen on mainnet, could you explain to me why this happened?

Can it only happen when syncs are removed/added or can that happen randomly (that would be very bad for us as that sync is pretty important and even if they come up later, they should still trigger the after-save cloud function).
We will have a pro plan on our mainnet app if that helps somehow.

Also to be fair, I wasn’t expecting an answer so fast and I changed the cloud function to use the new class after posting this message… so maybe you restarted faster than the update took place in which case it would make sense that the function didn’t triggered :slight_smile:

and thanks :slight_smile:

yes, we will end up moving to self hosted servers and you will have to use Streams API for event syncs on your own self hosted server

oh yeah ?

Do you know when that change will took place (forcing to move to self hosted servers ? )

this is unexpected to me :frowning:

on the good note, I guess I’ll be finally able to use external librairies in my cloud functions :slight_smile:

yes, you will be able to use external libraries in cloud function when you self host with a parse server, for free plans the change is expected to take place in close to 1 month (it was not announced yet)

Will this only affect free plan (we were moving to a pro plan soon anyway) or pro plans will be removed as well ?

I don’t know now how it will be for pro plans.