The afterSave function is firing very inconsistently on event listeners to contracts. It will often hang and never execute, while occasionally executing right away perfectly.
While going through the logs, every time that the cloud folder is watched we are getting this error on several functions:
ERROR || 2022-01-11 19:17:31
Error initializing sync for Event âEventBSCMintSevenTwoOneâ: request.message is not a function
We are also receiving an error that returns empty.,
ERROR || 2022-01-11 19:19:13
{}
It is important to note that these contract events have been added programmatically, and not through the admin portal UI.
Note that since working with the contract events in code, we have received this error 4 times over the last few days.
Please help us fix the issue of our afterSave functions not firing. The events are successfully being added to their respective tables without issue.