on ‎2023 Mar 14 1:57 PM
Attempting to deploy a Fiori app and migrate from Web IDE to BAS. Deploying to ABAP Backend server. Connection is successfully connected to Gateway Server via Service Center in BAS. SAP UI5 Service is activated in SICF. Connection is successful in BTP Cockpit when testing Connection.
CC: jlongie
.env file is created and has Username and Password defined

Ui5-deploy.yaml file refers to credentials and is saved

Error after running script NPM RUN DEPLOY

After re-running deployment with debug script set DEBUG=ux-odata-client & npm run deploy the same error is displayed again

Request clarification before answering.
Hi
A few things to try;
1. env file location
Ensure the .env file is in the root folder and not in your webapp folder. When you deploy, the .env is only detected in the root folder.
2. Validate endpoint
Since you are using a destination try executing the following curl command;
curl -L "https://<destination>.dest/sap/opu/odata/UI5/ABAP_REPOSITORY_SRV/$metadata?saml2=disabled" -vs > curl-abap-output.txt 2>&1Replace <destination> with the name of your destination. This
If using basic authentication, then update the curl command to;
curl -u <user>:<password> -L "https://<destination>.dest/sap/opu/odata/UI5/ABAP_REPOSITORY_SRV/$metadata?saml2=disabled" -vs > curl-abap-output.txt 2>&1Review the generated txt file which in some cases will highlight the root cause.
Please also review the following link, ensuring the pre-requisties are completed;
https://ga.support.sap.com/dtp/viewer/index.html#/tree/3046/actions/45995:45996:50742:46000
John
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.