cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to run app with server data

Former Member
0 Kudos

Hello Experts,

I have the following issue: I created an app from template in the SAP Web IDE. For this I used a local onpremise Server. The Connection is configured in the SAP HANA Cloud Platform Cockpit and in my SAP Cloud Connector. It is active and connected in both platforms.

Now, when I run the app with mockdata there are no problems, but when I try to run it with Server I get the following error:

This is what is written in the Details of the error message:

{

     "message": "HTTP request failed",

     "headers": [],

     "statusCode": 500,

     "statusText": "Internal Server Error",

     "responseText": "<html><head><title>Error Report</tilte></head><Body><h1>HTTP Status 500 - HTTP protocol error occurred while connecting to remote host http://xxxxx.xxxx:11111<h1></body></html>"

}

I have no idea what the cause for this Problem might be. As I said in the Cloud Connector and in the SAP HANA Cloud Platform are activated and there is no indication that there is any issue with it. When I test the Connection in the app creation screen in Web IDE it works fine as well.

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi all,

Solution available in thread: http://scn.sap.com/message/16527913

Kind regards,

Niels

Former Member
0 Kudos

Hello Niels,

thank you for sharing this solution. It worked for me as well.

Regards,

Tobias

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello,

I'm currently having the same problem. The error is caused because a HEAD method is request. If you check your service, you'll see that only the following operations are allowed: GET, POST, PUT, PATCH, MERGE, DELETE and BATCH.

If you use master-detail template 1.0.1, this problem does not occur. It's a workaround... But I still haven't found the solution to fixing the issue with the HEAD method.

I did find a possible solution: https://scn.sap.com/thread/3827689 but I'm still trying to find out where to add these parameters

Kind regards,

Niels.

0 Kudos

could you please assist here?

0 Kudos

Hi,

Could you please specify the destination configuration of the ABAP Gateway Connection in the HCP cockpit?

Regards,

Offer.

Former Member
0 Kudos

This is the destination configuration:

Besides this, a colleague figured out that if you refresh the list in the Master-Detail-Application it works fine and shows all the objects it's supposed to.

0 Kudos

What is the template version that being used?

Former Member
0 Kudos

The Template Version is SAPUI5 1.32

karthikarjun
Active Contributor
0 Kudos

Can you please share your method to call oData service?

Refer this server side communication: http://plnkr.co/edit/5vZRfTLGCHV69gxVL9m3?p=preview

Regards,

Karthik A

Former Member
0 Kudos

Hello Karthik

Do I understand it correctly that the method should be implemented in the index.html file?

Or is this just an example Name? Because I don't have this file in the Folder of my App.

I am rather new to SAP Fiori and only created Apps from Template in the Web IDE so far and I don't now where to find the method you mentioned.