Bug 419956 - Export errors after a certain number of photos in the 2nd pass
Summary: Export errors after a certain number of photos in the 2nd pass
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-Google (show other bugs)
Version: 7.0.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-11 13:40 UTC by alain.pouchard1410
Modified: 2023-04-29 19:37 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.1.0


Attachments
Description of operation and error (732.57 KB, application/pdf)
2020-04-11 13:40 UTC, alain.pouchard1410
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alain.pouchard1410 2020-04-11 13:40:44 UTC
Created attachment 127447 [details]
Description of operation and error

Thank you very much for your progress which in my opinion is perfectly suited.

I had an error message after several successive transfers (see my attached file). There may be a limit to the number of photos transferred in the same window

Thank you very much
Comment 1 Maik Qualmann 2020-04-12 18:35:30 UTC
Did it take more than an hour to upload the failed export?

Maik
Comment 2 Maik Qualmann 2020-05-23 17:15:12 UTC
*** Bug 421986 has been marked as a duplicate of this bug. ***
Comment 3 Maik Qualmann 2020-05-23 17:21:07 UTC
You haven't answered my question from comment 1 yet. We cannot help if we cannot reproduce it and questions are not answered.

Maik
Comment 4 hmueller 2020-06-07 21:11:39 UTC
Hi Maik,

I got this error message too:
  Error transferring https://photoslibrary.googleapis.com/v1/mediaItems:batchCreate - server replied: Bad Request

Uploaded only 16 pics and it took only a view seconds. I uploads and fails at the end. Album is empty after that action in Google Photos. Restarting digikam did not help. After experimenting a while it happens also if I upload only one picture. If I choose another picture it works. The difference is the picture caption. In this case I had

,3,-5 FN=0 FB = 0 outdoor = 1 ISO = 50.000000 exp=10.000000 return = 0  FM0 CR0.51 FC101111101: bfalic 1211X:zzzzzH87020gzzzzzz0 d e9 007804385f03184502ee1040 92417e389  0  029d 2528c  0  0  0  0 0 0 0 028ca1e0a1ac  179 1276a1a1a190  179 1260a1c1a1b9  178 124aa1dba1e2  178 1234a1d9a1fa  177 121ea1cba213  176 1208a19aa1ff  177 1234a156a1bf  277 123fa1bba221  276 124aa1d0a21e  276 1255a1e6a215  276 1260a1f2a206  276 1255a1f7a1f6  377 12851c85c 2595e5e 05e 0 b 04f 0 b 7 7 7 6 8 9 7 a4445787446515d4e3d3f a b2529 d e 9 b2330 b b211a5e4e3c433c2c3e432320101021271e1e b b d b1311 c c138e1388138813881388138813881388138913881388138813881388138813881388138813881388138e1388138813881388138813881388138d138813881388138b1388138813881614138813881388161413881388138816141388138813881590138813881388159013881388138815bc1388138813881389138813881388138813881388138815a613881388138815d21388138813881389138813881388138813881388138813931388138813881388138813881388138813881388138813b013881388138813881388138813881388138813881388138813881388138813881388138813881388138813881388138813881388138813881388138813881388138813881388138813881388138813881388138813881388138813881388

Produced by my smartphone camera app. If I delete this caption, upload works ...
Comment 5 Maik Qualmann 2020-06-08 05:39:11 UTC
Can you please send me an image with this caption?

Maik
Comment 6 Maik Qualmann 2020-06-08 11:23:54 UTC
Thank you for the test image. I can upload the image to Google Photos without any problems. The image contains a binary caption/comment and is output by Exiv2 as a "binary comment" (bug 422240).

Maik
Comment 7 hmueller 2020-06-08 15:03:25 UTC
I just downloaded the picture from my email and imported it to digikam again. Same issue: Error transferring https://photoslibrary.googleapis.com/v1/mediaItems:batchCreate - server replied: Bad Request

I use digikam 7.0.0-rc May 29 2020
MacOS 10.15.4
KDE Frameworks 5.70.0
Qt 5.14.2 (built against 5.14.2)
The cocoa windowing system
Comment 8 Maik Qualmann 2020-06-08 15:28:42 UTC
You're not trying to upload to an album locked for digiKam (lock icon instead of folder icon)?

