Open ruzickap opened 6 years ago
Here is example executed with "-vvv"
[2017-12-15 15:36:23] upload.INFO: [file] upload "20171028-163226.jpg" 13.37MB [] []
[file] 100.00% [###################################] 13,367,926 2.23MB/s
[2017-12-15 15:36:28] upload.INFO: [file] status: OK - ID 39040884372 [] []
[2017-12-15 15:36:28] upload.INFO: [file] add to sets ... [] []
[2017-12-15 15:36:29] upload.CRITICAL: [file] add to sets FAILED: Server error response [status code] 500 [reason phrase] Internal Server Error [url] https://api.flickr.com/services/rest/ [] []
For example this error which I got from Flickr completely stoped the uploading process:
...
...
[2017-12-15 16:21:57] upload.CRITICAL: [file] add to sets FAILED: Server error response [status code] 502 [reason phrase] Cannot find server. [url] https://api.flickr.com/services/rest/ [] []
$
In the old version this was catched by a separate logger. But this solution was too complicated. I don't know if a retry is a good idea. I don't want to stress the Flickr API. Are you expecting a retry?
My experience with Flickr API is that form time to time it gets such errors, but when you try it again (reupload the file / redo the action) it works fine.
What about retry the failed operation three times and then let flickr-cli
die with the error?
-> That should not stress Flickr API so much.
Hello.
I tried to upload some batch of images to Flickr and unfortunately I got API error (which happens from time to time), but the
flickr-cli
didn't repeat the upload.Here is the error log:
It means that the file which ended with error
500
was not uploaded andflickr-cli
didn't repeat the upload process.It would be nice if
flickr-cli
can repeat the failed uploads.Thank you...