From 42c7ac1e26bc04cff5e3a00e6bc4cca4d8df298a Mon Sep 17 00:00:00 2001 From: hugo Date: Sun, 5 Oct 2014 19:40:23 +0000 Subject: [PATCH] Added a comment: 'content-length' error --- ..._b547ee81946e14975f082f22ccbea035._comment | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 doc/tips/googledriveannex/comment_5_b547ee81946e14975f082f22ccbea035._comment diff --git a/doc/tips/googledriveannex/comment_5_b547ee81946e14975f082f22ccbea035._comment b/doc/tips/googledriveannex/comment_5_b547ee81946e14975f082f22ccbea035._comment new file mode 100644 index 0000000000..93b7fc5085 --- /dev/null +++ b/doc/tips/googledriveannex/comment_5_b547ee81946e14975f082f22ccbea035._comment @@ -0,0 +1,29 @@ +[[!comment format=mdwn + username="hugo" + ip="37.160.8.232" + subject="'content-length' error" + date="2014-10-05T19:40:23Z" + content=""" +I moved a big PDF to Google Drive (with shared encryption). + +Now, when I try to get it again: + + get Documents/Guyau - The Non-Religion of the Future, nonreligionoffut00guyarich.pdf (from googledrive...) (gpg) + Traceback (most recent call last): + File \"/usr/bin/git-annex-remote-googledrive\", line 411, in + common.startRemote() + File \"/usr/share/googledriveannex-git/lib/CommonFunctions.py\", line 555, in startRemote + sys.modules[\"__main__\"].transfer(line) + File \"/usr/bin/git-annex-remote-googledrive\", line 372, in transfer + if getFile(line[2], \" \".join(line[3:]), folder): + File \"/usr/bin/git-annex-remote-googledrive\", line 257, in getFile + ret = common.fetchPage({\"link\": download_url, \"headers\": [(\"Authorization\", \"Bearer \" + credentials.access_token)], \"progress\": \"true\"}) + File \"/usr/share/googledriveannex-git/lib/CommonFunctions.py\", line 207, in fetchPage + totalsize = int(con.headers['content-length']) + File \"/usr/lib/python2.7/rfc822.py\", line 388, in __getitem__ + return self.dict[name.lower()] + KeyError: 'content-length' + +It works for smaller files. Is there a limit on the file size? + +"""]]