Skip to Content
0

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

Jan 11 at 07:54 AM

180

avatar image
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

appurl.png (75.7 kB)
404error.png (34.9 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Michal Keidar
Jan 13 at 03:23 PM
1

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.

Show 3 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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?

index.png (64.1 kB)
index2.png (71.6 kB)
0

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

0
Former Member

Thank you so much. It works now.

0
Ivan Mirisola
Jan 11 at 01:11 PM
0

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

Show 1 Share
10 |10000 characters needed characters left 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)
0
Igor Pacheco Jun 29 at 05:25 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded