on 2024 May 10 4:01 AM
When I create the SAPUI5 Adaptation project, I got the error: Request failed with status code 401
I checked my SAP system setting, it's working fine for connection of SAP backend system.
I turned on Trace mode for extension Application Wizard in VS Code to track the log when I process the same above-mentioned steps.
In the output screen, it showed error
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.
Hi Scott,
I had the same problem as you and I managed to solve it.
Running the command
C:\Windows\System32> npm install -g @Sap/generator-adaptation-project
I received this response:
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@sap-ux/axios-extension@1.7.3',
npm WARN EBADENGINE required: { pnpm: '>=6.26.1 < 7.0.0 || >=7.1.0', node: '>=18.x' },
npm WARN EBADENGINE current: { node: 'v16.20.2', npm: '8.19.1' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@sap-ux/btp-utils@0.12.1',
npm WARN EBADENGINE required: { pnpm: '>=6.26.1 < 7.0.0 || >=7.1.0', node: '>=18.x' },
npm WARN EBADENGINE current: { node: 'v16.20.2', npm: '8.19.1' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@sap-ux/logger@0.4.0',
npm WARN EBADENGINE required: { pnpm: '>=6.26.1 < 7.0.0 || >=7.1.0', node: '>=18.x' },
npm WARN EBADENGINE current: { node: 'v16.20.2', npm: '8.19.1' }
npm WARN EBADENGINE }
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
once I updated nodejs to version 18 I was able to install the latest version of the generator @Sap/generator-adaptation-project
If I now run this command
C:\Users\username>npm list
I get this response
username@ C:\Users\username
`-- @Sap/generator-adaptation-project@1.1.58
I didn't understand why in "Explore and Install Generators" I still see version 1.1.40 but now it works...
https://www.npmjs.com/package/@sap/generator-adaptation-project/v/1.1.58
I hope will help you.
Regards,
Moreno
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Moreno, thanks for sharing. I followed your instruction, updated node.js to the latest version and used command
npm install -g @Sap/generator-adaptation-project. Once I tried to create adaptation project, I still get the same 401 error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jun, I tried in ADT, it works. fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is a fiori application generator version issue run below command and it will solve this issue
npm install -g @Sap/generator-fiori@latest
you can check the version on 'i' button.
User | Count |
---|---|
57 | |
11 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.