-
Notifications
You must be signed in to change notification settings - Fork 55
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
UnicodeDecodeError while archiving files with git-annex to glacier #61
Comments
OK I'll could track down this error to There is already a bugreport for this issue filed at boto/boto#2603 |
I'm getting this error uploading Raw photo's(!) Should there be anything to do with encoding on these kind of (very binary) files? Is there a work around for this? |
This is a known bug in Python and/or boto. It happens because httplib tries to combine ascii headers with binary payload when sending the HTTP request. See http://bugs.python.org/issue11898, http://bugs.python.org/issue12398, boto/boto#2603. Sorry, I don't know of a workaround. Hacking your httplib should be possible. |
@basak I have a quick and dirty work around. After getting the vault here: https://github.com/basak/glacier-cli/blob/master/glacier.py#L496, recast the name (and maybe other attributes as you see fit) as a string:
I open this ticket boto/boto#3318 under boto but the workaround is pretty straightforward for now. |
I can confirm @tfgm-bud 's trick works for me. |
This reverts commit cd68525.
…oto bug #3318 per issue basak#61
Hi i'm trying git annex with glacier archiving but unfortunately I get an strange
UnicodeDecodeError
when trying to archive a file. First I thought it's related to #16, but even if I rename the file totest.txt
I'll get the same error msg:The text was updated successfully, but these errors were encountered: