|
From: 白艳春 <yan...@Is...> - 2017-01-19 09:04:11
|
Thanks for helping
发件人: Florent Viard [mailto:flo...@se...]
发送时间: 2017年1月19日 0:12
收件人: 白艳春 <yan...@Is...>
抄送: s3t...@li...
主题: Re: [S3tools-bugs] S3cmd UnicodeDecodeError
Hi,
Good catch of a bug.
The strange thing is that it looks like that you are targeting a web server that advertise support for HTTP/0.9.
I will fix it soon, but in the meantime, maybe you should check if you are really targeting the service that you really want.
Like if there is proxy in the middle, or something like that.
--
Florent
On Wed, Jan 18, 2017 at 8:15 AM, 白艳春 <yan...@is...<mailto:yan...@is...>> wrote:
Hi
When I use s3cmd info command to get bucket info, An unexpected error has occurred.
Below is the my working process
1 make a bucket
s3cmd mb s3://new_bucket
Bucket 's3://new_bucket/' created
2 put a encodings file to bucket
s3cmd put testsuite/encodings/UTF-8/ŪņЇЌœđЗ/☺\ unicode\ €\ rocks\ ™ s3://new_bucket
upload: 'testsuite/encodings/UTF-8/ŪņЇЌœđЗ/☺ unicode € rocks ™' -> 's3://new_bucket/☺ unicode € rocks ™' [1 of 1]
26 of 26 100% in 0s 333.32 B/s done
3 get bucket info
s3cmd info s3://new_bucket
s3://new_bucket/ (bucket):
Location: us-east-1
Payer: BucketOwner
Expiration Rule: none
WARNING: Retrying failed request: /?policy (global name 'StringIO' is not defined)
WARNING: Waiting 3 sec...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
An unexpected error has occurred.
Please try reproducing the error using
the latest s3cmd code from the git master
branch found at:
https://github.com/s3tools/s3cmd
and have a look at the known issues list:
https://github.com/s3tools/s3cmd/wiki/Common-known-issues-and-their-solutions
If the error persists, please report the
following lines (removing any private
info as necessary) to:
s3t...@li...<mailto:s3t...@li...>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Invoked as: /usr/local/bin/s3cmd info s3://new_bucket
Problem: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 231: ordinal not in range(128)
S3cmd: 1.6.1
python: 2.7.6 (default, Oct 26 2016, 20:30:19)
[GCC 4.8.4]
environment LANG=en_US.UTF-8
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/s3cmd-1.6.1-py2.7.egg/EGG-INFO/scripts/s3cmd", line 2968, in <module>
File "/usr/local/lib/python2.7/dist-packages/s3cmd-1.6.1-py2.7.egg/EGG-INFO/scripts/s3cmd", line 2890, in main
File "/usr/local/lib/python2.7/dist-packages/s3cmd-1.6.1-py2.7.egg/EGG-INFO/scripts/s3cmd", line 910, in cmd_info
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 231: ordinal not in range(128)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
An unexpected error has occurred.
Please try reproducing the error using
the latest s3cmd code from the git master
branch found at:
https://github.com/s3tools/s3cmd
and have a look at the known issues list:
https://github.com/s3tools/s3cmd/wiki/Common-known-issues-and-their-solutions
If the error persists, please report the
above lines (removing any private
info as necessary) to:
s3t...@li...<mailto:s3t...@li...>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
But when I put common file to a bucket, The error not be occurred, Is it a bug of s3cmd ?
Thanks
Email Disclaimer & Confidentiality Notice
This message is confidential and intended solely for the use of the recipient to whom they are addressed. If you are not the intended recipient you should not deliver, distribute or copy this e-mail. Please notify the sender immediately by e-mail and delete this e-mail from your system. Copyright © 2017 by Istuary Innovation Labs, Inc. All rights reserved.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! https://urldefense.proofpoint.com/v2/url?u=http-3A__sdm.link_slashdot&d=DwICAg&c=IGDlg0lD0b-nebmJJ0Kp8A&r=GEhQqSrCDlzPsOu9ww_S8dL0RpfPwWzg7DpciZD7d7Y&m=1NgwzW5EqM7zx6rcbBQb2oHvnxF6puo7BoXib52I_Oc&s=k8wzsevEar2AGWzlB-WHQ_klXhj8CbwQhNl_9EOBT9Q&e=
Email Disclaimer & Confidentiality Notice
This message is confidential and intended solely for the use of the recipient to whom they are addressed. If you are not the intended recipient you should not deliver, distribute or copy this e-mail. Please notify the sender immediately by e-mail and delete this e-mail from your system. Copyright © 2017 by Istuary Innovation Labs, Inc. All rights reserved.
|