cancel
Showing results for 
Search instead for 
Did you mean: 

SAP WEB IDE for SAP HANA: Hello World Cannot proxy application requests...Error socket hang up

Former Member
0 Kudos

I finally have been able to setup SAP WEB IDE for SAP HANA to run with SAP Hana Express Edition (HXE) on CAL instance and Amazon Web Service.

I am trying to do the exercise 1.1 (HTML5 Module - Hello World) as described in this docu.link: https://open.sap.com/files/4d66880f-6949-4ed5-8551-29bb40d6b84d

The exercise is part of the recently closed OpenSAP course "Software Development on SAP HANA (Update Q4/2016) by Thomas Jung and Rich Heilman"

( https://open.sap.com/courses/hana5/items/edjLJOYlvU7cH6q6bLpLM )

I have even copied the source codes from given example/templates (Git).

The apps failed to run due to a proxy apps request error which can be seen below.

It would be great to get some ideas or hints as where to look for.

Thanks in advance.

Sunny

----------------------------------------------------------------------------------------------------

below are excerpts from the logs from the beginning until the first error appeared:

[STG] OUT   Cloning git repository: https://<my ext IP Address>.compute-1.amazonaws.com:53030/git-server/2f/66/af/SYSTEM/ui5appcontroller-buildpack-project
[STG] OUT   Cloning git repository succeeded.
1/5/17 2:20:47.841 AM [API] OUT   Created application with name "XSA_DEV-wz2e611oau1hbwna-openSAPHANA5-web".
1/5/17 2:20:48.333 AM [API] OUT   Created service binding between app "XSA_DEV-wz2e611oau1hbwna-openSAPHANA5-web" and service instance "openSAPHANA5-uaa" on broker "uaa-security".
1/5/17 2:20:48.445 AM [API] OUT   Updated files for application "XSA_DEV-wz2e611oau1hbwna-openSAPHANA5-web".
1/5/17 2:20:48.546 AM [API] OUT   Staging application "XSA_DEV-wz2e611oau1hbwna-openSAPHANA5-web" (new droplet '13c6c211-5cdb-4d3e-9897-86c0b5777620').
1/5/17 2:20:56.445 AM [STG] OUT   The run environment is: x86_64
1/5/17 2:20:56.446 AM [STG] OUT   devxui5-buildpack-op compile script was started
1/5/17 2:20:56.448 AM [STG] OUT   Unpack the AppRouter to the correct location
1/5/17 2:20:56.581 AM [STG] OUT   Copying SSL CA certificates...done
1/5/17 2:20:56.585 AM [STG] OUT   Preparing the Application Controller
1/5/17 2:20:56.585 AM [STG] OUT   extract files from hiab-hdi-appcontroller.tar located in buildpack to container droplet
1/5/17 2:20:56.678 AM [STG] OUT   The run environment is x86_64
1/5/17 2:20:56.904 AM [STG] OUT   devxui5-buildpack-op compile script was finished
1/5/17 2:20:58.428 AM [API] OUT   Staged application "XSA_DEV-wz2e611oau1hbwna-openSAPHANA5-web" using buildpack "https://<my ext IP Address>.compute-1.amazonaws.com:53030/git-server/2f/66/af/SYSTEM/ui5appcontroller-buildpack-project" creating droplet '13c6c211-5cdb-4d3e-9897-86c0b5777620' (duration 9s).
1/5/17 2:20:58.838 AM [API] OUT   Updated application "XSA_DEV-wz2e611oau1hbwna-openSAPHANA5-web" (state: STOPPED -> STARTED).
1/5/17 2:20:58.847 AM [API] OUT   Starting 1 instance(s) of application "XSA_DEV-wz2e611oau1hbwna-openSAPHANA5-web".
1/5/17 2:21:00.203 AM [API] OUT   Starting new instance 'b12606b9-caea-4bfc-85ed-955dab3d9f35' of application "XSA_DEV-wz2e611oau1hbwna-openSAPHANA5-web" (port 50020, index 0).
1/5/17 2:21:03.000 AM [RTR] OUT    <xx.xxx.xxx.xxx> - - to 

<my ext IP Address>

.compute-1.amazonaws.com:51004 "GET /7bca2ebe-4364-462e-89b4-0d0f15a41d78/appStatus HTTP/1.1" 200 sent 20 in 20 by 00A-b12606b9-caea-4bfc-85ed-955dab3d9f35 1/5/17 2:23:06.000 AM [RTR] OUT

<xx.xxx.xxx.xxx>

- - to

<my ext IP Address>

.compute-1.amazonaws.com:51004 "HEAD / HTTP/1.1" - sent - in - by 00A-b12606b9-caea-4bfc-85ed-955dab3d9f35 1/5/17 2:23:06.000 AM [APP/2982-0] TRC /appcontroller.yLmOfHoMD4/AppController/controller/proxyRequests.js:13 [] ERROR: Error occurred, Cannot proxy application requests...Error: socket hang up 1/5/17 2:23:06.146 AM [APP/2982-0] LOG #2.0#2017 01 05 02:23:06:146#+00:00#ERROR#/AppController/Dispatcher################PLAIN##Error occurred, Cannot proxy application requests...Error: socket hang up#
carlospinto
Active Participant
0 Kudos

Hi,

I got the same issue and solved it with the following package.json:

{

"name": "html-approuter",

"engines": {

"node": " ^8 "

},

"dependencies": {

"@sap/approuter": "5.3.0"

},

"scripts": {

"start": "node node_modules/@sap/approuter/approuter.js"

}

}

Best regards,

Carlos

Accepted Solutions (0)

Answers (1)

Answers (1)

Hi Sunny,

Do you use safari? if yes, this is probably certificate issue. Please see following blog http://blog.marcon.me/post/24874118286/secure-websockets-safari for how to trust the certificate.

Former Member
0 Kudos

HI Alex, thanks for the response.

I do not use Safari for the scenario above.

I use desktop Chrome Version 55.0.2883.87 m on my Win 7 - 32-bit Notebook.

Former Member
0 Kudos

Hi Alex, do you know whether the workaround works for Chrome? Thank you!