Closed ylexus closed 2 years ago
I believe this should be fixed now as part of the recent changes to uploads that were part of release 1.7.0.
I'm closing this issue, but please reopen and let us know if you are still seeing this after upgrading to the latest version. Thanks!
Using google-photos-library-client 1.4.0. The following code:
if passed a zero-length file (in my the file name was DSC_4791.NEF, if that makes any difference), results in
The problem here is that the wrapping ApiException.isRetryable() is set to true, although this is a permanent non recoverable failure, so it's impossible for the client code to rely on this flag to determine whether to retry or not:
The only workaround is to analyse the text of the exception and act on that, which is brittle.
Related to https://github.com/ylexus/jiotty-photos-uploader/issues/11.