Replies: 5 comments
-
|
This OAuth error usually occurs because rclone is having trouble creating the OAuth client for Google Drive authentication. Here are some troubleshooting steps: Try these solutions:
If the problem persists, share your rclone config structure (without sensitive data) and we can debug further! |
Beta Was this translation helpful? Give feedback.
-
|
[mygdrive] this is the exact content structure of my rclone config as well as content and structure of the Github Secret I stored on my repository with the name "RCLONE_CONF". |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
File transfer google Gift |
Beta Was this translation helpful? Give feedback.
-
|
Hey, I ran into this exact error before while using rclone with GitHub Actions, and it usually points to the OAuth credentials not being parsed as valid JSON. That invalid character looking for beginning of object key string message typically appears when the service account or client JSON is malformed, truncated, or incorrectly injected into the workflow. A few things worth checking: First, make sure your client_secret.json or service account JSON is valid. Open it locally and confirm it starts with { and has no extra characters, quotes, or formatting issues. If you are storing the JSON in GitHub Secrets, do not paste it raw with line breaks. Instead: • Base64 encode the JSON file Example:
Then point rclone to that file. Also verify: • No extra spaces or quotes around the secret value Another common cause is trying to pass JSON inline as a string. rclone expects a valid file, not a partially escaped string. Since the error happens during OAuth client creation, fixing the JSON formatting usually resolves it immediately. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Why are you starting this discussion?
Question
What GitHub Actions topic or product is this about?
General
Discussion Details
Failed to create file system for "mygdrive:StreamArchives/": drive: failed when making oauth client: failed to create oauth client: invalid character 'a' looking for beginning of object key string.
I am looking into automating the archival of various video streams by capturing them in real-time and uploading to Google Drive as the last step. I have rclone linking my Action runner to my Google Drive. But the aforementioned error keeps occurring.
I have tried attaching my own Client ID & Secret and also rclone's default Client ID & Secret. Yet this issue persists and upload to Google Drive fails before it even begins.
Beta Was this translation helpful? Give feedback.
All reactions