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_grant #124

Open
clauderobi opened this issue Dec 10, 2016 · 2 comments
Open

invalid_grant #124

clauderobi opened this issue Dec 10, 2016 · 2 comments

Comments

@clauderobi
Copy link

I am using grive2 on 2 Ubuntu machines. Both with the current version (0.5.1-dev) but with one machine I get the invalid_grant error when grive does the refresh auth token procedure.

I tried to use a new grant token (grive -a and the rest of the procedure) but to no success.

@clauderobi
Copy link
Author

I guess I should have pasted the error message:

Failed to refresh auth token: HTTP 400, body: {
"error" : "invalid_grant"
}
exception: /build/grive2-9MbUlt/grive2-0.5.1/libgrive/src/protocol/OAuth2.cc(116): Throw in function void gr::OAuth2::Refresh()
Dynamic exception type: boost::exception_detail::clone_implgr::OAuth2::AuthFailed
[gr::expt::BacktraceTag*] = #0 0x55c9c2 grive gr::Exception::Exception()
#1 0x53f167 grive gr::OAuth2::AuthFailed::AuthFailed()
#2 0x53ee77 grive gr::OAuth2::Refresh()
#3 0x53dd3a grive gr::OAuth2::OAuth2(gr::http::Agent*, std::string const&, std::string const&, std::string const&)
#4 0x4e7068 grive Main(int, char**)
#5 0x4e7a79 grive main
#6 0x7f32f025bf45 /lib/x86_64-linux-gnu/libc.so.6 __libc_start_main
#7 0x4e5d69 grive

@vitalif
Copy link
Owner

vitalif commented Dec 12, 2016

I've hit it myself today. It seems the problem is that grive does not overwrite saved token with one that you paste from browser. I'll fix it, now the workaround is to delete .grive and re-run grive -a.

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