Can you share what the object in JSON looks like when you create it?
I donât create a JSON file, I using Backendless.data to save a class
Letâs make sure your afterCreate
handler is even invoked. Add the following block as the very first block in the logic and create a new object. Check the log if the log produced any output.
made the change, no print
Ok, so we know that the event handler doesnât run, thatâs a good start.
What if you make the event handler to run as blocking? Right now it is configured to run as non-blocking. It is configured on the Event Handlers screen.
made the change, no effect
very strange, like the after create stopped to run
more then that, I saw the one time the after effect was run
but I didnât see it on the log
itâs before create, changed it, let me try again
done it, no effect again
mark, if before create fails, does it still run the after create?
found something, in the before create itâs working
thatâs mean in time to time the after create for some reason not working
I am adding now the try catch to the before and trying to print the problem
if the before
event handler fails, the after
one will not run.
put the before in try catch, donât have any error
beforeCreate is still non-blocking. Is this how you want it?
moved it again to blocking
I also add a print as the last block, to see if exception is thrown
I getting the last print, which mean, the before create is working o.k.
I see also in the Backendless data that I have single event
the problem is that after event is not firing at all
ok, try removing the after
event handler in production and then deploy it again using the DEPLOY MODEL
button in the codeless editor.
done, no change, still after is not firing
itâs something new, few days ago, all was working o.k.
is it related that I delete the cache file?