I tried the example code in docs for google drive, but it don't work as expectation. There can direct browser to login my google account to google drive, but when I finish login I can't get the token. I trace the code in src/installed.rs::exchange_auth_code, it seems block at let (head, body) = hyper_client.request(request).await?.into_parts();, I print the request in console and get the follow:
after a while the HttpError occur occur: error: HttpError(hyper::Error(Connect, Custom { kind: Other, error: Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" } })).
I also tried ServiceAccountAuthenticator and get the same error.
Is there anything I miss? Thanks for your time for help.
hi there.
I tried the example code in docs for google drive, but it don't work as expectation. There can direct browser to login my google account to google drive, but when I finish login I can't get the token. I trace the code in
src/installed.rs
::exchange_auth_code
, it seems block atlet (head, body) = hyper_client.request(request).await?.into_parts();
, I print therequest
in console and get the follow:after a while the HttpError occur occur:
error: HttpError(hyper::Error(Connect, Custom { kind: Other, error: Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" } }))
.I also tried
ServiceAccountAuthenticator
and get the same error.Is there anything I miss? Thanks for your time for help.