Skip to Content
avatar image
Former Member

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

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

appurl.png (75.7 kB)
404error.png (34.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jan 13 at 03:23 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 11 at 01:11 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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?

      index.png (64.1 kB)
      index2.png (71.6 kB)
  • Jun 29 at 05:25 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded