Event Handlers(afterCreate)

Hi, i have Event Handlers(afterCreate) non-blocking is off , in debug mode everything is fine, in prod the function does not always work out, do not catch this bug,

Error (Mon Oct 05 2020 14:01:26 GMT+0300 (Москва, стандартное время) | Coderunner | ERROR | Business logic execution has been stopped, due to error: Code: 0 Class: java.lang.IllegalThreadStateException Message: null) this error no longer occurs as i turned off non-blocking
Application ID : A27D7568-B7AD-DC84-FFE6-1DE40A40E500

any idea? thanks

Hello,

Try to put the entire code of your event handler into a try/catch block and then use the Backendless logging API to log the exception you get. You can use real-time logging to see the error (Manage > Logging > Real-Time Logging) or see the log file in the /logging directory in the Files section of Backendless console.

Regards,
Mark

have @Override
public void handleResponse(Integer response) {
Log.log(“MYAPP”, “relation has been set logoped”);
}

                @Override
                public void handleFault(BackendlessFault fault) {
                    Log.log("MYAPP", "server reported an error logoped - " + fault.getMessage());
                }

no errors in the log

Hello?

@Aleksandr_Lopatka, what makes you think that the code execution should enter the handleFault method?