Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid\Unauthorized #889

Open
Rais93 opened this issue Oct 2, 2024 · 1 comment
Open

Invalid\Unauthorized #889

Rais93 opened this issue Oct 2, 2024 · 1 comment

Comments

@Rais93
Copy link

Rais93 commented Oct 2, 2024

Hi,

first of all, thanks for the tool.

i'm having this response from terminal:

Verification code retrieved correctly: XXXXXXXXXXXXX.
Cannot retrieve auth tokens.
Failure("Unexpected error response: {\n  \"error\": \"invalid_client\",\n  \"error_description\": \"Unauthorized\"\n}")

But i'm receiving Success! response from google.

Doesn't seem to match any issue here. Any help?

@davwoo
Copy link

davwoo commented Nov 7, 2024

I was getting the exact same error yesterday with google-drive-ocamlfuse version 0.7.32 running under Ubuntu 24.04.1 LTS Noble Numbat on an old Intel MacBook Air.

I tried reinstalling google-drive-ocamlfuse from the online repository and also directly from the downloaded deb package, but the "Failed to retrieve auth tokens" error persisted.

I do, however, have the same google-drive-ocamlfuse/Ubuntu combination successfully running on an old HP laptop so, after running the authorization command in debug mode and looking at the log files, I suspected it might be a settings problem at Google's end. However, when I looked, the Google Oauth credentials appeared the same for both instances as far as I could see.

Nonetheless, I went into Google, deleted the Oauth credentials and recreated them again, copied the new ID and secret into the google-drive-ocamlfuse authorization command and the access token was retrieved correctly.

Note: You'll probably need to rm -rf ~/.gdfuse before rerunning the authorization command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants