Importing Data from Dataset URL results in "Validation error(undefined)"
See original GitHub issueDescribe the bug Can not import/take tasks from URL address when using the web form.
To Reproduce In the web form go to Create Project -> Data Import -> Type in a URL -> Add URL. Results in “Validation error(undefined)”
Cause of Bug
Add URL
results in POST request header with a content-type of mulitpart/form-data
as shown on this line of code.
This results in a Validation error(undefined)
triggered by this line of code.
This is because this line of code is expecting a content-type of application/x-www-form-urlencoded
in the POST request header.
Expected behavior Import/take tasks from URL address when using the web form.
Environment:
- Docker deployment
- Label Studio Version 1.0.2
Additional context
This can be fixed by ensuring the content-type
match.
This bug was not triggered in this test cases because the content type is hard-coded and not generated by using the web form.
When fixed please push a new “latest” Docker image and I can test.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:7 (4 by maintainers)
@makseq In my case, yes, it is ok with a correct url (latest version docker image / k8s deployment) @MahimaBarot do you deploy the latest version? I got the error with correct url on 1.0.1 version
@makseq @MahimaBarot @coldtomatojuice @niklub I confirm that the latest docker image (https://hub.docker.com/layers/heartexlabs/label-studio/latest/images/sha256-c151d4b70dcd70ec864c9226eb42fd276a5e41eb0df690111e74387c911aca22) allows upload by URL. Thank you! Close issue/bug as desired.