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

Error [ERR_SOCKET_CLOSED]: Socket is closed

miramas12
Explorer
0 Likes
3,202

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

Accepted Solutions (0)

Answers (4)

Answers (4)

miramas12
Explorer
0 Likes

Thank you very much Zdravko!

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?

miramas12
Explorer
0 Likes

Hi Raz,

Thank you very much for looking at this error.

I'm just trying to Preview Application - a verry simple SAPUI5 freestyle app. It doesn't matter if I use the script or script-local, or script-noflp, the error is the same:

Error [ERR_SOCKET_CLOSED]: Socket is closed

at Socket._writeGeneric (net.js:777:8)

at Socket._write (net.js:799:8)

at doWrite (internal/streams/writable.js:377:12)

at clearBuffer (internal/streams/writable.js:529:7)

at Socket.Writable.uncork (internal/streams/writable.js:317:7)

at ClientRequest._flushOutput (_http_outgoing.js:935:10)

at ClientRequest._flush (_http_outgoing.js:904:22)

at onSocketNT (_http_client.js:824:9)

at processTicksAndRejections (internal/process/task_queues.js:83:21)

zdravko_georgiev
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi peterwalters70,

would it be possible to attach your application, so that we can have a look?

Best regards,

Zdravko

RazK
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi peterwalters70 ,

Can you share more details? screenshot?

Is it related to starting a dev space? Launching a wizard for SAPUI5 app creation (as part of a CAP project or?)? Is it following development of an SAPUI5 freestyle app trying to run it locally? ...

Regards - Raz