# Connection error when building

**URL:** <https://discuss.huggingface.co/t/connection-error-when-building/13779>\
**Category:** Spaces\
**Created:** [January 17, 2022, 8:48am UTC](https://discuss.huggingface.co/t/connection-error-when-building/13779 "2022-01-17T08:48:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![THEODOROS](https://avatars.discourse-cdn.com/v4/letter/t/c89c15/32.png) [@THEODOROS](https://discuss.huggingface.co/u/THEODOROS)\
**Post date:** [January 17, 2022, 8:48am UTC](https://discuss.huggingface.co/t/connection-error-when-building/13779/1 "2022-01-17T08:48:04Z")

</div>

Hello!

I tried updating our gadio implementation in our HF Space, to better handle the increased traffic we have had the last few days. The build seems to be successful but we get a connection error when loading the tokenizer (although I guess that part is anecdotal and the connection error might be more general?). Here is the full traceback:

```auto
Traceback (most recent call last):
  File "app.py", line 19, in <module>
    tokenizer = AutoTokenizer.from_pretrained('gpt2')
  File "/home/user/.local/lib/python3.8/site-packages/transformers/models/auto/tokenization_auto.py", line 464, in from_pretrained
    tokenizer_config = get_tokenizer_config(pretrained_model_name_or_path, **kwargs)
  File "/home/user/.local/lib/python3.8/site-packages/transformers/models/auto/tokenization_auto.py", line 330, in get_tokenizer_config
    resolved_config_file = cached_path(
  File "/home/user/.local/lib/python3.8/site-packages/transformers/file_utils.py", line 1491, in cached_path
    output_path = get_from_cache(
  File "/home/user/.local/lib/python3.8/site-packages/transformers/file_utils.py", line 1715, in get_from_cache
    raise ValueError(
ValueError: Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on.

```

Any ideas what we can do to fix this?

Thanks in advance,  
Theodore.

---

<div class="post-metadata">

**Author:** ![osanseviero](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/osanseviero/32/38738_2.png) [@osanseviero](https://discuss.huggingface.co/u/osanseviero)\
**Post date:** [January 17, 2022, 9:00am UTC](https://discuss.huggingface.co/t/connection-error-when-building/13779/2 "2022-01-17T09:00:10Z")

</div>

Hi Theodore!

This same as the same issue as the one discussed in [Build error : failed to create endpoint hungry\_leavitt on network bridge: adding interface veth1291603 to bridge docker0 failed: exchange full - #2 by mikeee](https://discuss.huggingface.co/t/build-error-failed-to-create-endpoint-hungry-leavitt-on-network-bridge-adding-interface-veth1291603-to-bridge-docker0-failed-exchange-full/13752/2). Looking into it!

---

<div class="post-metadata">

**Author:** ![THEODOROS](https://avatars.discourse-cdn.com/v4/letter/t/c89c15/32.png) [@THEODOROS](https://discuss.huggingface.co/u/THEODOROS)\
**Post date:** [January 17, 2022, 9:47am UTC](https://discuss.huggingface.co/t/connection-error-when-building/13779/3 "2022-01-17T09:47:16Z")

</div>

Thank you! I’ll keep an eye for updates.

---

<div class="post-metadata">

**Author:** ![THEODOROS](https://avatars.discourse-cdn.com/v4/letter/t/c89c15/32.png) [@THEODOROS](https://discuss.huggingface.co/u/THEODOROS)\
**Post date:** [January 17, 2022, 12:13pm UTC](https://discuss.huggingface.co/t/connection-error-when-building/13779/4 "2022-01-17T12:13:06Z")

</div>

So the build is successful now! However, the HF space page and the site page are showing a 504 Gateway Time-out. The log says has a Running on local URL message as well, if that helps.

Edit: rebuilding to update some gradio deprecated options gave the same connection time out as before.
