huggingface / dataset-viewer

Backend that powers the dataset viewer on Hugging Face dataset pages through a public API.
https://huggingface.co/docs/dataset-viewer
Apache License 2.0
693 stars 77 forks source link

Gated datasets without authentication header return 404 #1656

Open severo opened 1 year ago

severo commented 1 year ago

It should return 401 (Unauthorized).

See for example https://datasets-server.huggingface.co/splits?dataset=severo/bigcode/the-stack from a private window.

Or https://datasets-server.huggingface.co/splits?dataset=JosephusCheung/GuanacoDataset (if you have not access to it), while passing credentials (opening it while logged in Hugging Face will pass your cookie)

severo commented 1 year ago

When processing this issue, try to also test authenticated against authorized, and add examples in the openapi spec if needed