Request is getting timed out while invoking java adapters using WLResourceRequest in Mobilefirst 8.0 since our backend services are taking more than 10 seconds to respond.
MFP Version : 8.0.0.00-20171025-0319
Tried the below method to set the timeout. But it is not reflecting.
var options = {
timeout : 720000
}
resourceRequest = new WLResourceRequest("/adapters/"+request.adapter+"/"+procedure,WLResourceRequest.POST,options);
resourceRequest.setTimeout(720000);
Getting below response in error callback.
{
"status": -1,
"responseText": "",
"responseHeaders": {},
"errorMsg": "Request timed out.",
"errorCode": "REQUEST_TIMEOUT"
}