# Build Error - Bad Request

**URL:** <https://discuss.huggingface.co/t/build-error-bad-request/31851>\
**Category:** Spaces\
**Created:** [February 16, 2023, 5:20pm UTC](https://discuss.huggingface.co/t/build-error-bad-request/31851 "2023-02-16T17:20:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vamsi-tetali](https://avatars.discourse-cdn.com/v4/letter/v/c4cdca/32.png) [@vamsi-tetali](https://discuss.huggingface.co/u/vamsi-tetali)\
**Post date:** [February 16, 2023, 5:20pm UTC](https://discuss.huggingface.co/t/build-error-bad-request/31851/1 "2023-02-16T17:20:24Z")

</div>

Hi - I am seeing an unexpected “Bad Request” build error without any explanation, even when I switch to paid hardware for my spaces. All spaces that have already been built seem to be working fine even on the free hardware tier. It’s been happening throughout the past 16 hours or so for me. Is anyone else seeing this with their spaces?

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [February 16, 2023, 7:14pm UTC](https://discuss.huggingface.co/t/build-error-bad-request/31851/2 "2023-02-16T19:14:55Z")

</div>

hi @vamsi-tetali , we had some internal issues solved now, could you please try again?

---

<div class="post-metadata">

**Author:** ![vamsi-tetali](https://avatars.discourse-cdn.com/v4/letter/v/c4cdca/32.png) [@vamsi-tetali](https://discuss.huggingface.co/u/vamsi-tetali)\
**Post date:** [February 16, 2023, 7:30pm UTC](https://discuss.huggingface.co/t/build-error-bad-request/31851/3 "2023-02-16T19:30:28Z")

</div>

Thank you, @radames. Just tried but still seeing the issue in the two spaces I tried.

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [February 16, 2023, 7:50pm UTC](https://discuss.huggingface.co/t/build-error-bad-request/31851/4 "2023-02-16T19:50:23Z")

</div>

ok, we had some build queue issue earlier, solved now. Maybe you Bad Request” is another issue, could you share your Space?

---

<div class="post-metadata">

**Author:** ![vamsi-tetali](https://avatars.discourse-cdn.com/v4/letter/v/c4cdca/32.png) [@vamsi-tetali](https://discuss.huggingface.co/u/vamsi-tetali)\
**Post date:** [February 16, 2023, 7:53pm UTC](https://discuss.huggingface.co/t/build-error-bad-request/31851/5 "2023-02-16T19:53:17Z")

</div>

It looks like mine is related to using a private model through a huggingface access token. Below is the error:

```auto
Traceback (most recent call last):
  File "app.py", line 25, in <module>
    model = SentenceTransformer('synente/nli-distilroberta-base-v2finetuned_model_jan2', use_auth_token=hf_access_token)
  File "/home/user/.local/lib/python3.8/site-packages/sentence_transformers/SentenceTransformer.py", line 87, in __init__
    snapshot_download(model_name_or_path,
  File "/home/user/.local/lib/python3.8/site-packages/sentence_transformers/util.py", line 491, in snapshot_download
    path = cached_download(**cached_download_args)
  File "/home/user/.local/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 124, in _inner_fn
    return fn(*args, **kwargs)
  File "/home/user/.local/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 778, in cached_download
    http_get(
  File "/home/user/.local/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 512, in http_get
    hf_raise_for_status(r)
  File "/home/user/.local/lib/python3.8/site-packages/huggingface_hub/utils/_errors.py", line 314, in hf_raise_for_status
    raise BadRequestError(message, response=response) from e
huggingface_hub.utils._errors.BadRequestError: 

Bad request:

```

The space’s name is synente/description\_split\_and\_match. It is a private space and the model being accessed is also a private model.

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [February 17, 2023, 9:58am UTC](https://discuss.huggingface.co/t/build-error-bad-request/31851/6 "2023-02-17T09:58:03Z")

</div>

hi @vamsi-tetali

could you please try again?

> [@Git push rejected](https://discuss.huggingface.co/t/git-push-rejected/31227/16):
>
> Hello, We have investigated the problem, and we have deployed a fix for it, let me know if happens again Cheers

---

<div class="post-metadata">

**Author:** ![vamsi-tetali](https://avatars.discourse-cdn.com/v4/letter/v/c4cdca/32.png) [@vamsi-tetali](https://discuss.huggingface.co/u/vamsi-tetali)\
**Post date:** [February 17, 2023, 12:45pm UTC](https://discuss.huggingface.co/t/build-error-bad-request/31851/7 "2023-02-17T12:45:36Z")

</div>

Worked this time. Thank you!
