You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When one annotation in an AnnotationCollection makes the upload fails, the server returns an 206 HTTP response (partial content). The client handles this as an error but fails to log the message as there is no error field in the returned json. This results in an exception being raised.
The text was updated successfully, but these errors were encountered:
waliens
changed the title
Partial upload of AnnotationCollaction makes client crash
Partial upload of AnnotationCollection makes client crash
Dec 18, 2018
Beyond the bug, which should be the appropriate behavior when the server returns a 206 HTTP response ? Log an info message for correctly added objects, and an error message for others ?
By the way the response for multiple adds in the same request should be definitely improved in Cytomine-core.
I would say yes for logging the successes and errors !
Additionally, we could raise an exception with a failed attribute that would contain a collection with the objects that couldn't be uploaded ?
When one annotation in an
AnnotationCollection
makes the upload fails, the server returns an 206 HTTP response (partial content). The client handles this as an error but fails to log the message as there is noerror
field in the returned json. This results in an exception being raised.See code in cytomine.py at line 346.
The text was updated successfully, but these errors were encountered: