-
Notifications
You must be signed in to change notification settings - Fork 141
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
grive sync worked for a few days: now "Failed to obatain token" #335
Comments
Solution is described here: Different OAuth2 client to workaround over quota and google approval issues Google recently started to restrict access for unapproved applications: https://developers.google.com/drive/api/v3/about-auth?hl=ru Grive2 is currently awaiting approval but it seems it will take forever. Also even if they approve it the default Client ID supplied with grive may exceed quota and grive will then fail to sync. You can supply your own OAuth2 client credentials to work around these problems by following these steps:
|
Sorry, it stopped working again. Same error message:
How can I permanently fix it. |
Reopened ! |
I also tried the alias method:
But this again only worked for a few days. The problem seems to be the limited validity of a token. This is the log containing the web page response upon starting grive:
How can I fix this? Am I he only one having this issue? Maybe I made a mistake on the google developer console. |
I've got the same issue. Works for few days after syncing and after that the token seems to expire. |
Grive2 should refresh expired tokens. Do you still have this problem? |
The problem for me is the application id and the application secret expire
after a certain time.
|
I am not using grive2 anymore because of this problem. The refresh token problem persisted several times and I could not fix it without starting a fresh. Would love to use it again ... |
It is really client_id that expires? Or is it the token? |
I got this error: Failed to refresh auth token: HTTP 401, body: |
It does work again. Grive2 is verified now by Google and you do not longer need the work around with the Developer Console which had at least in my hands the issue with the token expiring. |
I could successfully sync the google-drive and it work nicely also by syncing in the background using ionotify.
However now it stopped syncing and the error messages in syslog and with grive -a --id XXX --secret YYY are as such:
Failed to obtain auth token: HTTP 400, body:
exception: /build/grive2-mueBMM/grive2-0.5.2/libgrive/src/protocol/OAuth2.cc(80): Throw in function void gr::OAuth2::Auth(const string&)
Dynamic exception type: boost::wrapexceptgr::OAuth2::AuthFailed
[gr::expt::BacktraceTag*] = #0 0x55988861e897 grive gr::Exception::Exception()
#1 0x559888613b75 grive gr::OAuth2::AuthFailed::AuthFailed()
#2 0x559888613054 grive gr::OAuth2::Auth(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)
#3 0x5598885b0a58 grive Main(int, char**)
#4 0x5598885b1d7a grive main
#5 0x7f47446660b3 /lib/x86_64-linux-gnu/libc.so.6 __libc_start_main
#6 0x5598885af4de grive _start
How can I fix it?
Thanks
The text was updated successfully, but these errors were encountered: