BadRequestError for loading dataset?
NONE
Same here, for `HuggingFaceFW/fineweb`. Code that worked with no issues for the last 2 months suddenly fails today. Tried updating `datasets`, `huggingface_hub`, `fsspec` to newest versions, but the same error occurs.
2025-07-18T09:34:20Z
https://github.com/huggingface/datasets/issues/7689#issuecomment-3088803431
https://api.github.com/repos/huggingface/datasets/issues/7689
IC_kwDODunzps64G2Zn
https://api.github.com/repos/huggingface/datasets/issues/comments/3088803431/reactions
2025-07-18T09:34:20Z
https://api.github.com/repos/huggingface/datasets/issues/comments/3088803431
https://avatars.githubusercontent.com/u/29806640?v=4
https://api.github.com/users/rovle/events{/privacy}
https://api.github.com/users/rovle/followers
https://api.github.com/users/rovle/following{/other_user}
https://api.github.com/users/rovle/gists{/gist_id}
https://github.com/rovle
rovle
MDQ6VXNlcjI5ODA2NjQw
https://api.github.com/users/rovle/orgs
https://api.github.com/users/rovle/received_events
https://api.github.com/users/rovle/repos
https://api.github.com/users/rovle/starred{/owner}{/repo}
https://api.github.com/users/rovle/subscriptions
User
https://api.github.com/users/rovle
public
NONE
I'm also hitting this issue, with `mandarjoshi/trivia_qa`; My dataset loading was working successfully yesterday - I'm using `huggingface-hub==0.27.1`, `datasets==3.2.0`
2025-07-18T09:43:29Z
https://github.com/huggingface/datasets/issues/7689#issuecomment-3088828249
https://api.github.com/repos/huggingface/datasets/issues/7689
IC_kwDODunzps64G8dZ
https://api.github.com/repos/huggingface/datasets/issues/comments/3088828249/reactions
2025-07-18T09:52:17Z
https://api.github.com/repos/huggingface/datasets/issues/comments/3088828249
https://avatars.githubusercontent.com/u/19254716?v=4
https://api.github.com/users/HSaddiq/events{/privacy}
https://api.github.com/users/HSaddiq/followers
https://api.github.com/users/HSaddiq/following{/other_user}
https://api.github.com/users/HSaddiq/gists{/gist_id}
https://github.com/HSaddiq
HSaddiq
MDQ6VXNlcjE5MjU0NzE2
https://api.github.com/users/HSaddiq/orgs
https://api.github.com/users/HSaddiq/received_events
https://api.github.com/users/HSaddiq/repos
https://api.github.com/users/HSaddiq/starred{/owner}{/repo}
https://api.github.com/users/HSaddiq/subscriptions
User
https://api.github.com/users/HSaddiq
public
NONE
Same, here with `datasets==3.6.0`
2025-07-18T09:50:46Z
https://github.com/huggingface/datasets/issues/7689#issuecomment-3088848863
https://api.github.com/repos/huggingface/datasets/issues/7689
IC_kwDODunzps64HBff
https://api.github.com/repos/huggingface/datasets/issues/comments/3088848863/reactions
2025-07-18T09:50:46Z
https://api.github.com/repos/huggingface/datasets/issues/comments/3088848863
https://avatars.githubusercontent.com/u/95627643?v=4
https://api.github.com/users/AlexandrosEmvoliadis/events{/privacy}
https://api.github.com/users/AlexandrosEmvoliadis/followers
https://api.github.com/users/AlexandrosEmvoliadis/following{/other_user}
https://api.github.com/users/AlexandrosEmvoliadis/gists{/gist_id}
https://github.com/AlexandrosEmvoliadis
AlexandrosEmvoliadis
U_kgDOBbMpew
https://api.github.com/users/AlexandrosEmvoliadis/orgs
https://api.github.com/users/AlexandrosEmvoliadis/received_events
https://api.github.com/users/AlexandrosEmvoliadis/repos
https://api.github.com/users/AlexandrosEmvoliadis/starred{/owner}{/repo}
https://api.github.com/users/AlexandrosEmvoliadis/subscriptions
User
https://api.github.com/users/AlexandrosEmvoliadis
public
NONE
Same, with `datasets==4.0.0`.
2025-07-18T09:52:40Z
https://github.com/huggingface/datasets/issues/7689#issuecomment-3088853696
https://api.github.com/repos/huggingface/datasets/issues/7689
IC_kwDODunzps64HCrA
https://api.github.com/repos/huggingface/datasets/issues/comments/3088853696/reactions
2025-07-18T09:57:07Z
https://api.github.com/repos/huggingface/datasets/issues/comments/3088853696
https://avatars.githubusercontent.com/u/3599351?v=4
https://api.github.com/users/Alpacius/events{/privacy}
https://api.github.com/users/Alpacius/followers
https://api.github.com/users/Alpacius/following{/other_user}
https://api.github.com/users/Alpacius/gists{/gist_id}
https://github.com/Alpacius
Alpacius
MDQ6VXNlcjM1OTkzNTE=
https://api.github.com/users/Alpacius/orgs
https://api.github.com/users/Alpacius/received_events
https://api.github.com/users/Alpacius/repos
https://api.github.com/users/Alpacius/starred{/owner}{/repo}
https://api.github.com/users/Alpacius/subscriptions
User
https://api.github.com/users/Alpacius
public
NONE
Same here tried different versions of huggingface-hub and datasets but the error keeps occuring 
2025-07-18T09:53:26Z
https://github.com/huggingface/datasets/issues/7689#issuecomment-3088856530
https://api.github.com/repos/huggingface/datasets/issues/7689
IC_kwDODunzps64HDXS
https://api.github.com/repos/huggingface/datasets/issues/comments/3088856530/reactions
2025-07-18T09:53:26Z
https://api.github.com/repos/huggingface/datasets/issues/comments/3088856530
https://avatars.githubusercontent.com/u/114345821?v=4
https://api.github.com/users/LMSPaul/events{/privacy}
https://api.github.com/users/LMSPaul/followers
https://api.github.com/users/LMSPaul/following{/other_user}
https://api.github.com/users/LMSPaul/gists{/gist_id}
https://github.com/LMSPaul
LMSPaul
U_kgDOBtDHXQ
https://api.github.com/users/LMSPaul/orgs
https://api.github.com/users/LMSPaul/received_events
https://api.github.com/users/LMSPaul/repos
https://api.github.com/users/LMSPaul/starred{/owner}{/repo}
https://api.github.com/users/LMSPaul/subscriptions
User
https://api.github.com/users/LMSPaul
public
NONE
A temporary workaround is to first download your dataset with

