HumanSignal / label-studio

Label Studio is a multi-type data labeling and annotation tool with standardized output format
https://labelstud.io
Apache License 2.0
18.44k stars 2.32k forks source link

Can't annotate with docker: $undefined$ value #5957

Open diramazioni opened 4 months ago

diramazioni commented 4 months ago

Describe the bug Using the docker image I get an error of $undefined$ value

To Reproduce Steps to reproduce the behavior:

  1. chmod 777 mydata (this is a workaround otherwise it gives me PermissionError: [Errno 13] Permission denied: '/label-studio/data/media' on File "/label-studio/label_studio/core/settings/base.py", line 423, in os.makedirs(MEDIA_ROOT, exist_ok=True)
  2. docker run -it -p 8080:8080 -v $(pwd)/mydata:/label-studio/data heartexlabs/label-studio:latest
  3. goto http://0.0.0.0:8080
  4. Create a new project and upload some images
  5. goto Setup and select as a template Object detection with bounding box
  6. goto Labeling interface Use image from -> Imported files
  7. the error on the page is
    
    There was an issue loading URL from $undefined$ value

Things to look out for:

URL is valid
URL scheme matches the service scheme, i.e. https and https
The static server has wide-open CORS, [more on that here](https://labelstud.io/guide/storage.html#Troubleshoot-CORS-and-access-problems)

Technical description: URL: undefined$

on the log I see:

[2024-06-07 17:18:22,433] [django.request::log_response::224] [WARNING] Not Found: /projects/1/undefined$ [2024-06-07 17:18:22,433] [django.request::log_response::224] [WARNING] Not Found: /projects/1/undefined$ [2024-06-07 17:18:22,433] [django.server::log_message::161] [WARNING] "GET /projects/1/undefined$ HTTP/1.1" 404 1462 [2024-06-07 17:18:22,433] [django.server::log_message::161] [WARNING] "GET /projects/1/undefined$ HTTP/1.1" 404 1462


![immagine](https://github.com/HumanSignal/label-studio/assets/682046/de1a20d0-48fc-47c8-90c7-8f33fa1b5d10)
sajarin commented 3 months ago

Thanks @diramazioni for the issue, does this issue happen on the latest version of LS?

88Dezmond88 commented 2 months ago

I have faced the same problem. The version is the latest LS.

ozwiz commented 3 weeks ago

I experienced the same error when I tried multi-page document annotation. I did not have this error while working with single images. The version is v1.13.1