# Git clone ... fails with error 422, service parameter is needed

**URL:** <https://discuss.huggingface.co/t/git-clone-fails-with-error-422-service-parameter-is-needed/147805>\
**Category:** Beginners\
**Created:** [March 28, 2025, 10:36am UTC](https://discuss.huggingface.co/t/git-clone-fails-with-error-422-service-parameter-is-needed/147805 "2025-03-28T10:36:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ezzlar](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/ezzlar/32/44273_2.png) [@Ezzlar](https://discuss.huggingface.co/u/Ezzlar)\
**Post date:** [March 28, 2025, 10:36am UTC](https://discuss.huggingface.co/t/git-clone-fails-with-error-422-service-parameter-is-needed/147805/1 "2025-03-28T10:36:53Z")

</div>

I’m trying to get my first llm to run locally, just to learn a bit about things. I’ve got git-lfs installed and initialized. When trying to clone this happens:

```auto
git clone https://Humble_me:hf_my_read_token@huggingface.com/google/codegemma-2b-GGUF
Cloning into 'codegemma-2b-GGUF'...
remote: `service` parameter is needed
fatal: unable to access 'https://huggingface.com/google/codegemma-2b-GGUF/': The requested URL returned error: 422

```

I really don’t know what this service parameter is and how to pass it through.

Maybe a read toke isn’t enough for this? I don’t know where to look any further.

**EDIT:**  
I found a seemingly unrelated post:

[llm-model-download-fail](https://discuss.huggingface.co/t/llm-model-download-fail/103078)

However it was mentioned in the replies that their version of git probably caused that issue. As my version was much older at`git version 2.34.1,`I just upgraded to `git version 2.49.0` which is the current one. This however didn’t make a difference.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [March 28, 2025, 11:59am UTC](https://discuss.huggingface.co/t/git-clone-fails-with-error-422-service-parameter-is-needed/147805/2 "2025-03-28T11:59:04Z")

</div>

In the case of Windows, it’s usually because of the version of git.  
This time, though, it doesn’t seem to be the case.

Even so, 422 errors with git are extremely rare.  
It might be a bug in the site.

> <https://stackoverflow.com/questions/65821162/gitlab-account-acces-error-422-the-change-you-requested-was-rejected>

### For Windows users

> **[Git - Install for Windows](https://git-scm.com/downloads/win)**

> **[Git Large File Storage](https://git-lfs.com/)**
>
> Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise.

---

<div class="post-metadata">

**Author:** ![Ezzlar](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/ezzlar/32/44273_2.png) [@Ezzlar](https://discuss.huggingface.co/u/Ezzlar)\
**Post date:** [March 29, 2025, 4:53am UTC](https://discuss.huggingface.co/t/git-clone-fails-with-error-422-service-parameter-is-needed/147805/3 "2025-03-29T04:53:28Z")

</div>

Thank you. I checked the stack-overflow question and my time-zone and time configuration are correct. Also in this case Firefox isn’t even involved as it’s git (this seemed to be a Firefox specific problem that didn’t occur with Chrome).

Git executed from command line as I’m running Linux.

What got me stumped from the stack-exchange contribution is the ‘change rejected’ bit as I’ve only got a read token. I just didn’t expect that I would need write access for this. Also it may me completely misleading as it was a problem with gitlab.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [March 29, 2025, 5:06am UTC](https://discuss.huggingface.co/t/git-clone-fails-with-error-422-service-parameter-is-needed/147805/4 "2025-03-29T05:06:31Z")

</div>

I couldn’t find any examples of the 422 error on Hugging Face because it’s so rare, except for Inference API-related errors… sorry about that.

Although it’s not a 422 error, if a Fatal error occurs, it’s probably because the network connection itself isn’t working properly. In the case below, it seems that the IPv6 setting was the cause, but there are various other possibilities.

> <https://github.com/huggingface/huggingface_hub/issues/2043>
>
> \### Describe the bug
> 
> I am getting this error "We couldn't connect to 'https://h…uggingface.co' to load this file, couldn't find it in the cached files and it looks like sentence-transformers/all-MiniLM-L6-v2 is not the path to a directory containing a file named config.json." Although I am able to access website using my web browser and also I have tried creating new token and tried that but same result. Unable to use any model. 
> 
> \### Reproduction
> 
> \_No response\_
> 
> \### Logs
> 
> \`\`\`shell
> OSError: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like sentence-transformers/all-MiniLM-L6-v2 is not the path to a directory containing a file named config.json.
> Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.
> \`\`\`
> 
> 
> \### System info
> 
> \`\`\`shell
> \- huggingface\_hub version: 0.20.2
> \- Platform: Windows-11-10.0.22621-SP0
> \- Python version: 3.12.2
> \- Running in iPython ?: No
> \- Running in notebook ?: No
> \- Running in Google Colab ?: No
> \- Token path ?: C:\\Users\\panwa\\.cache\\huggingface\\token
> \- Has saved token ?: False
> \- Configured git credential helpers: manager
> \- FastAI: N/A
> \- Tensorflow: N/A
> \- Torch: 2.2.1
> \- Jinja2: 3.1.3
> \- Graphviz: N/A
> \- Pydot: N/A
> \- Pillow: 10.2.0
> \- hf\_transfer: N/A
> \- gradio: N/A
> \- tensorboard: N/A
> \- numpy: 1.26.4
> \- pydantic: 2.6.1
> \- aiohttp: 3.9.3
> \- ENDPOINT: https://huggingface.co
> \- HF\_HUB\_CACHE: C:\\Users\\panwa\\.cache\\huggingface\\hub
> \- HF\_ASSETS\_CACHE: C:\\Users\\panwa\\.cache\\huggingface\\assets
> \- HF\_TOKEN\_PATH: C:\\Users\\panwa\\.cache\\huggingface\\token
> \- HF\_HUB\_OFFLINE: False
> \- HF\_HUB\_DISABLE\_TELEMETRY: False
> \- HF\_HUB\_DISABLE\_PROGRESS\_BARS: None
> \- HF\_HUB\_DISABLE\_SYMLINKS\_WARNING: False
> \- HF\_HUB\_DISABLE\_IMPLICIT\_TOKEN: False
> \- HF\_HUB\_ENABLE\_HF\_TRANSFER: False
> \- HF\_HUB\_ETAG\_TIMEOUT: 10
> \- HF\_HUB\_DOWNLOAD\_TIMEOUT: 10
> 
> {'huggingface\_hub version': '0.20.2', 'Platform': 'Windows-11-10.0.22621-SP0', 'Python version': '3.12.2', 'Running in iPython ?': 'No', 'Running in notebook ?': 'No', 'Running in Google Colab ?': 'No', 'Token path ?': 'C:\\\\Users\\\\panwa\\\\.cache\\\\huggingface\\\\token', 'Has saved token ?': False, 'Configured git credential helpers': 'manager', 'FastAI': 'N/A', 'Tensorflow': 'N/A', 'Torch': '2.2.1', 'Jinja2': '3.1.3', 'Graphviz': 'N/A', 'Pydot': 'N/A', 'Pillow': '10.2.0', 'hf\_transfer': 'N/A', 'gradio': 'N/A', 'tensorboard': 'N/A', 'numpy': '1.26.4', 'pydantic': '2.6.1', 'aiohttp': '3.9.3', 'ENDPOINT': 'https://huggingface.co', 'HF\_HUB\_CACHE': 'C:\\\\Users\\\\panwa\\\\.cache\\\\huggingface\\\\hub', 'HF\_ASSETS\_CACHE': 'C:\\\\Users\\\\panwa\\\\.cache\\\\huggingface\\\\assets', 'HF\_TOKEN\_PATH': 'C:\\\\Users\\\\panwa\\\\.cache\\\\huggingface\\\\token', 'HF\_HUB\_OFFLINE': False, 'HF\_HUB\_DISABLE\_TELEMETRY': False, 'HF\_HUB\_DISABLE\_PROGRESS\_BARS': None, 'HF\_HUB\_DISABLE\_SYMLINKS\_WARNING': False, 'HF\_HUB\_DISABLE\_EXPERIMENTAL\_WARNING': False, 'HF\_HUB\_DISABLE\_IMPLICIT\_TOKEN': False, 'HF\_HUB\_ENABLE\_HF\_TRANSFER': False, 'HF\_HUB\_ETAG\_TIMEOUT': 10, 'HF\_HUB\_DOWNLOAD\_TIMEOUT': 10}
> \`\`\`

> <https://stackoverflow.com/questions/27087483/how-to-resolve-git-pull-fatal-unable-to-access-https-github-com-empty>

---

<div class="post-metadata">

**Author:** ![Ezzlar](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/ezzlar/32/44273_2.png) [@Ezzlar](https://discuss.huggingface.co/u/Ezzlar)\
**Post date:** [March 29, 2025, 5:44am UTC](https://discuss.huggingface.co/t/git-clone-fails-with-error-422-service-parameter-is-needed/147805/5 "2025-03-29T05:44:54Z")

</div>

Ok. It’s rather embarrassing. I did following change:

`huggingface.com`

to

`huggingface.co`

Now I’m getting Error 403.

`Your request to access model google/codegemma-2b-GGUF is awaiting a review from the repo authors.`

However this was because I accepted before the terms for a h5 file and had to accept again for this gguf. Once done the download started.

Noob problems 🤪

---

<div class="post-metadata">

**Author:** ![Ezzlar](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/ezzlar/32/44273_2.png) [@Ezzlar](https://discuss.huggingface.co/u/Ezzlar)\
**Post date:** [March 29, 2025, 5:54am UTC](https://discuss.huggingface.co/t/git-clone-fails-with-error-422-service-parameter-is-needed/147805/6 "2025-03-29T05:54:38Z")

</div>

When you go with a web browser to [https://huggingface.com](https://huggingface.com) you just get redirected to [https://huggingface.co](https://huggingface.co).

_¡O, gloria inmarcesible!  
¡O, júbilo inmortal!  
En surcos de dolores,  
el bien germina ya._

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [March 29, 2025, 6:26am UTC](https://discuss.huggingface.co/t/git-clone-fails-with-error-422-service-parameter-is-needed/147805/7 "2025-03-29T06:26:07Z")

</div>

> `huggingface.com`

lol😆

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/hellohellohello/original/2X/d/de4155eb4aa4108ecb32a1389d7cc37ae69f88b7.png) [@system](https://discuss.huggingface.co/u/system)\
**Post date:** [March 29, 2025, 6:26pm UTC](https://discuss.huggingface.co/t/git-clone-fails-with-error-422-service-parameter-is-needed/147805/8 "2025-03-29T18:26:48Z")

</div>

Closed on March 29, 2025, 6:26pm UTC

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
