Publishing to Google Photos fails: "Failure communicating with https://photoslibrary.googleapis.com/v1/uploads (error code 7)"
Mandatory: Shotwell version the issue was seen with
Shotwell 0.31.2 (066fdde3)
The expected behaviour
When there is a network issue the failing upload is retried
What was actually happening
The entire upload process fails and displays the following dialog.
In the log files:
L 2148677 2020-05-25 11:06:49 [DBG] PhotosPublisher.vala:450: EVENT: uploader reports upload 62.00 percent complete.
L 2148677 2020-05-25 11:06:50 [DBG] PhotosPublisher.vala:450: EVENT: uploader reports upload 62.01 percent complete.
L 2148677 2020-05-25 11:06:50 [DBG] PhotosPublisher.vala:450: EVENT: uploader reports upload 62.02 percent complete.
L 2148677 2020-05-25 11:06:50 [DBG] PhotosPublisher.vala:450: EVENT: uploader reports upload 62.02 percent complete.
L 2148677 2020-05-25 11:06:50 [DBG] PhotosPublisher.vala:450: EVENT: uploader reports upload 62.03 percent complete.
L 2148677 2020-05-25 11:09:50 [WRN] RESTSupport.vala:219: Publishing error: Failure communicating with https://photoslibrary.googleapis.com/v1/uploads (error code 7)
L 2148677 2020-05-25 11:09:50 [WRN] RESTSupport.vala:220: response validation failed. bad response = '(null)'.
L 2148677 2020-05-25 11:09:50 [DBG] PhotosPublisher.vala:487: EVENT: uploader reports upload error = 'Failure communicating with https://photoslibrary.googleapis.com/v1/uploads (error code 7)'.
L 2148677 2020-05-25 11:09:50 [DBG] PublishingUI.vala:416: PublishingDialog: install_pane( ): invoked.
L 2148677 2020-05-25 11:09:50 [DBG] PublishingUI.vala:419: PublishingDialog: install_pane( ): a pane is already installed; removing it.
L 2148677 2020-05-25 11:09:50 [DBG] PhotosPublisher.vala:537: GooglePhotos.Publisher: stop() invoked.
So only one specific upload timed out (error code 7). The prior uploads were fine. At the very least the code should complete the mediaItem creation for the images that were successfully uploaded and not completely fail.
Steps to reproduce the issue
Try uploading many photos - between 40-50. Simulate a network failure after uploading say 30 by turning off and turning on your wireless. The upload process will pause and then fail like above.
Edited by Jens Georg