vitalif/grive2

grive2 0.4.1 exception

Closed this issue · 6 comments

exception: /home/XXX/Downloads/grive2-0.4.1/libgrive/src/protocol/AuthAgent.cc(202): Throw in function long int gr::AuthAgent::CheckHttpResponse(long int, const string&, const gr::http::Header&)
Dynamic exception type: N5boost16exception_detail10clone_implIN2gr4http5ErrorEEE
[PN2gr4http15ResponseBodyTagE] =
[PN2gr4http15ResponseCodeTagE] = 404
[PN2gr4http17RequestHeadersTagE] = Authorization: Bearer ya29._gHj5T4-GPFiSk7ix2LDZhdaY18XRctDZTuCJkNnA7TOIiI3F0PCdxoQ204JAhyudsVJ
GData-Version: 3.0

[PN2gr4http18ResponseHeadersTagE] = HTTP/1.1 404 Not Found
X-GUploader-UploadID: XXX-XXXXXX-XXXX_XXX-XZXXXXX
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: false
Access-Control-Allow-Headers: Accept, Accept-Language, Authorization, Cache-Control, Content-Disposition, Content-Encoding, Content-Language, Content-Length, Content-MD5, Content-Range, Content-Type, Date, GData-Version, Host, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, Origin, OriginToken, Pragma, Range, Slug, Transfer-Encoding, X-ClientDetails, X-GData-Client, X-GData-Key, X-Goog-AuthUser, X-Goog-PageId, X-Goog-Encode-Response-If-Executable, X-Goog-Correlation-Id, X-Goog-Request-Info, X-Goog-Experiments, x-goog-iam-authority-selector, x-goog-iam-authorization-token, X-Goog-Spatula, X-Goog-Upload-Command, X-Goog-Upload-Content-Disposition, X-Goog-Upload-Content-Length, X-Goog-Upload-Content-Type, X-Goog-Upload-File-Name, X-Goog-Upload-Offset, X-Goog-Upload-Protocol, X-Goog-Visitor-Id, X-HTTP-Method-Override, X-JavaScript-User-Agent, X-Pan-Versionid, X-Origin, X-Referer, X-Upload-Content-Length, X-Upload-Content-Type, X-Use-HTTP-Status-Code-Override, X-YouTube-VVT, X-YouTube-Page-CL, X-YouTube-Page-Timestamp
Access-Control-Allow-Methods: GET,OPTIONS
Date: Wed, 30 Sep 2015 09:44:47 GMT
Expires: Wed, 30 Sep 2015 09:44:47 GMT
Cache-Control: private, max-age=0
Content-Length: 0
Server: UploadServer
Content-Type: text/html; charset=UTF-8
Alternate-Protocol: 443:quic,p=1
Alt-Svc: quic=":443"; p="1"; ma=604800

[PN2gr4http6UrlTagE] = https://doc-0o-4g-docs.googleusercontent.com/docs/securesc/XXXX/ZZZZ//PPPPPP/DDDDDDD?h=05713018181182417404&e=download&gd=true

Could it be possible that grive2 was running for a very long time before this error occurred?

Doesn't look like :

ps -aux | grep grive
username 5753 0.0 0.0 9496 2232 pts/1 S+ 14:21 0:00 grep --color=auto grive

ps -aux can't give an answer to this question :)
I mean could it be so that your sync ran for several hours and then failed with the error above?
REST API doc says downloadUrl's are short-lived and are only valid for several hours... and grive first retrieves all downloadUrls and then starts to download.

Also, does this error reproduce?

yes run again

grive -V :
at the begin shows ????
config file name "./.grive"
last sync time: 1970-01-01T00:00:00.000Z
Reading local directories
file .grive is ignored by grive
Synchronizing folders
....
....
...
end of this show again the same error

used 0.4.0-1+git20150928webupd8vivid1 from ppa:nilarimogard/webupd8
and it works without errors

I wanted to suggest you using --log-http, but OK if you don't have this problem anymore :)