# Gateway timeout on huggingface datasets

**URL:** <https://discuss.huggingface.co/t/gateway-timeout-on-huggingface-datasets/168579>\
**Category:** 🤗Hub\
**Created:** [September 21, 2025, 11:16pm UTC](https://discuss.huggingface.co/t/gateway-timeout-on-huggingface-datasets/168579 "2025-09-21T23:16:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![selflein](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@selflein](https://discuss.huggingface.co/u/selflein)\
**Post date:** [September 21, 2025, 11:16pm UTC](https://discuss.huggingface.co/t/gateway-timeout-on-huggingface-datasets/168579/1 "2025-09-21T23:16:20Z")

</div>

When trying to download `facebook/map-anything` at [facebook/map-anything · Datasets at Hugging Face](https://huggingface.co/datasets/facebook/map-anything) on gets an 504 error.

```auto
Message: 504 Server Error: Gateway Time-out for url: https://huggingface.co/api/datasets/facebook/map-anything/tree/22b5e6a6444283dc4e82370985ae563161929596?recursive=True&expand=False
Traceback: Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 66, in compute_config_names_response
                  config_names = get_dataset_config_names(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 161, in get_dataset_config_names
                  dataset_module = dataset_module_factory(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1031, in dataset_module_factory
                  raise e1 from None
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 996, in dataset_module_factory
                  return HubDatasetModuleFactory(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 631, in get_module
                  patterns = get_data_patterns(base_path, download_config=self.download_config)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/data_files.py", line 473, in get_data_patterns
                  return _get_data_files_patterns(resolver)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/data_files.py", line 284, in _get_data_files_patterns
                  data_files = pattern_resolver(pattern)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/data_files.py", line 360, in resolve_pattern
                  for filepath, info in fs.glob(pattern, detail=True, **glob_kwargs).items()
                File "/src/services/worker/.venv/lib/python3.9/site-packages/huggingface_hub/hf_file_system.py", line 521, in glob
                  return super().glob(path, **kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/spec.py", line 604, in glob
                  allpaths = self.find(root, maxdepth=depth, withdirs=True, detail=True, **kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/huggingface_hub/hf_file_system.py", line 563, in find
                  out = self._ls_tree(path, recursive=True, refresh=refresh, revision=resolved_path.revision, **kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/huggingface_hub/hf_file_system.py", line 446, in _ls_tree
                  self._ls_tree(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/huggingface_hub/hf_file_system.py", line 463, in _ls_tree
                  for path_info in tree:
                File "/src/services/worker/.venv/lib/python3.9/site-packages/huggingface_hub/hf_api.py", line 3140, in list_repo_tree
                  for path_info in paginate(path=tree_url, headers=headers, params={"recursive": recursive, "expand": expand}):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/huggingface_hub/utils/_pagination.py", line 37, in paginate
                  hf_raise_for_status(r)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/huggingface_hub/utils/_http.py", line 482, in hf_raise_for_status
                  raise _format(HfHubHTTPError, str(e), response) from e
              huggingface_hub.errors.HfHubHTTPError: 504 Server Error: Gateway Time-out for url: https://huggingface.co/api/datasets/facebook/map-anything/tree/22b5e6a6444283dc4e82370985ae563161929596?recursive=True&expand=False

```

---

<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:** [September 22, 2025, 12:46am UTC](https://discuss.huggingface.co/t/gateway-timeout-on-huggingface-datasets/168579/2 "2025-09-22T00:46:56Z")

</div>

True… @lhoestq Maybe too large to do `list_repo_tree` ?

 ![fbmapany504](https://us1.discourse-cdn.com/hellohellohello/original/3X/0/d/0d73dd03618f5e656fc335a59dd91df22656d34a.png)

---

<div class="post-metadata">

**Author:** ![lhoestq](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lhoestq/32/52888_2.png) [@lhoestq](https://discuss.huggingface.co/u/lhoestq)\
**Post date:** [September 22, 2025, 9:56am UTC](https://discuss.huggingface.co/t/gateway-timeout-on-huggingface-datasets/168579/3 "2025-09-22T09:56:35Z")

</div>

Thanks for reporting, we’re taking a look !

---

<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:** [September 22, 2025, 9:57am UTC](https://discuss.huggingface.co/t/gateway-timeout-on-huggingface-datasets/168579/4 "2025-09-22T09:57:19Z")

</div>

Thanks, lhoestq!

---

<div class="post-metadata">

**Author:** ![lhoestq](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lhoestq/32/52888_2.png) [@lhoestq](https://discuss.huggingface.co/u/lhoestq)\
**Post date:** [September 23, 2025, 3:15pm UTC](https://discuss.huggingface.co/t/gateway-timeout-on-huggingface-datasets/168579/5 "2025-09-23T15:15:44Z")

</div>

it’s working now for map-anything 🙂

---

<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:** [September 23, 2025, 7:39pm UTC](https://discuss.huggingface.co/t/gateway-timeout-on-huggingface-datasets/168579/6 "2025-09-23T19:39:31Z")

</div>

Confirmed it’s working! It was a bit of a mystery why `super_squash_history` fixed it.😅  
Well, as long as it works, that’s fine.
