I am currently testing a small piece of custom code:
Backendless.ServerCode.customEvent('Hello', function(req) {
return 'Hello World';
});
When I hit the end point: https://api.backendless.com/v1/servercode/events/Hello I get the following response:
{
"code": 15000,"message": "Custom business logic execution has been terminated because it did not complete in permitted time - 5 seconds"
}
Any ideas? I’m sure it was working yesterday
Gary
See if changing the return type to an object would make any difference?
Backendless.ServerCode.customEvent('Hello', function(req) {
return {result:"Hello World"};
});
Same problem unfortunately. The weird thing is, everything was working yesterday. Could it be a problem with the platform itself?
Gary
Hi Gary,
Does it work in the debug mode?
Regards,
Mark
Do you mean does it successfully run using…
npm run debug
If that is what you mean then yes it does.
Could you please try it again?
Sorry for the delay in responding. Still not working for me.
Gary
What is your application id?