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

Could not resolve host: accounts.google.com #72

Closed
FraYoshi opened this issue May 5, 2016 · 6 comments
Closed

Could not resolve host: accounts.google.com #72

FraYoshi opened this issue May 5, 2016 · 6 comments

Comments

@FraYoshi
Copy link

FraYoshi commented May 5, 2016

I'm trying to link the "google for work" version of drive,
grive successfully installed, authenticated by token [-a] but It gives me back this error:

[gr::http::CurlCodeTag*] = 6
[gr::http::CurlErrMsgTag*] = Could not resolve host: accounts.google.com
[gr::http::RequestHeadersTag*] = Content-Type: application/x-www-form-urlencoded

[gr::http::UrlTag*] = https://accounts.google.com/o/oauth2/token
@vitalif
Copy link
Owner

vitalif commented May 6, 2016

This error means your computer can't find accounts.google.com O_o do you have no internet access? :D

@FraYoshi
Copy link
Author

FraYoshi commented May 6, 2016

hahah I have a very slow and unstable internet access but I'm online :') In Italy it is like this..

anyway, the error has changed.. now appears trying to get the authentication!
I give the grant and paste the code on terminal but I immediately get this error message back:


`Please input the authentication code here:
x/xxxxxxxxxxxxxxxxxxxxxxxxxxx

Failed to refresh auth token: HTTP 400, body: {
"error" : "invalid_grant"
}
exception: path/to/the/folder/grive2/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 0x5383a9 :0 gr::Exception::Exception()
#1 0x51f4ef :0 gr::OAuth2::AuthFailed::AuthFailed()
#2 0x51f12b :0 gr::OAuth2::Refresh()
#3 0x51df2a :0 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 0x4d2e89 :0 Main(int, char**)
#5 0x4d35a9 :0 main
#6 0x7ffb3439b830 /lib/x86_64-linux-gnu/libc.so.6 __libc_start_main
#7 0x4d1b79 :0 _start`


Do you think I am wrong in something or It is because of the google for work thing?

@vitalif
Copy link
Owner

vitalif commented May 9, 2016

I can't really say anything about google for work... so it may be related... but it also may be unrelated... try to sync your system time to an NTP server? A time skew sometimes results in invalid_grants...

@FraYoshi
Copy link
Author

FraYoshi commented May 26, 2016

I tried more than a solution but nothing... but trying with another and faster internet link, It worked!

I also needed, before doing this, to erase pre-existing .grive files on the drive

anyway, nothing was working until I just tried to give It an adrenaline supply to start (faster insternet link) and now works with my very slow internet connection too! even if It stops many times and gives this error back

request failed due to auth token expired: 401 (body: { "error": { "errors": [ { "domain": "global", "reason": "authError", "message": "Invalid Credentials", "locationType": "header", "location": "Authorization" } ], "code": 401, "message": "Invalid Credentials" } } ). refreshing token

then It restart working.

@vitalif
Copy link
Owner

vitalif commented May 27, 2016

so everything is ok now?

@FraYoshi
Copy link
Author

It needs almost 15/20 minutes before starting to sync for reading local and remote files but It now works! Thanks for support :)

@vitalif vitalif closed this as completed May 27, 2016
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