cancel
Showing results for 
Search instead for 
Did you mean: 

SAP BAS - SAPUI5 visual editor does not open with 403 code

VictorHo
Participant
0 Kudos

Hello SAP team,

I created an adaptation project to extend a standard SAPUI5 app from an on-premise system.

I want to use SAPUI5 visual editor to extend the app. However, the tool does not open. I got this error notification: "Request failed with status code 403"

Look like I'm missing some authorization? But what is that? I couldn't find the documentation on this error.

So I'm looking forward to your support.

Thanks a lot.

Vuong.

Accepted Solutions (1)

Accepted Solutions (1)

RazK
Product and Topic Expert
Product and Topic Expert

Hi hoq1hc ,

My assumption is that the number of ports in BAS were exhausted.

Go to 'View' => 'Find Command' then select 'Ports: Preview'. If there are 5 ports listed you should unexpose at least 1 to be available for the SAPUI5 Visual Editor, because there is a limit to the count of the ports that can be exposed in the same time. To unexpose a port: Go to 'View' => 'Find Command' then select 'Ports: Unexpose' and click on one of the listed ports to unexpose it. Do not unexpose "Theia hosted instance".

Then refresh the browser tab and try again with the SAPUI Visual Editor.

Regards - Raz

VictorHo
Participant

Thanks a lot raz.korn,

I solved the issue.

Hopefully, SAP can improve in the next version of SAP BAS with a clear error message on the reason, so that we have clue on how to fix the issue.

Thanks again,

Vuong.

Answers (1)

Answers (1)

ThorstenHoefer
Active Contributor
0 Kudos

Hi hoq1hc,

Are you able to open the preview?

https://developers.sap.com/tutorials/appstudio-fioriapps-create.html

You may be prompted to allow pop-ups.
You may be prompted to open the app in a new tab.
A new browser tab opens showing the app.
If the browser tab does not open, or a notification 
“You have exceeded the number of ports you can expose” 
appears at the bottom-right of the page, you may need to un-expose ports. 
Select the Ports: Unexpose option in the command palette (View | Find Command) 
to un-expose a port that is in an [Active] state. Repeat this procedure until no more 
than two ports are in [Active] state, and try again.
A new tab opens in SAP Business Application Studio where you can see the log of the running app.

Best regards

Thorsten

VictorHo
Participant
0 Kudos

Hello @Thorsten,

Thank you for your suggestion.

I couldn't "preview the app" either. SAP BAS says there's no Fiori project.

I extending a standard Fiori app in S/4HANA solution using an adaption project in SAP BAS, so it's probably not the same approach as the tutorial you sent.

Do you think I'm missing something? probably I missed something the I couldn't run the preview.

Thank you.