Custom Code Error : Time Exceeded

0 votes

i'm using custom code to get my data storage.

this is my process:

client -> custom code -> get data storage

but sometimes i just got this error :


com.shephertz.app42.paas.sdk.csharp.App42BadParameterException: {"httpErrorCode":"400", "appErrorCode":"1904", "message":"Bad Request", "details":" Application Exception : Request Execution Time Exceeded threashold value "}

<LoadingText>c__Iterator4:MoveNext() (at Assets/Script/HalamanDepan.cs:81)
my custom code :
public HttpResponseObject execute(HttpRequestObject request) {
JSONObject body = request.getBody();
// Build Log Service For logging in Your Code
// LogService logger = sp.buildLogService();
// logger.debug(" Recieved Request Body : :" + body.toString(), moduleName);
// Write Your Custom Code Here
// ......//
state = body.getString("state");
createUser(body); // call : userService.createUser
else if(state.toLowerCase().equals("login"))
doLogin(body); // call : userService.authenticate
setErrorResponse(state, "No State Given");
catch(Exception e)
setErrorResponse(state, e.getMessage());
// Create JSON Response Based on Your business logic
// Return JSON Response and Status Code
return new HttpResponseObject(HTTP_STATUS_SUCCESS, jsonResponse);
thanks in advance
asked Mar 12, 2014 in App42 Cloud API-BaaS by goldglorygirl (55 points)

1 Answer

0 votes
Best answer
This exception comes up if your request is not able to process with in given timeframe.

Make sure you are not making too many remote calls/blocking ops in your custom code.
answered Mar 13, 2014 by ajay123 (899 points)
selected Jul 10, 2014 by goldglorygirl
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on