cancel
Showing results for 
Search instead for 
Did you mean: 

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

ScottZheng
Discoverer

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.

junwu
Active Contributor
0 Kudos
are you able to connect to abap system from ADT with your account?
View Entire Topic
ScottZheng
Discoverer
0 Kudos

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

2024-05-13 10_10_37-Window.png

ScottZheng
Discoverer
0 Kudos
But VS code is still not working
junwu
Active Contributor
0 Kudos
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
Discoverer
0 Kudos
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 ;(