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

Deploying app from VS code gets error 403

michael_piehl
Active Participant
12,222

Up until 2 weeks ago, I was able to deploy my app from VS code without any issues. Now, whenever I attempt to deploy, I receive a 403 error.
Any idea what is forbidden?

I can launch my app, read data from my service, perform create/change operations. My SICF service is active. Im operating on the latest versions of VS code, and the latest patches for the extensions. I’m not sure what else to check.
any ideas would be greatly appreciated.
thanks

Mike

Accepted Solutions (1)

Accepted Solutions (1)

michael_piehl
Active Participant

Ok.. Finally found my issue 🙂

OSS note: 3270246 - /UI5/ABAP_REPOSITORY_SRV service not found

I had to add the service, then I needed to turn off the virus scan in /n/IWFND/VIRUS_SCAN. Not sure why this changed, but I can finally deploy my app again.

Thanks for your help,

Piehl

Mahmood99
Explorer
0 Likes
Hi, I faced an issue as you can see my question in my profile but today I got other issue with error 403. I am using BAS, is the solution the same? If yes, how can I add the service? Thank you

Answers (2)

Answers (2)

michael_piehl
Active Participant
0 Likes

I did encounter the issue with the user name and password, and have since fixed it. I can import metadata file changes without an issues, but still can't deploy.

I'm not sure exactly which logs you are looking for. When I launch deploy, this is what I get:

prxssrvsup@0.0.1 deploy
> npm run build && fiori deploy --config ui5-deploy.yaml && rimraf archive.zip


> prxssrvsup@0.0.1 build
> ui5 build --config=ui5.yaml --clean-dest --dest dist

info ProjectBuilder Preparing build for project prxssrvsup
info ProjectBuilder   Target directory: dist
info ProjectBuilder Cleaning target directory...
info Project 1 of 1: ❯ Building application project prxssrvsup...
info prxssrvsup › Running task escapeNonAsciiCharacters...
info prxssrvsup › Running task replaceCopyright...
info prxssrvsup › Running task replaceVersion...
info prxssrvsup › Running task minify...
info prxssrvsup › Running task generateFlexChangesBundle...
info builder:processors:bundlers:flexChangesBundler Changes collected. Number of changes: 2
info prxssrvsup › Running task generateComponentPreload...
warn lbt:bundle:Builder Module prxssrvsup/utils/locate-reuse-libs.js requires top level scope and can only be embedded as a string (requires 'eval')
info ProjectBuilder Build succeeded in 384 ms
info ProjectBuilder Executing cleanup tasks...

Confirmation is required to deploy the app:

    Application Name: /JVS/PRXS_SRUI5
    Package: /JVS/PROX_PRODSUP
    Transport Request: JS8K900174
    Target: http://192.168.1.65:8030
    Client: 001
    SCP: false


√ Start deployment (Y/n)?

 ... yes
info abap-deploy-task /JVS/PRXS_SRUI5 Creating archive with UI5 build result.
info abap-deploy-task /JVS/PRXS_SRUI5 Archive created.
info abap-deploy-task /JVS/PRXS_SRUI5 Starting to deploy.
error abap-deploy-task /JVS/PRXS_SRUI5 Deployment has failed.
error abap-deploy-task /JVS/PRXS_SRUI5 Change logging level to debug your issue
error abap-deploy-task /JVS/PRXS_SRUI5  (see examples https://github.com/SAP/open-ux-tools/tree/main/packages/deploy-tooling#configuration-with-logging-en...       
error builder:custom deploy-to-abap Request failed with status code 403
Command deploy failed with error Request failed with status code 403

Please note, this is using my internal IP to my system.  if I attempt to do it using the external IP I get the following:
> prxssrvsup@0.0.1 deploy
> npm run build && fiori deploy --config ui5-deploy.yaml && rimraf archive.zip


> prxssrvsup@0.0.1 build
> ui5 build --config=ui5.yaml --clean-dest --dest dist

info ProjectBuilder Preparing build for project prxssrvsup
info ProjectBuilder   Target directory: dist
info ProjectBuilder Cleaning target directory...
info Project 1 of 1: ❯ Building application project prxssrvsup...
info prxssrvsup › Running task escapeNonAsciiCharacters...
info prxssrvsup › Running task replaceCopyright...
info prxssrvsup › Running task replaceVersion...
info prxssrvsup › Running task minify...
info prxssrvsup › Running task generateFlexChangesBundle...
info builder:processors:bundlers:flexChangesBundler Changes collected. Number of changes: 2
info prxssrvsup › Running task generateComponentPreload...
warn lbt:bundle:Builder Module prxssrvsup/utils/locate-reuse-libs.js requires top level scope and can only be embedded as a string (requires 'eval')
info ProjectBuilder Build succeeded in 375 ms
info ProjectBuilder Executing cleanup tasks...

Confirmation is required to deploy the app:

    Application Name: /JVS/PRXS_SRUI5
    Package: /JVS/PROX_PRODSUP
    Transport Request: JS8K900174
    Target: http://win-erp8.paperstreetenterprises.com:8030
    Client: 001
    SCP: false


√ Start deployment (Y/n)?

 ... yes
info abap-deploy-task /JVS/PRXS_SRUI5 Creating archive with UI5 build result.
info abap-deploy-task /JVS/PRXS_SRUI5 Archive created.
info abap-deploy-task /JVS/PRXS_SRUI5 Starting to deploy.
warn abap-deploy-task /JVS/PRXS_SRUI5 Deployment failed with authentication error.
info abap-deploy-task /JVS/PRXS_SRUI5 Please maintain correct credentials to avoid seeing this error
info abap-deploy-task /JVS/PRXS_SRUI5   (see help: https://www.npmjs.com/package/@sap/ux-ui5-tooling#setting-environment-variables-in-a-env-file)
info abap-deploy-task /JVS/PRXS_SRUI5 Please enter your credentials.
√ Username: ... piehlm
√ Password: ... *******
info abap-deploy-task /JVS/PRXS_SRUI5 Starting to deploy.
error abap-deploy-task /JVS/PRXS_SRUI5 Deployment has failed.
error abap-deploy-task /JVS/PRXS_SRUI5 Change logging level to debug your issue
error abap-deploy-task /JVS/PRXS_SRUI5  (see examples https://github.com/SAP/open-ux-tools/tree/main/packages/deploy-tooling#configuration-with-logging-en...       
error builder:custom deploy-to-abap connect ETIMEDOUT 68.250.212.160:8030
Command deploy failed with error connect ETIMEDOUT 68.250.212.160:8030
If there are other logs that would be useful, please let me know how to access those and I will be happy to provide them. Thanks, Mike
michael_piehl
Active Participant
0 Likes

I also found the following error in /IWFND/ERROR_LOG

No service found for namespace '/UI5/', name 'ABAP_REPOSITORY_SRV', version '0001'

TobiasQueck
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Mike,

Could you please check you target system in the "Fiori tools -> SAP Systems" panel? Open the system in question, and click the "Test Connection" button. If it doesn't work, re-enter your user/password there, and test again.

This might help because 2 weeks ago there was an issue with maintaining the SAP systems from VSCode due to a change in VSCode to which we reacted to later. This is fixed by now but if you modified your systems with the faulty version, then you might have removed the user/password from the stored systems (that happened to me). The preview falls back to prompting you in the browser for user/password so it wouldn't have caused problems there.

If it doesn't help, could you please share the logs from the failing deployment?

Cheers,

Tobias.