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
Using the example code get_annotations.py I am seeing repeatable dump failures for about 50% of the annotations in a current project, while the others dump just fine.
The errors seem to always be on the masks (the crops download fine), and are either:
500 Internal Server Error
502 Bad Gateway
#mask fails with Bad Gateway:
[2022-10-11 08:48:42,087][INFO] [GET] http://redacted.computer.name/api/userannotation/1539856/mask.jpg | 502 Bad Gateway
Traceback (most recent call last):
File "redacted/get_annotations.py", line 139, in
annotation.dump(dest_pattern=os.path.join(params.download_path, "{project}", "mask", "{id}.jpg"), mask=True, max_size=512)
File "redacted/cytomine/models/annotation.py", line 133, in dump
files = generic_image_dump(dest_pattern, self, dump_url_fn, override=override, **parameters)
File "redacted/cytomine/models/_utilities/dump.py", line 62, in generic_image_dump
raise DumpError("Could not dump the image.")
cytomine.models._utilities.dump.DumpError: Could not dump the image.
I am using Cytomine 3.0.0 , Python 3.9.7
Any thoughts on what might be wrong? Crops download fine for all annotations, even the half that the masks fail on.
Thanks!
Dennis
The text was updated successfully, but these errors were encountered:
Hello,
Using the example code get_annotations.py I am seeing repeatable dump failures for about 50% of the annotations in a current project, while the others dump just fine.
The errors seem to always be on the masks (the crops download fine), and are either:
500 Internal Server Error
502 Bad Gateway
Here is an example:
#crop downloads successfully:
[2022-10-11 08:48:42,065][INFO] File downloaded successfully from http://redacted.computer.name/api/userannotation/1539856/crop.jpg with parameters {'maxSize': 512, 'bits': 8, 'complete': True}
#mask fails with Bad Gateway:
[2022-10-11 08:48:42,087][INFO] [GET] http://redacted.computer.name/api/userannotation/1539856/mask.jpg | 502 Bad Gateway
Traceback (most recent call last):
File "redacted/get_annotations.py", line 139, in
annotation.dump(dest_pattern=os.path.join(params.download_path, "{project}", "mask", "{id}.jpg"), mask=True, max_size=512)
File "redacted/cytomine/models/annotation.py", line 133, in dump
files = generic_image_dump(dest_pattern, self, dump_url_fn, override=override, **parameters)
File "redacted/cytomine/models/_utilities/dump.py", line 62, in generic_image_dump
raise DumpError("Could not dump the image.")
cytomine.models._utilities.dump.DumpError: Could not dump the image.
I am using Cytomine 3.0.0 , Python 3.9.7
Any thoughts on what might be wrong? Crops download fine for all annotations, even the half that the masks fail on.
Thanks!
Dennis
The text was updated successfully, but these errors were encountered: