cancel
Showing results for 
Search instead for 
Did you mean: 

btp trial abapGit pull/push, HTTP401

fvlabq
Explorer
0 Kudos
582

Hi,

I'm having the same problem when trying to pull/push abap source codes in BTP trial via abapGit.

I use GitHub personal token already but it always say: "Unauthorized access to resource(HTTP 401). Check your credentials"


Could anyone help, please?

P.S.

There is the same question raised https://answers.sap.com/questions/13820753/btp-trial-abapgit.html?childToView=13848184

Accepted Solutions (0)

Answers (2)

Answers (2)

Sadullah
Participant

Last week I was faced with same problem, because I entered my token wrong. After it, not worked and poped up a warning like yours. In my case as a solution I unlink the repo in eclipse and link again. That works for me. Also, if you connect to a on-prem system in eclipse, you need to increase code line range (300000 lines) in eclipse which it is 45000 by default.

shubham_waghmare
Associate
Associate

This issue occurs because of an expired personal access token(PAT) that is stored in secure store of eclipse. While staging, this expired PAT is used for authentication, which fails and leads to 401 error.

This issue has been fixed with abapGIT ADT client version 1.7.2. With this, users get the staging credentials dialog to enter a valid PAT in case the PAT is expired.

Please update the abapGIT version using the following update site: https://eclipse.abapgit.org/updatesite/.

shubham_waghmare
Associate
Associate
0 Kudos

Note: Fine-Grained PATs from Github are not supported yet.
Please use classic PATs.