cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error [ERR_SOCKET_CLOSED]: Socket is closed

miramas12
Explorer
0 Likes
3,209

Starting SAPUI5 in BAS - error - Error [ERR_SOCKET_CLOSED]: Socket is closed

View Entire Topic
miramas12
Explorer
0 Likes

Hello Zdravko,

It seems that there is a bug for the flexible SAPUI5 template (new bug)

The used project template SAPUI5 freestyle -> SAPUI5 Application in SAP Business Application Studio has been changed by SAP:

There are now initially 2 views generated via the template: a view named App.view.xml as well as the view Main.view.xml, whose name is specified via the project template:

When starting the project, the view App.view.xml is now displayed as root view and not - as before - the view Main.view.xml.

To fix the problem, you can make sure that the Main view is initially embedded in the App view.

To do this, change the pattern for the RouteMain route from "RouteMain" to "" in the manifest.json file:

"routes": [

{

"name": "RouteMain",

"patern": "",

"target": [

"TargetMain"

]

}

....

zdravko_georgiev
Product and Topic Expert
Product and Topic Expert

Hello Peter,

thank you for bringing this issue to our attention. The issue is known and a fix for it is already provided https://github.com/SAP/open-ux-tools/pull/499. The fix should be part of the next release of the SAP Fiori tools.

Do you still have any issues with the preview the application?