label-studio icon indicating copy to clipboard operation
label-studio copied to clipboard

Get list of uploaded files using API returns empty list

Open RaymondNg0054 opened this issue 3 years ago • 1 comments

Describe the bug When using the Label Studio API's "get file list" function it returns an empty list, even though there are uploaded files in Label Studio. https://labelstud.io/api#operation/api_projects_file-uploads_list

To Reproduce Steps to reproduce the behavior:

  1. curl -X GET https://URL/api/projects/1/file-uploads -H 'Authorization: Token TOKEN'

Expected behavior I expect a list of the uploaded file names to show up.

Screenshots If applicable, add screenshots to help explain your problem. Screen Shot 2022-08-01 at 11 35 40 AM

Environment (please complete the following information):

  • OS: MacOS
  • Label Studio Version v1.5.0post0

RaymondNg0054 avatar Aug 01 '22 18:08 RaymondNg0054

I am experiencing the same issue where I receive an empty list upon calling the api/projects/2/file-uploads endpoint. I receive this issue when calling it with curl and also when using the Python SDK. OS: MacOS Label Studio Version: v1.5.0

noahlibby17 avatar Aug 03 '22 16:08 noahlibby17