question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Importing Data from Dataset URL results in "Validation error(undefined)"

See original GitHub issue

Describe 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
coldtomatojuicecommented, Jun 4, 2021

@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

0reactions
laynrcommented, Jun 7, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Data Import error message reference - Analytics Help
Message Meaning So... Empty column header at column number X. The upload file is missing a column header. Ed... Multiple errors occurred: List of multiple...
Read more >
6 Common CSV Import Errors and How to Fix Them - Flatfile
The import error can be caused by limits set by the program using the file or the amount of available memory on the...
Read more >
Undefined validation does not work-angular 11 - Stack Overflow
movilPhone) but I got a error message: Cannot read property 'movilPhone' of undefined. Then I tried with if (this.customer.movilPhone !==
Read more >
Resolve validation errors - Azure DevOps Services
Fix errors reported upon importing a process to support customization of tracking work in Azure DevOps Services.
Read more >
Validation with Mapping Errors - Oracle Help Center
Administering Data Management for Oracle Enterprise Performance Management Cloud ... of dimension members to source systems can produce validation errors.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found