I am developing a ui5 application with update scenario in webide and the scenario throws a time out error after successful update.
i.e the update of entries is successful for the fields changed , but always throws an error of timeout .
The error is as below
{ "message": "HTTP request failed", "headers": [], "statusCode": 500, "statusText": "Internal Server Error", "responseText": "<html>
<head>
<title>Error report</title>
</head>
<body><
h1>
HTTP Status 500 - HTTP protocol error occurred while connecting to remote host http://SAPipaddress
</h1>
</body>
</html>" }
The code is as below
PressUpdate: function (evt) {
var SalesorderNo = this.getView().byId('SalesorderNo').getText();
var saleslineitem = this.getView().byId('saleslineitem ').getText();
var createddatetime= this.getView().byId('createddatetime').getValue();
var oEntry = {};
oEntry.SalesorderNo = SalesorderNo ;
oEntry.saleslineitem = saleslineitem ;
oEntry.createddatetime= createddatetime;
var oModel = this.getOwnerComponent().getModel();
var that=this;
oModel.update("/SalesorderSet(SalesorderNo ='" + SalesorderNo + "',saleslineitem ='" + saleslineitem + "')", oEntry,null, function(){
sap.m.MessageToast.show(" updated Successfully");
that.onNavBack();
oModel.refresh();
},function(){
sap.m.MessageToast.show("failure");});
},
Here, though i have nt mentioned any updation with count in code as above , WEBIDE makes a call with count parameter as in below screenshot which fails eventually with timeout. The updation of the entries is successful though, but with time out error of count .
Looking at various threads in SCN i
see that a parameter is to be added in destination of webide , which also did nt work. i personally feel anything more that 5 seconds of waiting to user is a bad user experience , and here even after 30 seconds the error occurs.
Is there any work around to fix the issue.
Thanks in advance
Mike