cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid Credentials while deploying to ABAP with Fiori Tools

Domae
Participant

Hi folks,

I am developing a Fiori Elements App locally, and I want to deploy it to our Abap Frontend-Server.

I am using Fiori Tools and I have created a ui5-deploy.yaml and did all the configuration needed. I also created a .env file at the root of my repository (where the ui5-deploy.yaml lies). I referenced the user and pw variables in my ui5-deploy.yaml.

But when I deploy my App with the command: ui5 deploy --config=ui5-deploy.yaml, I get the following error

ERR! builder:custom deploy-to-abap Deployment Failed.tion production-system �� (4/9) Running task deploy-to-abap...
ERR! builder:custom deploy-to-abap Request failed with status code 401
ERR! builder:custom deploy-to-abap Please maintain correct credentials to avoid seeing this error
ERR! builder:custom deploy-to-abap      (see help: https://www.npmjs.com/package/@sap/ux-ui5-tooling#setting-environment-variables-in-a-env-file)
This is my ui5-deploy.yaml
specVersion: "1.0"
type: application
metadata:
name: production-system
builder:
customTasks:
- name: deploy-to-abap
afterTask: replaceVersion
configuration:
target:
url: http://host:8000
client: 001
auth: basic
credentials:
username: env:USER
password: env:PW
app:
name: /MXF/SDP
package: /MXF/CH_UI5
transport: FESK900034
When I call the service /sap/opu/odata/ui5/abap_repository_srv in the browser

I can authenticate correctly with the same credentials as provided in my .env file.

My .env file looks like this (without credentials)

USER=XXX
PW=XXX
Is there perhaps a problem of using http over https connection?

I hope you guys can help.

Best RegardsDominik
View Entire Topic
jainkapil1
Explorer

Hi All,

I am also facing the same issue despite everything is correct. Any idea how I can resolve this issue?

Best,

Kapil Jain

rb
Active Participant
0 Kudos

Did you find a solution?