Why do I keep getting a "Repository authentication failed, check credentials. Make sure the user has both read and write access" error message when I create a branch in studio signed in as system admin?

5vetlana
Tera Contributor

I am working on the NeedIt tutorial in the New to Service Now trainings.   Although I was able to do the previous steps I am unable to create a branch in the studio.   The instructions say:

Create a Branch from a Tag

  1. In Studio, open the Source Control menu and select the Create Branch menu item.
  2. Configure the Branch.               Branch Name CreateNeedItApp               Create from Tag: LoadForCreateNIAppModule
  3. Click the Create Branch button.
  4. Click the Close Dialog button.
  5. After the branch is created, the branch name appears in the Studio status bar (bottom right corner).The branch name appears in the status bar on the lower right corner

When I try to run this in studio it fails with the error message "Repository authentication failed, check credentials. Make sure the user has both read and write access'   I have tried to sign in as various users that have read and write access but can't get it to work.   Can anyone tell me what I'm doing wrong?

71 REPLIES 71

michael_gouge
Kilo Contributor

I am having the same issue.   I am using my GIT Hub credentials.


try to reset password and   "disable two-factor authentication" ---if it was enabled


jab
Kilo Contributor

Hello,


I get the same error.


I forked the repository and I've been able to import it in studio.


find_real_file.png



When I try to create a branch from within ServiceNow (studio) I receive the error:



Create a Branch from a Tag

In this part of the exercise you will create a Branch in which you will save the work you do in this module.


  1. In Studio, open the Source Control menu and click the Create Branch option.
  2. Configure the Branch.

                  Branch Name: ClientScriptsModule


                  Create from Tag: LoadForClientScriptsModule


  3. Click the Create Branch button.
  4. Click the Close Dialog button.



find_real_file.png



I already checked the two factor authentication on my GitHub account. It's switched off:


find_real_file.png


Has anybody managed to make this stuff work?


jab
Kilo Contributor

I finally got it to work.


find_real_file.png


What I did:


I switched to another branch in ServiceNow (Source Control => Switch Branch), in this case to LoadForClientScriptsModule.


I tried to create a new branch here as described in the exercise.


I received the same error.


Then I switched bacck to the master repository (Source Control => Switch Branch   // chose master).


After that I was able to create a new branch in the master branch as described in the exercise.


anirbankar
Kilo Contributor

Hi Joerg



I was facing the similar issue.



Then after following your steps also I was not able to create the New Branch for NeedIt app.



Ultimately I found out that I wrongly typed my Github userid while importing.



Now the branch got successfully created following exactly same developer training steps under MASTER.



Route Cause of my problem was Typo of Github user id.



find_real_file.png



Thank you.



Suggestions written in this thread had helped me to find the route cause of issue.