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

Can't annotate with docker: $undefined$ value

Open diramazioni opened this issue 1 year ago • 4 comments

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$](http://0.0.0.0:8080/projects/1/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

diramazioni avatar Jun 07 '24 17:06 diramazioni

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

sajarin avatar Jun 21 '24 11:06 sajarin

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

88Dezmond88 avatar Jul 14 '24 07:07 88Dezmond88

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

ozwiz avatar Sep 15 '24 22:09 ozwiz

The same error: OS: macOS 15.0.1 label-studio 1.13.1

mzhen77 avatar Oct 11 '24 23:10 mzhen77