I’m using mapillary_tools for nearly all my uploads for a while now. With a lot of images to upload, I have a few simple scripts to handle this - in particular, I have a script to check upload status of image directories.
With older versions of mapillary_tools, the most reliable way I found was looking for a directory being processed, followed by “upload time” - this was printed only when all sequences had been fully uploaded.
Then, at some point (maybe when I upgraded to 0.14.0b1), output changed to show statistics even if uploading had partially failed. Now, instead of printing timing only when all sequences had been uploaded, it prints info like this:
2025-09-14 11:41:16,726 - INFO - 3 image sequences uploaded
2025-09-14 11:41:16,726 - INFO - 992.5M data in total
2025-09-14 11:41:16,727 - INFO - 992.5M data uploaded
2025-09-14 11:41:16,727 - INFO - 2217.5s upload time
That particular directory had 6 sequences.
This status output was followed by errors like this:
2025-09-14 11:41:16,727 - ERROR - Upload error: HTTPError: 400 Client Error: Bad Request for url: ``https://rupload.facebook.com/mapillary_public_uploads/mly_tools_eba…
Having seen it a few times, I did not expect it to indicate potentially large parts of the upload failing. In some cases, I had removed images, thus losing thousands of pictures.
With all this context in place - is there a reasonably simple and reliable way with the latest mapillary_tools version (0.14.4 at the time of this writing) to detect whether everything has been uploaded, or anything has failed? I’d like to gather this from the output, not rely on the exit code.
Trying to parse the number of detected sequences and then parse the number of uploaded sequences seems… very fragile.