huggingface-cli download HuggingFaceH4/ultrachat_200k --repo-type dataset

Then find the local path of the dataset typically like ~/.cache/huggingface/hub/HuggingFaceH4-ultrachat_200k/snapshots/*id*

And then load like 

from datasets import load_dataset
dataset = load_dataset("~/.cache/huggingface/hub/HuggingFaceH4-ultrachat_200k/snapshots/*id*")

2025-07-18T10:03:49Z
https://github.com/huggingface/datasets/issues/7689#issuecomment-3088885172
https://api.github.com/repos/huggingface/datasets/issues/7689
IC_kwDODunzps64HKW0
https://api.github.com/repos/huggingface/datasets/issues/comments/3088885172/reactions
2025-07-18T10:03:49Z
https://api.github.com/repos/huggingface/datasets/issues/comments/3088885172
https://avatars.githubusercontent.com/u/114345821?v=4
https://api.github.com/users/LMSPaul/events{/privacy}
https://api.github.com/users/LMSPaul/followers
https://api.github.com/users/LMSPaul/following{/other_user}
https://api.github.com/users/LMSPaul/gists{/gist_id}
https://github.com/LMSPaul
LMSPaul
U_kgDOBtDHXQ
https://api.github.com/users/LMSPaul/orgs
https://api.github.com/users/LMSPaul/received_events
https://api.github.com/users/LMSPaul/repos
https://api.github.com/users/LMSPaul/starred{/owner}{/repo}
https://api.github.com/users/LMSPaul/subscriptions
User
https://api.github.com/users/LMSPaul
public
NONE
I am also experiencing this issue. I was trying to load TinyStories
ds = datasets.load_dataset("roneneldan/TinyStories", streaming=True, split="train")

resulting in the previously stated error:
Exception has occurred: BadRequestError
(Request ID: Root=1-687a1d09-66cceb496c9401b1084133d6;3550deed-c459-4799-bc74-97924742bd94)

Bad request:
* Invalid input: expected array, received string * at paths * Invalid input: expected boolean, received string * at expand
✖ Invalid input: expected array, received string
  → at paths
✖ Invalid input: expected boolean, received string
  → at expand
FileNotFoundError: Dataset roneneldan/TinyStories is not cached in None

This very code worked fine yesterday, so it's a very recent issue.

Environment info:
print("datasets version:", datasets.__version__)
print("huggingface_hub version:", huggingface_hub.__version__)
print("pyarrow version:", pyarrow.__version__)
print("pandas version:", pandas.__version__)
print("fsspec version:", fsspec.__version__)
print("Python version:", sys.version)
print("Platform:", platform.platform())
datasets version: 4.0.0
huggingface_hub version: 0.33.4
pyarrow version: 19.0.0
pandas version: 2.2.3
fsspec version: 2024.9.0
Python version: 3.12.11 (main, Jun 10 2025, 11:55:20) [GCC 15.1.1 20250425]
Platform: Linux-6.15.6-arch1-1-x86_64-with-glibc2.41
2025-07-18T10:21:11Z
https://github.com/huggingface/datasets/issues/7689#issuecomment-3088945396
https://api.github.com/repos/huggingface/datasets/issues/7689
IC_kwDODunzps64HZD0
https://api.github.com/repos/huggingface/datasets/issues/comments/3088945396/reactions
2025-07-18T10:21:11Z
https://api.github.com/repos/huggingface/datasets/issues/comments/3088945396
https://avatars.githubusercontent.com/u/5984212?v=4
https://api.github.com/users/Snowyiu/events{/privacy}
https://api.github.com/users/Snowyiu/followers
https://api.github.com/users/Snowyiu/following{/other_user}
https://api.github.com/users/Snowyiu/gists{/gist_id}
https://github.com/Snowyiu
Snowyiu
MDQ6VXNlcjU5ODQyMTI=
https://api.github.com/users/Snowyiu/orgs
https://api.github.com/users/Snowyiu/received_events
https://api.github.com/users/Snowyiu/repos
https://api.github.com/users/Snowyiu/starred{/owner}{/repo}
https://api.github.com/users/Snowyiu/subscriptions
User
https://api.github.com/users/Snowyiu
public
NONE
Same here with datasets==3.6.0
```
huggingface_hub.errors.BadRequestError: (Request ID: Root=1-687a238d-27374f964534f79f702bc239;61f0669c-cb70-4aff-b57b-73a446f9c65e)

Bad request:
* Invalid input: expected array, received string * at paths * Invalid input: expected boolean, received string * at expand
✖ Invalid input: expected array, received string
  → at paths
✖ Invalid input: expected boolean, received string
  → at expand
```
2025-07-18T10:42:43Z
https://github.com/huggingface/datasets/issues/7689#issuecomment-3089020990
https://api.github.com/repos/huggingface/datasets/issues/7689
IC_kwDODunzps64Hrg-
https://api.github.com/repos/huggingface/datasets/issues/comments/3089020990/reactions
2025-07-18T10:42:43Z
https://api.github.com/repos/huggingface/datasets/issues/comments/3089020990
https://avatars.githubusercontent.com/u/112567202?v=4
https://api.github.com/users/Buffett111/events{/privacy}
https://api.github.com/users/Buffett111/followers
https://api.github.com/users/Buffett111/following{/other_user}
https://api.github.com/users/Buffett111/gists{/gist_id}
https://github.com/Buffett111
Buffett111
U_kgDOBrWjog
https://api.github.com/users/Buffett111/orgs
https://api.github.com/users/Buffett111/received_events
https://api.github.com/users/Buffett111/repos
https://api.github.com/users/Buffett111/starred{/owner}{/repo}
https://api.github.com/users/Buffett111/subscriptions
User
https://api.github.com/users/Buffett111
public
NONE
Same here, works perfectly yesterday

```
Error code:   ConfigNamesError
Exception:    BadRequestError
Message:      (Request ID: Root=1-687a23a5-314b45b36ce962cf0e431b9a;b979ddb2-a80b-483c-8b1e-403e24e83127)

Bad request:
* Invalid input: expected array, received string * at paths * Invalid input: expected boolean, received string * at expand
✖ Invalid input: expected array, received string
  → at paths
✖ Invalid input: expected boolean, received string
  → at expand
```
2025-07-18T10:49:26Z
https://github.com/huggingface/datasets/issues/7689#issuecomment-3089044117
https://api.github.com/repos/huggingface/datasets/issues/7689
IC_kwDODunzps64HxKV
https://api.github.com/repos/huggingface/datasets/issues/comments/3089044117/reactions
2025-07-18T10:49:26Z
https://api.github.com/repos/huggingface/datasets/issues/comments/3089044117
https://avatars.githubusercontent.com/u/93083801?v=4
https://api.github.com/users/StarryZhang-whu/events{/privacy}
https://api.github.com/users/StarryZhang-whu/followers
https://api.github.com/users/StarryZhang-whu/following{/other_user}
https://api.github.com/users/StarryZhang-whu/gists{/gist_id}
https://github.com/StarryZhang-whu
StarryZhang-whu
U_kgDOBYxYmQ
https://api.github.com/users/StarryZhang-whu/orgs
https://api.github.com/users/StarryZhang-whu/received_events
https://api.github.com/users/StarryZhang-whu/repos
https://api.github.com/users/StarryZhang-whu/starred{/owner}{/repo}
https://api.github.com/users/StarryZhang-whu/subscriptions
User
https://api.github.com/users/StarryZhang-whu
public
NONE
It was literally working for me and then suddenly it stopped working next time I run the command. Same issue but private repo so I can't share example. 
2025-07-18T10:59:21Z
https://github.com/huggingface/datasets/issues/7689#issuecomment-3089076656
https://api.github.com/repos/huggingface/datasets/issues/7689
IC_kwDODunzps64H5Gw
https://api.github.com/repos/huggingface/datasets/issues/comments/3089076656/reactions
2025-07-18T10:59:21Z
https://api.github.com/repos/huggingface/datasets/issues/comments/3089076656
https://avatars.githubusercontent.com/u/31596917?v=4
https://api.github.com/users/nikitas-theo/events{/privacy}
https://api.github.com/users/nikitas-theo/followers
https://api.github.com/users/nikitas-theo/following{/other_user}
https://api.github.com/users/nikitas-theo/gists{/gist_id}
https://github.com/nikitas-theo
nikitas-theo
MDQ6VXNlcjMxNTk2OTE3
https://api.github.com/users/nikitas-theo/orgs
https://api.github.com/users/nikitas-theo/received_events
https://api.github.com/users/nikitas-theo/repos
https://api.github.com/users/nikitas-theo/starred{/owner}{/repo}
https://api.github.com/users/nikitas-theo/subscriptions
User
https://api.github.com/users/nikitas-theo
public
NONE
A bug from Hugging Face not us
2025-07-18T11:07:53Z
https://github.com/huggingface/datasets/issues/7689#issuecomment-3089104496
https://api.github.com/repos/huggingface/datasets/issues/7689
IC_kwDODunzps64H_5w
https://api.github.com/repos/huggingface/datasets/issues/comments/3089104496/reactions
2025-07-18T11:07:53Z
https://api.github.com/repos/huggingface/datasets/issues/comments/3089104496
https://avatars.githubusercontent.com/u/89017978?v=4
https://api.github.com/users/ZhangzeqingCN/events{/privacy}
https://api.github.com/users/ZhangzeqingCN/followers
https://api.github.com/users/ZhangzeqingCN/following{/other_user}
https://api.github.com/users/ZhangzeqingCN/gists{/gist_id}
https://github.com/ZhangzeqingCN
ZhangzeqingCN
MDQ6VXNlcjg5MDE3OTc4
https://api.github.com/users/ZhangzeqingCN/orgs
https://api.github.com/users/ZhangzeqingCN/received_events
https://api.github.com/users/ZhangzeqingCN/repos
https://api.github.com/users/ZhangzeqingCN/starred{/owner}{/repo}
https://api.github.com/users/ZhangzeqingCN/subscriptions
User
https://api.github.com/users/ZhangzeqingCN
public
NONE
Same here!
2025-07-18T11:17:35Z
https://github.com/huggingface/datasets/issues/7689#issuecomment-3089131524
https://api.github.com/repos/huggingface/datasets/issues/7689
IC_kwDODunzps64IGgE
https://api.github.com/repos/huggingface/datasets/issues/comments/3089131524/reactions
2025-07-18T11:17:35Z
https://api.github.com/repos/huggingface/datasets/issues/comments/3089131524
https://avatars.githubusercontent.com/u/168540866?v=4
https://api.github.com/users/sdtblckgov/events{/privacy}
https://api.github.com/users/sdtblckgov/followers
https://api.github.com/users/sdtblckgov/following{/other_user}
https://api.github.com/users/sdtblckgov/gists{/gist_id}
https://github.com/sdtblckgov
sdtblckgov
U_kgDOCgu6wg
https://api.github.com/users/sdtblckgov/orgs
https://api.github.com/users/sdtblckgov/received_events
https://api.github.com/users/sdtblckgov/repos
https://api.github.com/users/sdtblckgov/starred{/owner}{/repo}
https://api.github.com/users/sdtblckgov/subscriptions
User
https://api.github.com/users/sdtblckgov
public
NONE
@LMSPaul thanks! The workaround seems to work (at least for the datasets I tested).

On the command line:
```sh
huggingface-cli download <dataset-name> --repo-type dataset --local-dir <local-dir>
```

And then in Python:
```python
from datasets import load_dataset

# The dataset-specific options seem to work with this as well, 
# except for a warning from "trust_remote_code"
ds = load_dataset(<local-dir>)
```
2025-07-18T11:25:52Z
https://github.com/huggingface/datasets/issues/7689#issuecomment-3089151595
https://api.github.com/repos/huggingface/datasets/issues/7689
IC_kwDODunzps64ILZr
https://api.github.com/repos/huggingface/datasets/issues/comments/3089151595/reactions
2025-07-18T11:25:52Z
https://api.github.com/repos/huggingface/datasets/issues/comments/3089151595
https://avatars.githubusercontent.com/u/45011687?v=4
https://api.github.com/users/WPoelman/events{/privacy}
https://api.github.com/users/WPoelman/followers
https://api.github.com/users/WPoelman/following{/other_user}
https://api.github.com/users/WPoelman/gists{/gist_id}
https://github.com/WPoelman
WPoelman
MDQ6VXNlcjQ1MDExNjg3
https://api.github.com/users/WPoelman/orgs
https://api.github.com/users/WPoelman/received_events
https://api.github.com/users/WPoelman/repos
https://api.github.com/users/WPoelman/starred{/owner}{/repo}
https://api.github.com/users/WPoelman/subscriptions
User
https://api.github.com/users/WPoelman
public
NONE
Same for me.. I couldn't load ..
It was perfectly working yesterday..


from datasets import load_dataset
raw_datasets = load_dataset("glue", "mrpc")

The error resulting is given below

---------------------------------------------------------------------------
BadRequestError                           Traceback (most recent call last)
/tmp/ipykernel_60/772458687.py in <cell line: 0>()
      1 from datasets import load_dataset
----> 2 raw_datasets = load_dataset("glue", "mrpc")

/usr/local/lib/python3.11/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, keep_in_memory, save_infos, revision, token, streaming, num_proc, storage_options, trust_remote_code, **config_kwargs)
   2060 
   2061     # Create a dataset builder
-> 2062     builder_instance = load_dataset_builder(
   2063         path=path,
   2064         name=name,

/usr/local/lib/python3.11/dist-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, token, storage_options, trust_remote_code, _require_default_config_name, **config_kwargs)
   1780         download_config = download_config.copy() if download_config else DownloadConfig()
   1781         download_config.storage_options.update(storage_options)
-> 1782     dataset_module = dataset_module_factory(
   1783         path,
   1784         revision=revision,

/usr/local/lib/python3.11/dist-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, dynamic_modules_path, data_dir, data_files, cache_dir, trust_remote_code, _require_default_config_name, _require_custom_configs, **download_kwargs)
   1662                             f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}"
   1663                         ) from None
-> 1664                 raise e1 from None
   1665     elif trust_remote_code:
   1666         raise FileNotFoundError(

/usr/local/lib/python3.11/dist-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, dynamic_modules_path, data_dir, data_files, cache_dir, trust_remote_code, _require_default_config_name, _require_custom_configs, **download_kwargs)
   1627                     download_mode=download_mode,
   1628                     use_exported_dataset_infos=use_exported_dataset_infos,
-> 1629                 ).get_module()
   1630             except GatedRepoError as e:
   1631                 message = f"Dataset '{path}' is a gated dataset on the Hub."

/usr/local/lib/python3.11/dist-packages/datasets/load.py in get_module(self)
   1017         else:
   1018             patterns = get_data_patterns(base_path, download_config=self.download_config)
-> 1019         data_files = DataFilesDict.from_patterns(
   1020             patterns,
   1021             base_path=base_path,

/usr/local/lib/python3.11/dist-packages/datasets/data_files.py in from_patterns(cls, patterns, base_path, allowed_extensions, download_config)
    687                 patterns_for_key
    688                 if isinstance(patterns_for_key, DataFilesList)
--> 689                 else DataFilesList.from_patterns(
    690                     patterns_for_key,
    691                     base_path=base_path,

/usr/local/lib/python3.11/dist-packages/datasets/data_files.py in from_patterns(cls, patterns, base_path, allowed_extensions, download_config)
    580             try:
    581                 data_files.extend(
--> 582                     resolve_pattern(
    583                         pattern,
    584                         base_path=base_path,

/usr/local/lib/python3.11/dist-packages/datasets/data_files.py in resolve_pattern(pattern, base_path, allowed_extensions, download_config)
    358     matched_paths = [
    359         filepath if filepath.startswith(protocol_prefix) else protocol_prefix + filepath
--> 360         for filepath, info in fs.glob(pattern, detail=True, **glob_kwargs).items()
    361         if (info["type"] == "file" or (info.get("islink") and os.path.isfile(os.path.realpath(filepath))))
    362         and (xbasename(filepath) not in files_to_ignore)

/usr/local/lib/python3.11/dist-packages/huggingface_hub/hf_file_system.py in glob(self, path, **kwargs)
    519         kwargs = {"expand_info": kwargs.get("detail", False), **kwargs}
    520         path = self.resolve_path(path, revision=kwargs.get("revision")).unresolve()
--> 521         return super().glob(path, **kwargs)
    522 
    523     def find(

/usr/local/lib/python3.11/dist-packages/fsspec/spec.py in glob(self, path, maxdepth, **kwargs)
    635             # any exception allowed bar FileNotFoundError?
    636             return False
--> 637 
    638     def lexists(self, path, **kwargs):
    639         """If there is a file at the given path (including

/usr/local/lib/python3.11/dist-packages/huggingface_hub/hf_file_system.py in find(self, path, maxdepth, withdirs, detail, refresh, revision, **kwargs)
    554         """
    555         if maxdepth:
--> 556             return super().find(
    557                 path, maxdepth=maxdepth, withdirs=withdirs, detail=detail, refresh=refresh, revision=revision, **kwargs
    558             )

/usr/local/lib/python3.11/dist-packages/fsspec/spec.py in find(self, path, maxdepth, withdirs, detail, **kwargs)
    498         # This is needed for posix glob compliance
    499         if withdirs and path != "" and self.isdir(path):
--> 500             out[path] = self.info(path)
    501 
    502         for _, dirs, files in self.walk(path, maxdepth, detail=True, **kwargs):

/usr/local/lib/python3.11/dist-packages/huggingface_hub/hf_file_system.py in info(self, path, refresh, revision, **kwargs)
    717                 out = out1[0]
    718             if refresh or out is None or (expand_info and out and out["last_commit"] is None):
--> 719                 paths_info = self._api.get_paths_info(
    720                     resolved_path.repo_id,
    721                     resolved_path.path_in_repo,

/usr/local/lib/python3.11/dist-packages/huggingface_hub/utils/_validators.py in _inner_fn(*args, **kwargs)
    112             kwargs = smoothly_deprecate_use_auth_token(fn_name=fn.__name__, has_token=has_token, kwargs=kwargs)
    113 
--> 114         return fn(*args, **kwargs)
    115 
    116     return _inner_fn  # type: ignore

/usr/local/lib/python3.11/dist-packages/huggingface_hub/hf_api.py in get_paths_info(self, repo_id, paths, expand, revision, repo_type, token)
   3397             headers=headers,
   3398         )
-> 3399         hf_raise_for_status(response)
   3400         paths_info = response.json()
   3401         return [

/usr/local/lib/python3.11/dist-packages/huggingface_hub/utils/_http.py in hf_raise_for_status(response, endpoint_name)
    463                 f"\n\nBad request for {endpoint_name} endpoint:" if endpoint_name is not None else "\n\nBad request:"
    464             )
--> 465             raise _format(BadRequestError, message, response) from e
    466 
    467         elif response.status_code == 403:

BadRequestError: (Request ID: Root=1-687a3201-087954b9245ab59672e6068e;d5bb4dbe-03e1-4912-bcec-5964c017b920)

Bad request:
* Invalid input: expected array, received string * at paths * Invalid input: expected boolean, received string * at expand
✖ Invalid input: expected array, received string
  → at paths
✖ Invalid input: expected boolean, re
2025-07-18T11:41:22Z
https://github.com/huggingface/datasets/issues/7689#issuecomment-3089194603
https://api.github.com/repos/huggingface/datasets/issues/7689
IC_kwDODunzps64IV5r
https://api.github.com/repos/huggingface/datasets/issues/comments/3089194603/reactions
2025-07-18T11:41:22Z
https://api.github.com/repos/huggingface/datasets/issues/comments/3089194603
https://avatars.githubusercontent.com/u/39984052?v=4
https://api.github.com/users/mumthazbeegumm/events{/privacy}
https://api.github.com/users/mumthazbeegumm/followers
https://api.github.com/users/mumthazbeegumm/following{/other_user}
https://api.github.com/users/mumthazbeegumm/gists{/gist_id}
https://github.com/mumthazbeegumm
mumthazbeegumm
MDQ6VXNlcjM5OTg0MDUy
https://api.github.com/users/mumthazbeegumm/orgs
https://api.github.com/users/mumthazbeegumm/received_events
https://api.github.com/users/mumthazbeegumm/repos
https://api.github.com/users/mumthazbeegumm/starred{/owner}{/repo}
https://api.github.com/users/mumthazbeegumm/subscriptions
User
https://api.github.com/users/mumthazbeegumm
public
MEMBER
Thanks for the report!
The issue has been fixed and should now work without any code changes 😄
Sorry for the inconvenience!

Closing, please open again if needed.
2025-07-18T11:52:29Z
https://github.com/huggingface/datasets/issues/7689#issuecomment-3089227282
https://api.github.com/repos/huggingface/datasets/issues/7689
IC_kwDODunzps64Id4S
https://api.github.com/repos/huggingface/datasets/issues/comments/3089227282/reactions
2025-07-18T11:52:29Z
https://api.github.com/repos/huggingface/datasets/issues/comments/3089227282
https://avatars.githubusercontent.com/u/17179696?v=4
https://api.github.com/users/sergiopaniego/events{/privacy}
https://api.github.com/users/sergiopaniego/followers
https://api.github.com/users/sergiopaniego/following{/other_user}
https://api.github.com/users/sergiopaniego/gists{/gist_id}
https://github.com/sergiopaniego
sergiopaniego
MDQ6VXNlcjE3MTc5Njk2
https://api.github.com/users/sergiopaniego/orgs
https://api.github.com/users/sergiopaniego/received_events
https://api.github.com/users/sergiopaniego/repos
https://api.github.com/users/sergiopaniego/starred{/owner}{/repo}
https://api.github.com/users/sergiopaniego/subscriptions
User
https://api.github.com/users/sergiopaniego
public
NONE
Works for me. Thanks!

2025-07-18T11:55:16Z
https://github.com/huggingface/datasets/issues/7689#issuecomment-3089238320
https://api.github.com/repos/huggingface/datasets/issues/7689
IC_kwDODunzps64Igkw
https://api.github.com/repos/huggingface/datasets/issues/comments/3089238320/reactions
2025-07-18T11:55:16Z
https://api.github.com/repos/huggingface/datasets/issues/comments/3089238320
https://avatars.githubusercontent.com/u/10846210?v=4
https://api.github.com/users/karol-brejna-i/events{/privacy}
https://api.github.com/users/karol-brejna-i/followers
https://api.github.com/users/karol-brejna-i/following{/other_user}
https://api.github.com/users/karol-brejna-i/gists{/gist_id}
https://github.com/karol-brejna-i
karol-brejna-i
MDQ6VXNlcjEwODQ2MjEw
https://api.github.com/users/karol-brejna-i/orgs
https://api.github.com/users/karol-brejna-i/received_events
https://api.github.com/users/karol-brejna-i/repos
https://api.github.com/users/karol-brejna-i/starred{/owner}{/repo}
https://api.github.com/users/karol-brejna-i/subscriptions
User
https://api.github.com/users/karol-brejna-i
public
NONE
Yes Now it's works for me..Thanks

On Fri, 18 Jul 2025, 5:25 pm Karol Brejna, ***@***.***> wrote:

> *karol-brejna-i* left a comment (huggingface/datasets#7689)
> <https://github.com/huggingface/datasets/issues/7689#issuecomment-3089238320>
>
> Works for me. Thanks!
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/7689#issuecomment-3089238320>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AJRBXNEWBJ5UYVC2IRJM5DD3JDODZAVCNFSM6AAAAACB2FDG4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTAOBZGIZTQMZSGA>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>

2025-07-18T11:59:51Z
https://github.com/huggingface/datasets/issues/7689#issuecomment-3089248827
https://api.github.com/repos/huggingface/datasets/issues/7689
IC_kwDODunzps64IjI7
https://api.github.com/repos/huggingface/datasets/issues/comments/3089248827/reactions
2025-07-18T11:59:51Z
https://api.github.com/repos/huggingface/datasets/issues/comments/3089248827
https://avatars.githubusercontent.com/u/39984052?v=4
https://api.github.com/users/mumthazbeegumm/events{/privacy}
https://api.github.com/users/mumthazbeegumm/followers
https://api.github.com/users/mumthazbeegumm/following{/other_user}
https://api.github.com/users/mumthazbeegumm/gists{/gist_id}
https://github.com/mumthazbeegumm
mumthazbeegumm
MDQ6VXNlcjM5OTg0MDUy
https://api.github.com/users/mumthazbeegumm/orgs
https://api.github.com/users/mumthazbeegumm/received_events
https://api.github.com/users/mumthazbeegumm/repos
https://api.github.com/users/mumthazbeegumm/starred{/owner}{/repo}
https://api.github.com/users/mumthazbeegumm/subscriptions
User
https://api.github.com/users/mumthazbeegumm
public
### Describe the bug

Up until a couple days ago I was having no issues loading `Helsinki-NLP/europarl` and `Helsinki-NLP/un_pc`, but now suddenly I get the following error:

```
huggingface_hub.errors.BadRequestError: (Request ID: ...)

Bad request:
* Invalid input: expected array, received string * at paths * Invalid input: expected boolean, received string * at expand
✖ Invalid input: expected array, received string
  → at paths
✖ Invalid input: expected boolean, received string
  → at expand
```

I tried with both `4.0.0` and `3.5.1` since this dataset uses `trust_remote_code`, but I get the same error with both.

What can I do to load the dataset? I checked the documentation and GitHub issues here, but couldn't find a solution.

### Steps to reproduce the bug

```python
import datasets
ds = datasets.load_dataset("Helsinki-NLP/europarl", "en-fr", streaming=True, trust_remote_code=True)["train"]
```

### Expected behavior

That the dataset loads as it did a couple days ago.

### Environment info

- `datasets` version: 3.5.1
- Platform: Linux-4.18.0-513.24.1.el8_9.x86_64-x86_64-with-glibc2.28
- Python version: 3.11.11
- `huggingface_hub` version: 0.30.2
- PyArrow version: 20.0.0
- Pandas version: 2.2.2
- `fsspec` version: 2024.6.1