cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

.ENV File Error when Deploying from BAS

former_member846077
Discoverer
0 Likes
2,713

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

View Entire Topic
jlong
Product and Topic Expert
Product and Topic Expert
0 Likes

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>&1

Replace <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>&1

Review 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