Start a new topic

BLTimeoutError

GET http://baas.kinvey.com/appdata/APP_ID/expense-reports method but returns {"error":"BLTimeoutError","description":"The Business Logic script did not complete. Please contact support","debug":"The script was terminated due to timing constraints: took more than 2000ms to complete. Did you forget to call response.complete() or response.continue()?"}

I've found the problem. This was onPostFetch. not returning response.continue or complete!
Yesterday, I could see data on tab, today I cannot see data there![](https://15254b2dcaab7f5478ab-24461f391e20b7336331d5789078af53.ssl.cf1.rackcdn.com/kinvey.vanillaforums.com/editor/85/z90ak96pd4zv.jpg "")
First of all this is not a POST method, I am requesting a GET method. If GET method triggers onPreSave, this is not logical. On the other hand, I tried your suggestion and result is the same. We are not allowed to change get method and i think there is a problem at a side that we can't see.
Hasan: Every one of your BL scripts must end with either a response.complete() or a response.continue() without exception. Thus your business logic will never complete and will wait for longer than 2 seconds. The template when you create new business logic looks like this: function onPreSave(request, response, modules) { response.continue(); } Which contains the response.continue() as indicated. Please let me know if you have any other questions,
Login or Signup to post a comment