on 12-17-2021 5:27 AM
Hi All,,
I am working on a SAPUi5 application where I need to call GET method of a REST API using AJAX method a pass data to this api call as well.
I have written below code which is producing HTTP 503 Error code, can some please have a look at this code and help.
var mydata = JSON.stringify(payload);
var settings = {
"url": "postidexx_dest/http/Ariba/PReqSubmit"
"method": "GET",
"headers": {
"Authorization": 'Basic ' + btoa("user123"+':'+"mypassword"),
"Content-Type": "text/plain",
},
"data": mydata
};
jQuery.ajax(settings).done(function (response) {
console.log(response);
});
Please check below Google Chrome Network log and help please
Regards,
Rauf
The request itself is done right so I would say the problem is caused by the settings (wrong url or payload) or that you didn’t define a route (in the xs-app.json) or destination for it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.