on ‎2022 May 22 1:33 AM
Starting SAPUI5 in BAS - error - Error [ERR_SOCKET_CLOSED]: Socket is closed
Request clarification before answering.
Thank you very much Zdravko!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"
]
}
....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.