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

Unclear error message: "Failed to refresh auth token: HTTP 400, body: { "error": "invalid_grant", "error_description": "Bad Request" }" #326

Open
mnahkola opened this issue Sep 28, 2020 · 2 comments

Comments

@mnahkola
Copy link

So, is this because the default application id has run out of transfer quota or something?

According to Google on the browser side, I was able to pass authentication, but actually trying to sync anything dies with,

`Failed to refresh auth token: HTTP 400, body: {
"error": "invalid_grant",
"error_description": "Bad Request"
}
exception: /build/grive2-g1y2_j/grive2-0.5.2/libgrive/src/protocol/OAuth2.cc(111): Throw in function void gr::OAuth2::Refresh()
Dynamic exception type: boost::exception_detail::clone_implgr::OAuth2::AuthFailed
[gr::expt::BacktraceTag*] = #0 0x5601511a83db grive gr::Exception::Exception()
#1 0x56015118b065 grive gr::OAuth2::AuthFailed::AuthFailed()
#2 0x56015118ace2 grive gr::OAuth2::Refresh()
#3 0x56015118a034 grive gr::OAuth2::OAuth2(gr::http::Agent*, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)
#4 0x560151145458 grive Main(int, char**)
#5 0x560151146153 grive main
#6 0x7f6bba5fbb97 /lib/x86_64-linux-gnu/libc.so.6 __libc_start_main
#7 0x560151143a9a grive _start

`

Tried a couple of times, got fresh auth codes on the browser, but no difference.

Or do I need to include the scope with the token as well? That's not on the token field but I do see that in the page header when getting the token...

I'd suggest a more helpful error message if at all possible.

@Tatsh
Copy link

Tatsh commented Nov 9, 2020

The original app may be dead (this code hasn't seen an update since February). In any case, you should create your own app and get its client ID and secret, as stated in the README.

https://github.com/vitalif/grive2#different-oauth2-client-to-workaround-over-quota-and-google-approval-issues

@Tatsh
Copy link

Tatsh commented Nov 9, 2020

Duplicate of #287

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