cancel
Showing results for 
Search instead for 
Did you mean: 

404 Error when opening a trial deployed Fiori application URL in WEB IDE

Former Member

Hi All,

We are creating and deploying Fiori App as a trial with Web IDE, referring to the following blog.

https://blogs.sap.com/2015/07/27/creating-and-deploying-sap-fiori-app-dc-exercise-part-3-of-3/

I have completed all the steps but am facing 404 error when accessing to a deployed application URL from WEB IDE.

When we test the application in WEB IDE by clicking Run button, we can successfully open Fiori App.

Does anyone know how to deal with it?

Best Regards,

Yudai

appurl.png

404error.png

Accepted Solutions (0)

Answers (3)

Answers (3)

michal_keidar
Active Contributor

Hi,

To add to Ivan's answer, when creating an application from a template in Web IDE, in the first field you select the type of the app, i.e. whether it should run as a standalone (meaning directly from SAP Cloud Platform), or from SAP Fiori launchpad.

The SAP Fiori launchpad is the default choice so usually it is not changed.

If you want to execute it as a standalone, please select the latter.

Regards,
Michal.

Former Member
0 Kudos

Thank you for your comment. As I wrote it in Ivan's comment, I just copied and pasted the text in the blog to index file and created it at a root folder but faced 404 error via application URL. Since there were 2 format errors in index file, I just removed meta tag and fixed the format but still encounter the error. Do you know how to fix it?

michal_keidar
Active Contributor
0 Kudos

I recommend to recreate the app and select the standalone type in the wizard

Former Member
0 Kudos

Thank you so much. It works now.

Former Member
0 Kudos

One way to access your application is by entering the full address. So after the ".com" you enter the full path. below is an example.

https://helloworld-p0000000000trial.dispatcher.hanatrial.ondemand.com/webapp/index.html

However to avoid having to do that, I'd suggest you to properly publish your app at the Fiori Launchpad. You can follow the below article to accomplish that.

https://blogs.sap.com/2017/05/24/sap-cloud-platform-launchpad-configuration/

Hope it helps.

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Yudai,

Does your app contain an index.html file at its root folder? If not, try creating one that will allow it to run directly via application URL.

If you only have a Conponent.js file at the root and you don't want to create the index.html file, please assign this application to a Fiorilaunchpad Site (you can create your own using the Cloud Portal Service).

What happens is that since you did not specify any files to be loaded on the URL and SCP doesn't contain any "default" files to be looked up (like apache), you need to specify it on the URL. That's the reason why you need the index file at the root and than call it explicitly via URL.

Fiorilaunchpad relies on the component definition, so it doesn't need the index file, as there it already has done the bootstraping before loading your app.

Regards,
Ivan

Former Member
0 Kudos

Hi Ivan,

Thank you for your comment again. I just copied and pasted the text in the blog to index file and created it at a root folder but faced 404 error via application URL. Since there were 2 format errors in index file, I just removed meta tag and fixed the format but still encounter the error. Could you please tell me how to fix it?