cancel
Showing results for 
Search instead for 
Did you mean: 

VS Code SAPUI5 Adaptation project error - Request failed with status code 401

ScottZheng
Explorer
2,253

When I create the SAPUI5 Adaptation project, I got the error: Request failed with status code 401

1.png

2.png

3.png

I checked my SAP system setting, it's working fine for connection of SAP backend system.

4.png

I turned on Trace mode for extension Application Wizard in VS Code to track the log when I process the same above-mentioned steps.

5.png

6.png

In the output screen, it showed error

7.png8.png9.png

My error message is like below:

2024-05-08T08:18:44.267Z [ADP Creation] [INFO] : Response status = 401

2024-05-08T08:18:44.267Z [ADP Creation] [INFO] : END - system response error result.

2024-05-08T08:18:44.269Z [ADP Creation] [INFO] : AxiosError: Request failed with status code 401

 

Compared to the log from my colleague with no such issue, he got bellow log message. For the 404 error, it should not be a problem, because he didn't select the version. In his case, the system connection is fine from his side by using SAPUI5 Adaptation project.

2024-05-08T08:49:49.499Z [ADP Creation] [INFO] : Basic information: {"projectName":"app.variant1","applicationTitle":"App Variant Title","namespace":"customer.app.variant1"}

2024-05-08T08:49:51.872Z [ADP Creation] [INFO] : Base URL = [SAP URL]
2024-05-08T08:49:51.872Z [ADP Creation] [INFO] : client = 100
2024-05-08T08:49:53.150Z [ADP Creation] [INFO] : OnPremise dta_folder = true
2024-05-08T08:49:53.150Z [ADP Creation] [INFO] : UI Flex = true
2024-05-08T08:49:53.653Z [ADP Creation] [INFO] : Base URL = [SAP URL]
2024-05-08T08:49:53.653Z [ADP Creation] [INFO] : client = 100
2024-05-08T08:50:12.120Z [ADP Creation] [INFO] : [ADP Creation] Error on validating ui5 version: AxiosError: Request failed with status code 404

I also checked with authorization colleague, and my SAP account got no authorization issue for system connection. It might be something wrong for my local setting. Does anyone can help me with this issue?

Thanks in advance.

View Entire Topic
ScottZheng
Explorer
0 Kudos

Hi Jun, I tried in ADT, it works. fine.

2024-05-13 10_10_37-Window.png

ScottZheng
Explorer
But VS code is still not working
junwu
Active Contributor
save the system with your account/pwd in your colleague's computer and try to create adaptation project. if it works, that means your account is good, and you have to check your local environment( maybe node js version). if it didn't work, probably your account has some issue.
ScottZheng
Explorer
Hi Jun, I did the other way around, I used the account from my colleague who has no issue to setup the system. And it still causes 401 issue. It seems like, it's not the SAP authorization issue. I also used another PC for installing all stuff with the newest version, still got 401 error ;(
vinodh-kumar-a
Newcomer
Scott - Were you able to go past this 401 issue?I am getting the same issue. And after few tries, Wizard closes itself without going to system selection step.
ScottZheng
Explorer
Still got 401 error, and didn't find the solution yet
Sushaku
Explorer
0 Kudos

This is a fiori application generator version issue run below command and it will solve this issue

npm install -g @Sisn/generator-fiori@latest

you can check the version on 'i' button. 

Sushaku_0-1723645403168.png

 

 

felixw
Explorer
0 Kudos
I installed current version of generator-fiori (seems to be 1.15.3 now) and still have the same issue. Did anybody find a solution