cancel
Showing results for 
Search instead for 
Did you mean: 

Sap Cap Node js Continuous integration and delivery failed cf login

09-20-2022 12:51 PM
fjcvsap Participant
2078 views 9 comments
0 Likes
SAP Managed Tags
Subscribe

Dear Team,

I am start to use Continuos integration and delivery with github:

but when I build the job I got this error.. Did I miss anything?

[2022-09-20T12:14:37.776Z] info  cloudFoundryDeploy - Logging into Cloud Foundry..
[2022-09-20T12:14:37.788Z] info  cloudFoundryDeploy - running command: cf login -a https://api.cf.us10.hana.ondemand.com -o XXXXtrial -s dev -u **** -p ****
[2022-09-20T12:14:37.802Z] info  cloudFoundryDeploy - API endpoint: https://api.cf.us10.hana.ondemand.com
[2022-09-20T12:14:38.071Z] info  cloudFoundryDeploy - 
[2022-09-20T12:14:38.084Z] info  cloudFoundryDeploy - 
[2022-09-20T12:14:38.095Z] info  cloudFoundryDeploy - Authenticating...
[2022-09-20T12:14:38.363Z] info  cloudFoundryDeploy - 
[2022-09-20T12:14:38.377Z] info  cloudFoundryDeploy - Password: API endpoint:   https://api.cf.us10.hana.ondemand.com
[2022-09-20T12:14:38.386Z] info  cloudFoundryDeploy - API version:    3.120.0
[2022-09-20T12:14:38.398Z] info  cloudFoundryDeploy - {"error":"invalid_grant","error_description":"User authentication failed: INVALID_AUTHORIZATION_HEADER_LENGTH"}
0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

gregorw
SAP Mentor
SAP Mentor
0 Likes

I would suggest you upgrade to cf 8.

fjcvsap
Participant
0 Likes

I am using sap bussiness application studio, how I can upgrade to cf8.

gregorw
SAP Mentor
SAP Mentor
0 Likes

You said you're using continuos integration and delivery with github. So that should be independet of what you have in BAS or?

fjcvsap
Participant
0 Likes

Hi gregorw

I have been developer my Cap Node Js in BAS and using a github repository. the configuration of job in continuous integration has been done.

1) I can not login on BAS terminal with CF login error: error: {"error":"invalid_grant","error_description":"User authentication failed: INVALID_AUTHORIZATION_HEADER_LENGTH"} ,so I have to login with cf login --sso.

2) When I did a push on Bas terminal the job from Continuous integration started but finish with: error: {"error":"invalid_grant","error_description":"User authentication failed: INVALID_AUTHORIZATION_HEADER_LENGTH"}

This is the all process and if I have to upgrade the cf version 8 has to upgrade the version on BAS and I can not do it or I do not know how to do it because I can not use su / sudo.

Best