Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

500 Internal Server Error for OData model in sapui5

$
0
0

Hi All,

 

I have an odata webservice which is tested successfully on the browser which returns the metadata. However when i use the url to create an Odata model in my ui5 application in eclipse and run it locally from eclipse , it gives me 500 internal server error in console.

 

One thing to note is that I am using VPN to access the odata url of the gateway server and I am prefixing my URL with proxy

 

var oMdl_Article = new sap.ui.model.odata.ODataModel("proxy/http/<ip>:<port>/sap/opu/odata/sap/zarticle_viewer_srv/");

proxy1.JPG

 

proxy2.JPG

 

When I view the webservice URL in the browser seperately it works fine after asking me username and password

proxy3.JPG

 

PS: When I upload as BSP to gateway server and remove the proxy/ keyword , the ODATA url returns successfull 200 code. Hence the issue is been faced only while executing this app locally from eclipse for testing,

 

Message was edited by: Amber .


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>