Maik
Comment 9 hmueller 2020-06-08 16:58:45 UTC
No, I see the folder icon. It is not locked. Using the Image Editor changes the caption/comment to "binary comment" and upload works. I do not understand why it works for you and does not on my system. Updated to latest digikam also.
Comment 10 Maik Qualmann 2020-06-08 18:21:44 UTC
Ok, that's interesting. I tested it with the Windows version this afternoon. There Exiv2 decodes it as a "binary comment". Here on Linux, the content is displayed as text and hex numbers. And the upload fails. Either some characters break the encoding, or the content is too long for Google. I have a look at it.

Maik
Comment 11 hmueller 2020-06-08 18:43:51 UTC
Maybe this bug is different from Alains ...
Comment 12 Maik Qualmann 2020-06-08 19:02:55 UTC
Git commit d209aa4627e77b8c0edc72e1094d023af20f614c by Maik Qualmann.
Committed on 08/06/2020 at 19:00.
Pushed by mqualmann into branch 'master'.

limit the Google Photos title to 1000 characters

M  +1    -0    core/dplugins/generic/webservices/google/gswindow.cpp

https://invent.kde.org/graphics/digikam/commit/d209aa4627e77b8c0edc72e1094d023af20f614c
Comment 13 hmueller 2020-06-11 18:53:15 UTC
Ok, this fixes at least my problem ...
Thanks a lot Maik!
Comment 14 caulier.gilles 2020-08-01 07:46:54 UTC
digiKam 7.0.0 stable release is now published:

https://www.digikam.org/news/2020-07-19-7.0.0_release_announcement/

We need a fresh feedback on this file using this version.

Thanks in advance

Gilles Caulier
Comment 15 Maik Qualmann 2021-04-10 14:06:30 UTC
*** Bug 435573 has been marked as a duplicate of this bug. ***
Comment 16 alain.pouchard1410 2021-04-10 17:05:40 UTC
Hello, indeed there was well duplicate. Sorry I hadn't found it. In 
addition to information, I manage to pass a lot of photos before the 
bug. I tried to attach a fairly long log file. I am available to you if 
you want me to redo a log file. I will have to find out how to respond 
in the bug description, for now I do not know. Thank you. Kind regards

Le 10/04/2021 à 16:06, Maik Qualmann a écrit :
> https://bugs.kde.org/show_bug.cgi?id=419956
>
> --- Comment #15 from Maik Qualmann <metzpinguin@gmail.com> ---
> *** Bug 435573 has been marked as a duplicate of this bug. ***
>
Comment 17 alain.pouchard1410 2021-04-10 17:06:45 UTC
Hello, indeed there was well duplicate. Sorry I hadn't found it. In addition to information, I manage to pass a lot of photos before the bug. I tried to attach a fairly long log file. I am available to you if you want me to redo a log file. I will have to find out how to respond in the bug description, for now I do not know. Thank you. Kind regards
Comment 18 Maik Qualmann 2022-06-20 17:11:07 UTC
Git commit 979c3f318fea3d4b14d525c2d45d10f801beccd9 by Maik Qualmann.
Committed on 20/06/2022 at 17:09.
Pushed by mqualmann into branch 'master'.

port Google Export Tool to QOAuth2AuthorizationCodeFlow
Related: bug 440156, bug 435384, bug 415365, bug 396671, bug 411521
FIXED-IN: 8.0.0

M  +3    -1    NEWS
M  +2    -1    core/cmake/macros/MacroDPlugins.cmake
M  +1    -0    core/cmake/rules/RulesQtFramework.cmake
M  +2    -1    core/dplugins/generic/webservices/google/CMakeLists.txt
M  +11   -31   core/dplugins/generic/webservices/google/gdrive/gdtalker.cpp
M  +35   -63   core/dplugins/generic/webservices/google/gphoto/gptalker.cpp
M  +77   -83   core/dplugins/generic/webservices/google/gstalkerbase.cpp
M  +8    -9    core/dplugins/generic/webservices/google/gstalkerbase.h
M  +44   -1    core/libs/dplugins/webservices/wstoolutils.cpp
M  +10   -0    core/libs/dplugins/webservices/wstoolutils.h

https://invent.kde.org/graphics/digikam/commit/979c3f318fea3d4b14d525c2d45d10f801beccd9
Comment 19 caulier.gilles 2023-04-29 19:37:44 UTC
Fixed with commit from comment #18