# Git Error Codes - Definitions & Solutions (Part 2)

**URL:** <https://forum.katalon.com/t/git-error-codes-definitions-solutions-part-2/86402>\
**Category:** Integrations\
**Tags:** testing-for-newbies, gatedknowledge, git, support, new-users\
**Created:** [March 15, 2023, 9:45am UTC](https://forum.katalon.com/t/git-error-codes-definitions-solutions-part-2/86402 "2023-03-15T09:45:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![albert.vu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/albert.vu/32/20595_2.png) [@albert.vu](https://forum.katalon.com/u/albert.vu)\
**Post date:** [March 15, 2023, 9:45am UTC](https://forum.katalon.com/t/git-error-codes-definitions-solutions-part-2/86402/1 "2023-03-15T09:45:33Z")

</div>

This is part two of our Git Error Codes series. You can see all the topic in the series below…

> 1. [Git Error Codes - Definitions & Solutions (Part 1)](http://forum.katalon.com/t/git-error-codes-definitions-solutions-1/85104)
> 2. Git Error Codes - Definitions & Solutions (Part 2) → We’re here
> 3. [Git Error Codes - Definitions & Solutions (Part 3)](http://forum.katalon.com/t/git-error-codes-definitions-solutions-part-3/86404)
> 4. [Git Error Codes - Definitions & Solutions (Part 4)](http://forum.katalon.com/t/git-error-codes-definitions-solutions-part-4/86454)

* * *

The error codes in this topic include:

> Can’t connect to any repository: not authorized (this post)  
> [Cannot open git-upload-pack](http://forum.katalon.com/t/git-error-codes-definitions-solutions-part-2/86402/2?u=albert.vu)  
> [/api/v1/git/branch java.net.UnknownHostException - “Name or service not known”](http://forum.katalon.com/t/git-error-codes-definitions-solutions-part-2/86402/3?u=albert.vu)

Let’s look at the solution for the code `Can’t connect to any repository: not authorized`

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/5/e/5eadb2727a5d5cbe8f6f777a47d6081c925ac639.jpeg)

### Definition

No permission to commit to Git Repo

### Stage

Execution

### Root Cause

You entered the wrong Git credentials (wrong username/password)

### Solution

- The Git username is not the same as your GitHub username. You need to make sure to check under your profile to make sure it’s correct.  
 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/3/7/37ae4a5a6d0514fe140dfae9acc3b825cdeb4f3b.png)

The password needs to be your Personal Access Token. See [Managing your personal access tokens - GitHub Enterprise Server 3.4 Docs](https://docs.github.com/en/enterprise-server@3.4/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)

---

<div class="post-metadata">

**Author:** ![albert.vu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/albert.vu/32/20595_2.png) [@albert.vu](https://forum.katalon.com/u/albert.vu)\
**Post date:** [March 17, 2023, 7:13am UTC](https://forum.katalon.com/t/git-error-codes-definitions-solutions-part-2/86402/2 "2023-03-17T07:13:14Z")

</div>

Today let’s take a look at the `Cannot open git-upload-pack` error

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/3/a/3aadc24ba0b77da7530f1cca373f7a7930204fb9.jpeg)

### Definition

Our TestOps cannot connect to your Gitlab repo due to access permission.

### Stage

Integration

### Root Cause

You are working under restricted network environment or using Gitlab server (which we has not officially supported yet).

### Solution

You can contact your IT team to whitelist the following IP addresses: (if you are under VPN)

- 52.45.203.41
- 52.203.34.201
- 35.172.81.5

and domains from [https://docs.katalon.com/docs/administer/troubleshooting/troubleshooting-activation-problem/network-security-errors#ariaid-title1](https://docs.katalon.com/docs/administer/troubleshooting/troubleshooting-activation-problem/network-security-errors#ariaid-title1).

If the issue still remains because you are using Gitlab server, you can try changing the **Source Type** into **Others** to see how it works. If you are still having issues, don’t hesitate to [Ask the Community](http://forum.katalon.com/new-topic?title=Give%20your%20topic%20a%20title&body=Type%20your%20question%20here.%20Then%20choose%20a%20suitable%20category%20and%20tag(s)) to let us know! 👍

---

<div class="post-metadata">

**Author:** ![albert.vu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/albert.vu/32/20595_2.png) [@albert.vu](https://forum.katalon.com/u/albert.vu)\
**Post date:** [March 23, 2023, 5:08am UTC](https://forum.katalon.com/t/git-error-codes-definitions-solutions-part-2/86402/3 "2023-03-23T05:08:47Z")

</div>

Today we will take a look at the `/api/v1/git/branch java.net.UnknownHostException - “Name or service not known”` error

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/0/e/0eb30507964350f1246f22dd20a4ff79583a2a03.jpeg)

### Definition

TestOps could not define the repo name through the git URL that you input in.

### Stage

Integration

### Root Cause

- Incorrect Clone URL.
- As a result of the high security user environment, your git server is incapable of locating or observing remote servers on the internet.

### Solution

- Contact your IT department to publish the repository on the internet so TestOps can detect it.
- Follow **[this guide](https://katalonsupport.force.com/katalonhelpcenter/s/article/Getting-the-error-Name-or-service-not-known-when-integrating-Bitbucket-with-Git-and-How-to-resolve)** if you happened to use the incorrect Clone URL.
