We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI shows type in generated labels but API and CLI expect input_type as in the swagger doc.
type
input_type
I created the label in the UI and copied the generated JSON. Manually and with the copy button.
[ { "name": "label", "attributes": [ { "name": "attr", "type": "select", "mutable": false, "values": [ "val" ] } ] } ]
Using that JSON as a string with CLI fails to create the task with 500 Server Error: Internal Server Error for url: http://localhost:8080/api/v1/tasks
500 Server Error: Internal Server Error for url: http://localhost:8080/api/v1/tasks
python cli.py --auth admin:admin --server-host localhost --server-port 8080 create test_cli share "/data/1.jpg" "/data/2.jpg" --labels "[{\"name\": \"label\",\"attributes\": [{\"name\": \"attr\",\"type\": \"select\",\"mutable\": false,\"values\": [\"val\"]}]}]"
Changing type to input_type solves it. Even after task creation using input_type the UI shows type.
The text was updated successfully, but these errors were encountered:
Hi, In my case I receive the same error both using "type" and "input_type". It just works if I remove all the attriburtes.
Sorry, something went wrong.
@arituerto
Try to use button Copy (top right corner) instead of copying by hand.
Copy
Closed with PR above
bsekachev
No branches or pull requests
UI shows
type
in generated labels but API and CLI expectinput_type
as in the swagger doc.I created the label in the UI and copied the generated JSON. Manually and with the copy button.
Using that JSON as a string with CLI fails to create the task with
500 Server Error: Internal Server Error for url: http://localhost:8080/api/v1/tasks
Changing
type
toinput_type
solves it. Even after task creation usinginput_type
the UI showstype
.The text was updated successfully, but these errors were encountered: