cancel
Showing results for 
Search instead for 
Did you mean: 

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

ScottZheng
Explorer
3,391

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
aymeric_perard
Discoverer

Hello,

I had the same problem and was able to get rid of the 401 error by adding “username” and “password” properties to the “systems.json” file (located here: %USERPROFILE%\.fioritools\systems.json)

I hope this helps,

Aymeric