Backendless Version (3.x / 6.x, Online / Managed / Pro)
Backendless Online (cloud), current console. App name: brilliant_grades.
Client SDK (REST / Android / Objective-C / Swift / JS)
JS Cloud Code / Codeless API Service. Editor: Logic Designer Custom Code. Also edited generated index.js in File Service.
Application ID
4A47197B-AE30-FA84-FF56-0071F4010900
Expected Behavior
- Open a Codeless API Service method whose body is one Custom Code block (a large
asyncscript is enough; business logic does not matter). - Deploy the service from Logic Designer (Save and Deploy All).
- Generated File Service
index.jsshould emit a complete class: each method must close with}after/*METHOD_BODY*/before the next/*METHOD …*/marker. - Code inspection should pass. A later method in the same service should start outside the previous method.
Minimal expected shape:
async SomeMethod(event) {
/*METHOD_BODY*/
await (async function() {
// custom code
})();
}
/*METHOD NextMethod*/
Actual Behavior
- After Logic Designer deploy of Codeless service
BG_04_FUTURE_ONBOARDING, generatedservercode/CODELESS/BG_04_FUTURE_ONBOARDING/{DRAFT|PRODUCTION}/index.jsomits the closing}of at least these methods:
Future_Onboarding_MicroschoolFuture_Onboarding_Main_Method
- The next method’s comment and
async …(then sit inside the previous method. Inspection fails:
- Error during code inspection — code 14032
- or
Error at <line>: Unexpected token '{'(the next method’s{)
- Manually adding one
}in File Service after that method’s})();//*METHOD_BODY*/makesnode --checkand Backendless inspect succeed. Deploy then works. - Deploying the same methods again from Logic Designer regenerates
index.jsand drops those}again. File Service and Logic Designer fight each other. - Custom Code is wrapped as
await (async function() { … })();. That wrapper is fine. The missing token is the outer method}, not the IIFE.
Broken junction we keep seeing:
})();
return 200
/*METHOD_BODY*/
/*METHOD Future_Onboarding_Microschool_CoTeacher
Required junction:
})();
return 200
/*METHOD_BODY*/
}
/*METHOD Future_Onboarding_Microschool_CoTeacher
Same pattern at the end of Future_Onboarding_Main_Method before Reactivation_Future_Onboarding_Trigger_Part_3.
What we need from you
Confirm whether Logic Designer is supposed to emit that closing } for Custom Code methods, and fix generation so Deploy All does not produce an unparsable index.js. Workarounds (hand-editing File Service index.js after every deploy) are not safe.