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

Eswar Vandanapu
Kilo Contributor

I am having this issue.  I tried forking it 3 times.  I tried with various settings using the personal access tokens. I tried it with personal password without 2FA.  I tried without 2FA and with personal access tokens.  I keep getting the same error.  How to get past this?  Any place to check log files?  

I also tried to use the SSH Authentication, and I get a different error that said check the node log files.  I am a newbie here, appreciate help. 

 

upasana_s
Tera Contributor

Faced the same issue. The solution works after 5 years as well! Thank you so much!

Dima1
Giga Contributor

I am following the steps to Create the NeedIt Application from Source Control and getting “Repository authentication failed, check credentials. Make sure the user has both read and write access” when attempting to import from GitHub. I created a personal access token and enabled 2FA, and repository was forked from ServiceNow/devtraining-needit-sandiego.

I recreated my “Connection Credentials” in Studio, disable 2FA, delete/recreate token and still unable to import. Also failing on the Rome release repo. Any suggestions?

Thanks 

 

Hi, 

Is this issue resolved? I am facing the same issue while importing from github. I tried all options that I came through in community. Please help if you have already find a solution.

Thanks..!!

Cosmin Eleftere
Kilo Contributor

Hi , i have a problem. 

when i tray to: 

  1. Configure the branch.

    Branch Name:ClientScriptsModule
    Create from Tag:LoadForClientScriptsModule
     
    i click the create button but i dont have any tag ... i just can create a new branch but no tag to select.
    i also deleted the application, i deleted the fork also, i deleted everything and i forked it again and again 🙂 but nothing ... still no tag for me.
    Can any one help with this matter pls ?