https://bugs.kde.org/show_bug.cgi?id=391186

            Bug ID: 391186
           Summary: Access token expires/invalidates after performing a
                    few file operations
           Product: kio-gdrive
           Version: 1.2.0
          Platform: Neon Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: elvis.angelac...@kde.org
          Reporter: yst...@posteo.net
  Target Milestone: ---

After a few minutes of successful use, Kio-gdrive suddenly refuses to open any
file present on Drive. And when accessed from Dolphin→Networks→Google
Drive→"Drive Account" gives "Unknown error".

Steps to reproduce: 

1) Authenticate a new account (System settings→Online
accounts→Create→Google→Enter credentials and accept access)
2) Success notification pops up above system tray, with a nice button to Open
the Drive folder
3) Press Open folder in the notification
4) Open a few files (I opened two-three PDF files)
5) The first files open successfully
6) When opening the third or so file, it opens with an error. Kio-gdrive stops
working at all with the Drive account.

I saw from another report that the developer wanted the output of kdeinit5, so
I ran kdeinit5 after I had authenticated the Google account but before
kio-gdrive failed. Here's the output:

 kdeinit5: Got EXT_EXEC '/usr/bin/okular' from launcher.
kdeinit5: preparing to launch '/usr/bin/okular'
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/file.so'
from launcher.
kdeinit5: preparing to launch
'/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/file.so'
kdeinit5: Got EXEC_NEW
'/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/gdrive.so' from launcher.
kdeinit5: preparing to launch
'/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/gdrive.so'
"userActionFinished error: 10"
org.kde.kgapi: Queued
QUrl("https://www.googleapis.com/drive/v2/files/0B5Ns9h6gbAsLYWVlbHNub3hEUEU?fields=kind,id,mimeType,downloadUrl,exportLinks";)
org.kde.kgapi: KGAPI2::Drive::FileFetchJob(0x7ffc6f4ae5d0) Dispatching request
to
QUrl("https://www.googleapis.com/drive/v2/files/0B5Ns9h6gbAsLYWVlbHNub3hEUEU?fields=kind,id,mimeType,downloadUrl,exportLinks";)
org.kde.kgapi.raw: ""
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so'
from launcher.
kdeinit5: preparing to launch
'/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so'
org.kde.kgapi: Received reply from
QUrl("https://www.googleapis.com/drive/v2/files/0B5Ns9h6gbAsLYWVlbHNub3hEUEU?fields=kind,id,mimeType,downloadUrl,exportLinks";)
org.kde.kgapi: Status code:  401
org.kde.kgapi.raw: "{\n \"error\": {\n  \"errors\": [\n   {\n    \"domain\":
\"global\",\n    \"reason\": \"authError\",\n    \"message\": \"Invalid
Credentials\",\n    \"locationType\": \"header\",\n    \"location\":
\"Authorization\"\n   }\n  ],\n  \"code\": 401,\n  \"message\": \"Invalid
Credentials\"\n }\n}\n"
org.kde.kgapi: Unauthorized. Access token has expired or is invalid.
org.kde.kgapi: 
kf5.kio.gdrive: virtual KGAPI2::AccountPtr
KAccountsManager::refreshAccount(const AccountPtr&) not implemented.
kf5.kio.core: error() called twice! Please fix the "kio_gdrive" KIO slave
kdeinit5: PID 9738 terminated.
kdeinit5: PID 9754 terminated.
kdeinit5: PID 9732 terminated.
kdeinit5: PID 9737 terminated.
kdeinit5: Got EXT_EXEC '/usr/bin/gwenview' from launcher.
kdeinit5: preparing to launch '/usr/bin/gwenview'
kdeinit5: Got EXEC_NEW
'/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/gdrive.so' from launcher.
kdeinit5: preparing to launch
'/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/gdrive.so'
"userActionFinished error: 10"
org.kde.kgapi: Queued
QUrl("https://www.googleapis.com/drive/v2/files/0B5Ns9h6gbAsLbzRYdnBUMkZUNm8";)
org.kde.kgapi: KGAPI2::Drive::FileFetchJob(0x7ffc6f4ae600) Dispatching request
to
QUrl("https://www.googleapis.com/drive/v2/files/0B5Ns9h6gbAsLbzRYdnBUMkZUNm8";)
org.kde.kgapi.raw: ""
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so'
from launcher.
kdeinit5: preparing to launch
'/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so'
org.kde.kgapi: Received reply from
QUrl("https://www.googleapis.com/drive/v2/files/0B5Ns9h6gbAsLbzRYdnBUMkZUNm8";)
org.kde.kgapi: Status code:  401
org.kde.kgapi.raw: "{\n \"error\": {\n  \"errors\": [\n   {\n    \"domain\":
\"global\",\n    \"reason\": \"authError\",\n    \"message\": \"Invalid
Credentials\",\n    \"locationType\": \"header\",\n    \"location\":
\"Authorization\"\n   }\n  ],\n  \"code\": 401,\n  \"message\": \"Invalid
Credentials\"\n }\n}\n"
org.kde.kgapi: Unauthorized. Access token has expired or is invalid.
org.kde.kgapi: 
kf5.kio.gdrive: virtual KGAPI2::AccountPtr
KAccountsManager::refreshAccount(const AccountPtr&) not implemented.
kf5.kio.core: error() called twice! Please fix the "kio_gdrive" KIO slave
org.kde.kgapi: Queued
QUrl("https://www.googleapis.com/drive/v2/about?includeSubscribed=true";)
org.kde.kgapi: KGAPI2::Drive::AboutFetchJob(0x7ffc6f4ae080) Dispatching request
to QUrl("https://www.googleapis.com/drive/v2/about?includeSubscribed=true";)
org.kde.kgapi.raw: ""
org.kde.kgapi: Received reply from
QUrl("https://www.googleapis.com/drive/v2/about?includeSubscribed=true";)
org.kde.kgapi: Status code:  401
org.kde.kgapi.raw: "{\n \"error\": {\n  \"errors\": [\n   {\n    \"domain\":
\"global\",\n    \"reason\": \"authError\",\n    \"message\": \"Invalid
Credentials\",\n    \"locationType\": \"header\",\n    \"location\":
\"Authorization\"\n   }\n  ],\n  \"code\": 401,\n  \"message\": \"Invalid
Credentials\"\n }\n}\n"
org.kde.kgapi: Unauthorized. Access token has expired or is invalid.
org.kde.kgapi: 
kf5.kio.gdrive: virtual KGAPI2::AccountPtr
KAccountsManager::refreshAccount(const AccountPtr&) not implemented.
kf5.kio.core: error() called twice! Please fix the "kio_gdrive" KIO slave
org.kde.kgapi: Queued
QUrl("https://www.googleapis.com/drive/v2/files/0B5Ns9h6gbAsLbzRYdnBUMkZUNm8";)
org.kde.kgapi: KGAPI2::Drive::FileFetchJob(0x7ffc6f4ae600) Dispatching request
to
QUrl("https://www.googleapis.com/drive/v2/files/0B5Ns9h6gbAsLbzRYdnBUMkZUNm8";)
org.kde.kgapi.raw: ""
org.kde.kgapi: Received reply from
QUrl("https://www.googleapis.com/drive/v2/files/0B5Ns9h6gbAsLbzRYdnBUMkZUNm8";)
org.kde.kgapi: Status code:  401
org.kde.kgapi.raw: "{\n \"error\": {\n  \"errors\": [\n   {\n    \"domain\":
\"global\",\n    \"reason\": \"authError\",\n    \"message\": \"Invalid
Credentials\",\n    \"locationType\": \"header\",\n    \"location\":
\"Authorization\"\n   }\n  ],\n  \"code\": 401,\n  \"message\": \"Invalid
Credentials\"\n }\n}\n"
org.kde.kgapi: Unauthorized. Access token has expired or is invalid.
org.kde.kgapi: 
kf5.kio.gdrive: virtual KGAPI2::AccountPtr
KAccountsManager::refreshAccount(const AccountPtr&) not implemented.
kf5.kio.core: error() called twice! Please fix the "kio_gdrive" KIO slave
org.kde.kgapi: Queued
QUrl("https://www.googleapis.com/drive/v2/files/0B5Ns9h6gbAsLbzRYdnBUMkZUNm8?fields=kind,id,mimeType,downloadUrl,exportLinks";)
org.kde.kgapi: KGAPI2::Drive::FileFetchJob(0x7ffc6f4ae5d0) Dispatching request
to
QUrl("https://www.googleapis.com/drive/v2/files/0B5Ns9h6gbAsLbzRYdnBUMkZUNm8?fields=kind,id,mimeType,downloadUrl,exportLinks";)
org.kde.kgapi.raw: ""
org.kde.kgapi: Received reply from
QUrl("https://www.googleapis.com/drive/v2/files/0B5Ns9h6gbAsLbzRYdnBUMkZUNm8?fields=kind,id,mimeType,downloadUrl,exportLinks";)
org.kde.kgapi: Status code:  401
org.kde.kgapi.raw: "{\n \"error\": {\n  \"errors\": [\n   {\n    \"domain\":
\"global\",\n    \"reason\": \"authError\",\n    \"message\": \"Invalid
Credentials\",\n    \"locationType\": \"header\",\n    \"location\":
\"Authorization\"\n   }\n  ],\n  \"code\": 401,\n  \"message\": \"Invalid
Credentials\"\n }\n}\n"
org.kde.kgapi: Unauthorized. Access token has expired or is invalid.
org.kde.kgapi: 
kf5.kio.gdrive: virtual KGAPI2::AccountPtr
KAccountsManager::refreshAccount(const AccountPtr&) not implemented.
kf5.kio.core: error() called twice! Please fix the "kio_gdrive" KIO slave
kdeinit5: PID 9763 terminated.
kdeinit5: PID 9767 terminated.
kdeinit5: PID 9776 terminated.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to