Dataset downloads fail for files >1972

#3
by reesekneeland - opened

Hello! When I attempt to download the dataset, it downloads most of the parquet files fine, but I get failures for files >1972 with the below error message. The error persists using both the regular load_dataset() method, and the snapshot_download() method as part of huggingface_hub. Is there an underlying issue with these files or is there an alternative download mechanism I can use?

Cannot access content at: https://cdn-lfs-us-1.hf.co/repos/fa/d0/fad083e168e945fb32a539a08d101901dc08bab1c53c1e964d7d3a6129704c68/e00a7ca47ea05e276e94991e3b33d382f5ee6ab96bfdfd812be0b53cda5b09eb?response-content-disposition=
inline%3B+filename*%3DUTF-8%27%27relaion2b_features_01972.parquet%3B+filename%3D%22relaion2b_features_01972.parquet%22%3B&Expires=1767409702&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGlt
ZSI6MTc2NzQwOTcwMn19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2RuLWxmcy11cy0xLmhmLmNvL3JlcG9zL2ZhL2QwL2ZhZDA4M2UxNjhlOTQ1ZmIzMmE1MzlhMDhkMTAxOTAxZGMwOGJhYjFjNTNjMWU5NjRkN2QzYTYxMjk3MDRjNjgvZTAwYTdjYTQ3ZWEwNWUyNzZlOTQ5OTFlM2IzM2QzODJmNWVl
NmFiOTZiZmRmZDgxMmJlMGI1M2NkYTViMDllYj9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSoifV19&Signature=npJs8mc-%7EmEQVNuF4I9-NU3l8bcwNNoS68tWlBi-SjqytupqxhJfgqNTQLor9XXVuiwDDivVmMy-ka8PfJJgy-Iqk6gK%7ETViR5UaGvA0IhP01wgOBDHgy%7E4wT7o
ZhYHdfDkbaiGA-1gkWThl2wyKkSb7uphirpPcm8%7E41ddc6YUYuZlebsO99F2WvA4Yw7s9MEkT0b1phEh0kPnj0m5L8DxT-GPUVRFvcMyqPlUTaRmLpbuEygOU-NfMhjvzZdESPs40fMwVSMwDJr3DOlfXmotP7i%7E1I9xftnPZcBbrUNvxTYQcdNuIz%7E2YnpnEzd16sbHRfJ3hD-QovJ0ieStIP
Q__&Key-Pair-Id=K24J24Z295AEI9.                                                                                                                                                                                                 
Make sure your token has the correct permissions.                                                                                                                                                                               
<?xml version="1.0" encoding="UTF-8"?>                                                                                                                                                                                          
<Error><Code>AccessDenied</Code><Message>Access Denied</Message></Error>```

After looking more closely, the issue appears to happen only for files 1972, 1973, and 1974. I was able to circumvent the issue with the following code.

REPO_ID = "andropar/relaion2b-natural-embeddings"
BAD_FILES = [
    "*relaion2b_features_01972.parquet",
    "*relaion2b_features_01973.parquet",
    "*relaion2b_features_01974.parquet",
]
local_dir = snapshot_download(
    repo_id=REPO_ID,
    repo_type="dataset",
    resume_download=True,
    ignore_patterns=BAD_FILES,
    max_workers=8,
    token=True, 
)

Sign up or log in to comment