HTTP 422 code has incorrect json message when updating annotation #1066
AngusLaurenson
started this conversation in
General
Replies: 1 comment
-
The error actually means that there are too few points for the rectangle. BIIGLE requires four distinct points for rectangles. In your example all four points are identical, hence the validation error. I'll create a new issue to improve the error message (either "too few", "too many" or "invalid", #1067). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a script to automatically update all the images in my project 3520.
It loops through each volume, and for each image, it concurrently updates the annotations. This works fine but it has encountered an error for an annotation 'id': 26692961, associated with 'image_id': 4981648.
The response states that there are too many values for a rectangle. There are eight, which is the correct number as it is two points per corner.
I'm a bit stumped now because the error code seems wrong - so I'm opening this issue.
Beta Was this translation helpful? Give feedback.
All reactions