# Could not fetch config Gradio

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcould-not-fetch-config-gradio%2F93754%3E%5C
**Category:** Spaces\
**Created:** [June 24, 2024, 10:54am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcould-not-fetch-config-gradio%2F93754 "2024-06-24T10:54:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon0302010](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/simon0302010/32/28583_2.png) [@simon0302010](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsimon0302010)%5C
**Post date:** [June 24, 2024, 10:54am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcould-not-fetch-config-gradio%2F93754%2F1 "2024-06-24T10:54:30Z")

</div>

How can I access the Gradio API on a Private Space? I’m getting this error:

Loaded as API: [https://xxxxxxxxxxxxxxxxxx.hf.space/--replicas/wnmou/](https://xxxxxxxxxxxxxxxxxx.hf.space/--replicas/wnmou/) ✔  
Traceback (most recent call last):  
File “d:\MemeBot\test.py”, line 3, in   
client = Client(“xxxxxxxxxxxxxxxxxx.hf.space/–replicas/wnmou/”)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “C:\Users\xxxxxxxxxxxxxxxxxx\AppData\Local\Programs\Python\Python312\Lib\site-packages\gradio\_client\client.py”, line 149, in **init**  
self.config = self.\_get\_config()  
^^^^^^^^^^^^^^^^^^  
File “C:\Users\xxxxxxxxxxxxxxxxxx\AppData\Local\Programs\Python\Python312\Lib\site-packages\gradio\_client\client.py”, line 863, in \_get\_config  
raise ValueError(f"Could not fetch config for {self.src}")  
ValueError: Could not fetch config for [https://xxxxxxxxxxxxxxxxxx.hf.space/--replicas/wnmou/](https://xxxxxxxxxxxxxxxxxx.hf.space/--replicas/wnmou/)

Note: Passing a HF Access Token didn’t help.

---

<div class="post-metadata">

**Author:** ![simon0302010](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/simon0302010/32/28583_2.png) [@simon0302010](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsimon0302010)%5C
**Post date:** [June 25, 2024, 5:52am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcould-not-fetch-config-gradio%2F93754%2F2 "2024-06-25T05:52:39Z")

</div>

Can someone please help me?

---

<div class="post-metadata">

**Author:** ![simon0302010](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/simon0302010/32/28583_2.png) [@simon0302010](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsimon0302010)%5C
**Post date:** [June 25, 2024, 4:02pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcould-not-fetch-config-gradio%2F93754%2F3 "2024-06-25T16:02:52Z")

</div>

I solved it by using the same Gradio version on the client and server…

---

<div class="post-metadata">

**Author:** ![bluman1](https://avatars.discourse-cdn.com/v4/letter/b/e9bcb4/32.png) [@bluman1](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fbluman1)%5C
**Post date:** [July 6, 2024, 7:04pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcould-not-fetch-config-gradio%2F93754%2F4 "2024-07-06T19:04:10Z")

</div>

I am having the same issue too, and HF\_Toekn being there isn’t helpful.

When you say you got the Gradio version on the client and server to be the same, what do you mean? Do you mean the same version of gradio\_client library or the radio library?

---

<div class="post-metadata">

**Author:** ![t-montes](https://avatars.discourse-cdn.com/v4/letter/t/d9b06d/32.png) [@t-montes](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Ft-montes)%5C
**Post date:** [October 11, 2024, 3:13am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcould-not-fetch-config-gradio%2F93754%2F5 "2024-10-11T03:13:01Z")

</div>

The “gradio” version. When you change it’s version it changes the “gradio\_client” library version as well
