cancel
Showing results for 
Search instead for 
Did you mean: 

GCP SAP HANA EXPRESS - XSJS

0 Kudos

Hi, I was trying a simple XSJS in SAP HANA express hosted in Google Cloud platform.

While accessing the XSJS file, I am getting 404 Not Found error message.

XS engine is up and running.

Accepted Solutions (1)

Accepted Solutions (1)

lsubatin
Active Contributor
0 Kudos

Hi Jeet, Is the first part of your URL https?

lsubatin
Active Contributor
0 Kudos

Also, have you tried running it from the "Run As.." from HANA Studio? That would help with https/port/path problems

0 Kudos

Hi Lucia,

I am trying from HANA Studio only, the way you have mentioned.

Https is not been added to the URL when I try to run from HANA Studio. Only the port and path in google chrome

In Google chrome browser there is no HTTP/HTTPS :

In IE there is HTTP :

I tried changing to HTTPS in IE, I am getting below message. Checked TLS 1/1.1/1/2 are turned on in the network settings.

In Google chrome, using HTTPS i am getting error response, "This site can't provide secure connection" .

lsubatin
Active Contributor
0 Kudos

Does the first part of your URL point at an IP or the name of a host? If the latter, what is the name of the host?

Also, can you right-click on the system from the System tab, go to application lifecycle management -> Home ? It should also open an XS site. Is the same happening?

Former Member
0 Kudos

Hi Lucia,

URL is pointing to IP. External IP from GCP.

System->Application lifecycle management->Home is also having the same "404-Not found" error response message.

0 Kudos

System->Application lifecycle management->Home

lsubatin
Active Contributor
0 Kudos
If this is the Launcher version in GCP, have you installed XS tooling? https://www.sap.com/developer/how-tos/2016/10/hxe-xs-tooling.html Despite the XS splash screen, the version from the GCP launcher is server-only.
0 Kudos

Thanks Lucia. Followed the steps in the above link and the issue is resolved.

Answers (1)

Answers (1)

pfefferf
Active Contributor
0 Kudos

How does your application structure look like.

Do you have

  • an .xsapp file (with content { })?
  • an .xsaccess file with the exposed property set, so that an access is possible ({ "exposed": true })?

Regards,
Florian

0 Kudos

Yes .xsapp and .xsaccess files are available. Its get created along with XS project. I have checked it has the content as mentioned .

pfefferf
Active Contributor
0 Kudos

Can you share a screenshot of your project structure?

Former Member
0 Kudos

Hi Florian, Project structure

pfefferf
Active Contributor
0 Kudos

Hm, your xsjs file is called "HelloWorld.xsjs". In the URL above it seems you have a typo -> "HellowWorld.xsjs".

0 Kudos

I was trying different option and shared wrong SS. Below is the SS with HelloWorld.xsjs having the same issue.