Bug 487478 - "Bad request" is unable to display any files error code 400
Summary: "Bad request" is unable to display any files error code 400
Status: RESOLVED DUPLICATE of bug 480063
Alias: None
Product: kio-gdrive
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Elvis Angelaccio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-24 13:10 UTC by Maurizio
Modified: 2024-10-09 22:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maurizio 2024-05-24 13:10:13 UTC
SUMMARY
When I tried gdrive:/ in dolphin, I get the following error:
qt.svg: Could not create image from "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAYAAABS3GwHAAAgAElEQVR42u29eXxU5fU/fs5z7+wz"
org.kde.kgapi: Bad request, Google replied ' "{\n  \"error\": {\n    \"code\": 400,\n    \"message\": \"Invalid field selection etag,kind,nextLink,nextPageToken,selfLink,items(,,,,,,,,labels,exportLinks,lastViewedByMeDate,alternateLink,kind)\",\n    \"errors\": [\n      {\n        \"message\": \"Invalid field selection etag,kind,nextLink,nextPageToken,selfLink,items(,,,,,,,,labels,exportLinks,lastViewedByMeDate,alternateLink,kind)\",\n        \"domain\": \"global\",\n        \"reason\": \"invalidParameter\",\n        \"location\": \"fields\",\n        \"locationType\": \"parameter\"\n      }\n    ]\n  }\n}\n" '
kf.kio.core: UDSEntry for '.' not found, creating a default one. Please fix the "kio_gdrive" KIO worker.


STEPS TO REPRODUCE
1. install kio_gdrive
2. add a google drive account to kde
3. open dolphin and write gdrive:/ in the location
4. select your account

OBSERVED RESULT
it shows Bad Request in dolphin and in the logs I have

org.kde.kgapi: Bad request, Google replied ' "{\n  \"error\": {\n    \"code\": 400,\n    \"message\": \"Invalid field selection etag,kind,nextLink,nextPageToken,selfLink,items(,,,,,,,,labels,exportLinks,lastViewedByMeDate,alternateLink,kind)\",\n    \"errors\": [\n      {\n        \"message\": \"Invalid field selection etag,kind,nextLink,nextPageToken,selfLink,items(,,,,,,,,labels,exportLinks,lastViewedByMeDate,alternateLink,kind)\",\n        \"domain\": \"global\",\n        \"reason\": \"invalidParameter\",\n        \"location\": \"fields\",\n        \"locationType\": \"parameter\"\n      }\n    ]\n  }\n}\n" '
kf.kio.core: UDSEntry for '.' not found, creating a default one. Please fix the "kio_gdrive" KIO worker.


EXPECTED RESULT
Show the content of the google drive

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Tuxedo OS 3
(available in About System)
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.5.0-10036-tuxedo (64-bit)
X11

ADDITIONAL INFORMATION
Comment 1 Elvis Angelaccio 2024-10-09 22:15:32 UTC
*** This bug has been marked as a duplicate of bug 480063 ***