Bug 491314

Summary: Cannot import from Google photos
Product: [Applications] digikam Reporter: rob.dyck
Component: Plugin-WebService-GoogleAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version: 8.3.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description rob.dyck 2024-08-05 17:15:53 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
After logging into my Google account from Digikam ( import from Google Photos ), down load fails. Same for Showfoto.


STEPS TO REPRODUCE
1. Start Digikam
2. Click on Import and select Google photos 
3. Choose a Google account
4. Verify with Google and allow DigiKam to access Google photos
5. Click on Download

OBSERVED RESULT
Error message from Google


EXPECTED RESULT
See my photos


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
The erro message from Google --
{
  "error": {
    "code": 401,
    "message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
    "status": "UNAUTHENTICATED",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.ErrorInfo",
        "reason": "CREDENTIALS_MISSING",
        "domain": "googleapis.com",
        "metadata": {
          "method": "google.photos.library.v1.PhotosLibrary.ListAlbums",
          "service": "photoslibrary.googleapis.com"
        }
      }
    ]
  }
}
Comment 1 Maik Qualmann 2024-08-05 18:33:39 UTC

*** This bug has been marked as a duplicate of bug 490397 ***
Comment 2 Maik Qualmann 2024-08-05 18:40:13 UTC
See the older Bug 472494 for the story.
I haven't yet written an appeal against the blocking of our API key. I can't ask for our API key to be unlocked every 2 months. We need to know the cause. One thing could be the import tool, Google might not like the download of images. It could also be abused by users. So I'll first remove the import as a test. And I won't save the login token anymore, so you have to log in again every time.
We're just groping in the dark, unfortunately as a developer you only get AI-generated answers that are completely useless.

Maik