HumanSignal / HumanSignal/label-studio

Accessing S3 files in labeling tasks yields network error

Open
#6,495 5 comments 0 reactions 0 assignees View on GitHub
community_issue community_needs-information
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

Hello, I have created a Project for labeling data, my task json file contains an s3 url, I expect the UI to download that file and display it for the annotator to start annotating. However I'm getting this error:

![image](https://github.com/user-attachments/assets/c3d856c4-746d-4619-aa13-693be67d336b)

However clicking on the link works, as it opens the file contents in a new tab, so I know that my s3 configuration is valid.
I also use s3 for persistence.

Here is my labeling interface code:

```html



```

And my task.json

```json
{
"data": {
"text": "s3://textfiles/file.txt"
}
}
```

I don't see any errors on the label-studio log. On the browser console I have this error:

```
Failed to load '[https://label.wip/tasks/55/presign/?fileuri=czM6Ly90ZXh0ZmlsZXMvZmlsZS50eHQ='](https://label.wip/tasks/55/presign/?fileuri=czM6Ly90ZXh0ZmlsZXMvZmlsZS50eHQ=%27). A ServiceWorker passed a promise to FetchEvent.respondWith() that rejected with 'TypeError: NetworkError when attempting to fetch resource.'.
```
On the network tab the request doesn't get a response, however I can see the error NS_ERROR_INTERCEPTION_FAILED.
I am using label studio and minio S3 in Kubernetes via heartex chart, so the S3 url I've supplied is the ingress hostname, since I understand that all queries to S3 are done by the client on the browser.

Label-Studio v1.13.1

Does anyone have any idea what I'm doing wrong?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.