idealy rclone should refresh the token using refresh_token on expiry. This does not seem to case for me for google drive.
it has been mentioned that rclone refreshs token automatically.
is there something wrong the way, i am configuring rclone.
The regular gdrive apis is working fine for days and the token is getting refreshed automatically on expiry. on the calll
The issue is bit different, refresh token is still valid but access token is invalid.
we should be able to generate newer access token from refresh token.
I am refer to this link.
developers.google. com/identity/protocols/oauth2/web-server#refresh
(don't have access to post link, please add https)
logs for reference
2021/02/09 14:16:46 DEBUG : rclone: Version "v1.54.0" starting with parameters ["./rclone" "ls" "hitano:" "-vv"]
2021/02/09 14:16:46 DEBUG : Using config file from "/Users/ats/Downloads/rclone-v1.54.0-osx-amd64/rclone.conf"
2021/02/09 14:16:46 DEBUG : Creating backend with remote "hitano:"
2021/02/09 14:16:47 Failed to create file system for "hitano:": couldn't find root directory ID: googleapi: Error 401: Invalid Credentials, authError
so in rclone.conf, if i manually update the access_token , it works , but after 60 mins when access token is expired. it start throw above error.
if my refresh_token is valid , shouldn't the access token be updated automatically on expiry.
Is there something wrong , how we are configuring rclone?
Is rclone config reconnect yourconfig: needed , if yes, is there any other way ,other than using interactive cli,
i have python script where i want to do this. i am using this lib